Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/crypto/hisilicon/sec/sec_algs.c, line 592
- drivers/crypto/sa2ul.c
- drivers/crypto/ti/dthev2-aes.c, line 675
- drivers/media/platform/intel/pxa_camera.c, line 1330
- drivers/spi/spi-omap2-mcspi.c, line 508
- lib/sg_split.c, line 199
Smatch caller information:
drivers/spi/spi-omap2-mcspi.c omap2_mcspi_rx_dma() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | skip | 0 |
| PARAM_VALUE | 3 | nb_splits | 1-2 |
| PARAM_VALUE | 4 | split_sizes | 4096-ptr_max |
| PARAM_VALUE | 5 | out | 8869454554353246208 |
| PARAM_VALUE | 6 | out_mapped_nents | 2034022362258890752 |
| PARAM_VALUE | 7 | gfp_mask | 3264 |
| BUF_SIZE | 4 | split_sizes | 16 |
| BUF_SIZE | 5 | out | 16 |
| BUF_SIZE | 6 | out_mapped_nents | 8 |
| FUZZY_MAX | 3 | nb_splits | 2 |
| HARD_MAX | 3 | nb_splits | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | in | unit_byte |
| LOCK2 | &ctlr->io_mutex | ||
| HALF_LOCKED2 | &ctlr->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/crypto/hisilicon/sec/sec_algs.c sec_map_and_split_sg() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | in_mapped_nents | 1-s32max |
| PARAM_VALUE | 2 | skip | 0 |
| PARAM_VALUE | 4 | split_sizes | 4096-ptr_max |
| PARAM_VALUE | 5 | out | 16,4096-ptr_max |
| PARAM_VALUE | 6 | out_mapped_nents | 16,4096-ptr_max |
| PARAM_VALUE | 7 | gfp_mask | 2080,3264 |
| CAPPED_DATA | 1 | in_mapped_nents | 1 |
| DATA_SOURCE | 0 | in | $0 |
| DATA_SOURCE | 1 | in_mapped_nents | r dma_map_sg_attrs |
| DATA_SOURCE | 3 | nb_splits | $2 |
| DATA_SOURCE | 4 | split_sizes | $1 |
| DATA_SOURCE | 5 | out | r _kzalloc_noprof |
| DATA_SOURCE | 6 | out_mapped_nents | r _kzalloc_noprof |
| DATA_SOURCE | 7 | gfp_mask | $7 |
| FUZZY_MAX | 7 | gfp_mask | 3264 |
| BIT_INFO | 7 | gfp_mask | 0x800,0xfff |
| HARD_MAX | 7 | gfp_mask | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | in_mapped_nents | |
| NO_OVERFLOW_SIMPLE | 3 | nb_splits | |
| UNITS | 0 | in | unit_byte |
| UNITS | 3 | nb_splits | unit_array_size |
| ELEM_COUNT | 5 | ==out3 | 8051 |
| ELEM_COUNT | 6 | ==out_mapped_nents3 | 8051 |
| HALF_LOCKED2 | &mkey->sem | ||
| HALF_LOCKED2 | s->tfm_mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | tfm_mutex |
drivers/media/platform/intel/pxa_camera.c pxa_buffer_init() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | skip | 0 |
| PARAM_VALUE | 3 | nb_splits | 1,3 |
| PARAM_VALUE | 4 | split_sizes | 4096-ptr_max |
| PARAM_VALUE | 7 | gfp_mask | 3264 |
| BUF_SIZE | 4 | split_sizes | 24 |
| BUF_SIZE | 5 | out | 24 |
| BUF_SIZE | 6 | out_mapped_nents | 12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | in | unit_byte |
drivers/crypto/sa2ul.c sa_run() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | in_mapped_nents | 0-s32max |
| PARAM_VALUE | 2 | skip | 0 |
| PARAM_VALUE | 3 | nb_splits | 1 |
| PARAM_VALUE | 4 | split_sizes | 7224263838324801536 |
| PARAM_VALUE | 4 | *split_sizes | 0-239,256-u16max |
| PARAM_VALUE | 5 | out | 5400884818495864832 |
| PARAM_VALUE | 6 | out_mapped_nents | 7520319437182689280 |
| PARAM_VALUE | 7 | gfp_mask | 2080,3264 |
| FUZZY_MAX | 7 | gfp_mask | 3264 |
| BIT_INFO | 7 | gfp_mask | 0x800,0xfff |
| NOSPEC | 4 | *split_sizes | |
| HARD_MAX | 7 | gfp_mask | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 4 | *split_sizes | 1-239,256-4350[c] |
| USER_DATA | 4 | *split_sizes | 1-239,256-u16max[c] |
| NO_OVERFLOW_SIMPLE | 1 | in_mapped_nents | |
| UNITS | 0 | in | unit_byte |
| USER_PTR | 4 | split_sizes |
drivers/crypto/sa2ul.c sa_run() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | in | 4096-ptr_max |
| PARAM_VALUE | 1 | in_mapped_nents | 0-s32max |
| PARAM_VALUE | 2 | skip | 0 |
| PARAM_VALUE | 3 | nb_splits | 1 |
| PARAM_VALUE | 4 | split_sizes | 7224263838324801536 |
| PARAM_VALUE | 4 | *split_sizes | 0-239,256-u16max |
| PARAM_VALUE | 5 | out | 2642452567195758592 |
| PARAM_VALUE | 6 | out_mapped_nents | 5075427612411117568 |
| PARAM_VALUE | 6 | *out_mapped_nents | (-22),0-s32max |
| PARAM_VALUE | 7 | gfp_mask | 2080,3264 |
| FUZZY_MAX | 7 | gfp_mask | 3264 |
| BIT_INFO | 7 | gfp_mask | 0x800,0xfff |
| NOSPEC | 4 | *split_sizes | |
| HARD_MAX | 7 | gfp_mask | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 4 | *split_sizes | 1-239,256-4350[c] |
| USER_DATA | 4 | *split_sizes | 1-239,256-u16max[c] |
| NO_OVERFLOW_SIMPLE | 1 | in_mapped_nents | |
| UNITS | 0 | in | unit_byte |
| USER_PTR | 4 | split_sizes |
drivers/crypto/ti/dthev2-aes.c dthe_aead_prep_crypt() -> sg_split()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | in_mapped_nents | 0 |
| PARAM_VALUE | 3 | nb_splits | 1 |
| PARAM_VALUE | 4 | split_sizes | 4096-ptr_max |
| PARAM_VALUE | 5 | out | 3163148889154551808 |
| PARAM_VALUE | 6 | out_mapped_nents | 9117251643284000768 |
| PARAM_VALUE | 7 | gfp_mask | 2080 |
| CAPPED_DATA | 2 | skip | 1 |
| DATA_SOURCE | 0 | in | $0 |
| DATA_SOURCE | 2 | skip | $1 |
| UNITS | 0 | in | unit_byte |
| UNITS | 2 | skip | unit_byte |