Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/gpu/drm/gud/gud_pipe.c, line 251
- drivers/input/touchscreen/sur40.c, line 584
- drivers/misc/cardreader/rtsx_usb.c, line 48
- drivers/mmc/host/vub300.c
- drivers/usb/core/message.c, line 662
- drivers/usb/misc/usbtest.c, line 618
- drivers/usb/storage/transport.c, line 423
Smatch caller information:
drivers/usb/storage/transport.c usb_stor_bulk_transfer_sglist() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | *dev->toggle | 0-4294967295 |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 7 | mem_flags | 3072 |
| BUF_SIZE | 4 | sg | (-1)-s32max |
| BUF_SIZE | 4 | sg | (-1)-s32max |
| CAPPED_DATA | 1 | dev | 1 |
| DATA_SOURCE | 2 | pipe | $1 |
| DATA_SOURCE | 4 | sg | $2 |
| DATA_SOURCE | 5 | nents | $3 |
| DATA_SOURCE | 6 | length | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | io->count | |
| NO_OVERFLOW_SIMPLE | 0 | io->entries | |
| UNITS | 6 | length | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/mmc/host/vub300.c __command_read_data() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 2 | pipe | 0,128-u32max |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 6 | length | 0 |
| PARAM_VALUE | 7 | mem_flags | 3264 |
| BIT_INFO | 2 | pipe | 0xc0000080,0xffffffff |
| UNITS | 4 | sg | unit_byte |
| UNITS | 5 | nents | unit_array_size |
| LOCK2 | &vub300->cmd_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct vub300_mmc_host)->cmd_mutex |
drivers/mmc/host/vub300.c __command_write_data() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dev->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 2 | pipe | 0,1073741824-u32max |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 6 | length | 0 |
| PARAM_VALUE | 7 | mem_flags | 3264 |
| BIT_INFO | 2 | pipe | 0xc0000000,0xffffffff |
| UNITS | 4 | sg | unit_byte |
| UNITS | 5 | nents | unit_array_size |
| LOCK2 | &vub300->cmd_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct vub300_mmc_host)->cmd_mutex |
drivers/usb/misc/usbtest.c perform_sglist() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 9005575591594491904 |
| PARAM_VALUE | 0 | io->bytes | 0 |
| PARAM_VALUE | 0 | io->complete.done | 0-4294967293,u32max |
| PARAM_VALUE | 0 | io->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | io->entries | (-1)-s32max |
| PARAM_VALUE | 0 | io->pipe | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | io->status | s32min-(-13),(-10)-(-7),(-5)-s32max |
| PARAM_VALUE | 0 | io->urbs | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | pipe | 1-s32max |
| PARAM_VALUE | 3 | period | 1,8 |
| PARAM_VALUE | 4 | sg | 4096-ptr_max |
| PARAM_VALUE | 5 | nents | 1-128 |
| PARAM_VALUE | 6 | length | 0 |
| PARAM_VALUE | 7 | mem_flags | 3264 |
| BUF_SIZE | 4 | sg | 32-4096 |
| BUF_SIZE | 4 | sg | 32-4096 |
| CAPPED_DATA | 5 | nents | 1 |
| DATA_SOURCE | 0 | io | $3 |
| DATA_SOURCE | 1 | dev | r testdev_to_usbdev |
| DATA_SOURCE | 2 | pipe | $2 |
| DATA_SOURCE | 4 | sg | $4 |
| DATA_SOURCE | 5 | nents | $5 |
| FUZZY_MAX | 3 | period | 8 |
| BIT_INFO | 3 | period | 0x0,0x9 |
| NOSPEC | 5 | nents | |
| NOSPEC | 5 | nents | |
| HARD_MAX | 3 | period | 8 |
| USER_DATA | 5 | nents | 2-128[c] |
| UNITS | 5 | nents | unit_array_size |
| LOCK2 | &dev->dev.mutex | ||
| LOCK2 | &dev->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct usbtest_dev)->lock |
drivers/misc/cardreader/rtsx_usb.c rtsx_usb_bulk_transfer_sglist() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 4096-ptr_max |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->state | 4-u32max |
| PARAM_VALUE | 2 | pipe | 0,128-u32max |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 5 | nents | s32min-(-1),1-s32max |
| PARAM_VALUE | 7 | mem_flags | 3072 |
| DATA_SOURCE | 2 | pipe | $1 |
| DATA_SOURCE | 4 | sg | $2 |
| DATA_SOURCE | 5 | nents | $3 |
| DATA_SOURCE | 6 | length | $4 |
| BIT_INFO | 2 | pipe | 0xc0000000,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | sg | unit_byte |
| UNITS | 5 | nents | unit_array_size |
| LOCK2 | &ucr->dev_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct rtsx_ucr)->dev_mutex |
drivers/input/touchscreen/sur40.c sur40_process_video() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 3977028659952234496 |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->bus->sysdev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 1 | dev->state | 4-u32max |
| PARAM_VALUE | 2 | pipe | 0,128-u32max |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 7 | mem_flags | 0 |
| CAPPED_DATA | 6 | length | 1 |
| BIT_INFO | 2 | pipe | 0xffffffffc0410080,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | sg | unit_byte |
| UNITS | 6 | length | unit_byte |
drivers/gpu/drm/gud/gud_pipe.c gud_usb_bulk() -> usb_sg_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io | 6547381254050992216 |
| PARAM_VALUE | 3 | period | 0 |
| PARAM_VALUE | 6 | length | 0-s32max |
| PARAM_VALUE | 7 | mem_flags | 3264 |
| DATA_SOURCE | 6 | length | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | sg | unit_byte |
| LOCK2 | global &drm_unplug_srcu |