Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/usb/storage/alauda.c
- drivers/usb/storage/datafab.c
- drivers/usb/storage/ene_ub6250.c
- drivers/usb/storage/isd200.c
- drivers/usb/storage/jumpshot.c
- drivers/usb/storage/protocol.c, line 180
- drivers/usb/storage/sddr09.c
- drivers/usb/storage/sddr55.c
- drivers/usb/storage/shuttle_usbat.c
- drivers/usb/storage/usb.c, line 376
Smatch caller information:
drivers/usb/storage/usb.c fill_inquiry_response() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 36 |
| BUF_SIZE | 0 | buffer | (-1),36 |
| BUF_SIZE | 0 | buffer | (-1),36 |
| DATA_SOURCE | 0 | buffer | $1 |
| DATA_SOURCE | 1 | buflen | $2 |
| NOCHECK_CALL | |||
| UNITS | 0 | buffer | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr09.c sddr09_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr09.c sddr09_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr09.c sddr09_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 19 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/alauda.c alauda_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/alauda.c alauda_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr55.c sddr55_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr55.c sddr55_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/sddr55.c sddr55_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 20 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/datafab.c datafab_handle_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 12,16,20,48,52 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $1 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/datafab.c datafab_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/datafab.c datafab_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c do_scsi_inquiry() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 36 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 36 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c do_scsi_request_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 5889182029259923456 |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 18 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c ms_scsi_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 12 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 12 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c ms_scsi_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 12 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 12 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c ms_scsi_read() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 16,4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 0-130560 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 0-130560 |
| DATA_SOURCE | 0 | buffer | r _kmalloc_noprof |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c ms_scsi_write() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 16,4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 0-130560 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| BUF_SIZE | 0 | buffer | 0-130560 |
| DATA_SOURCE | 0 | buffer | r _kmalloc_noprof |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c sd_scsi_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 12 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->resid_len | 0 |
| BUF_SIZE | 0 | buffer | 12 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/ene_ub6250.c sd_scsi_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 12 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->resid_len | 0 |
| BUF_SIZE | 0 | buffer | 12 |
| DATA_SOURCE | 2 | srb | $1 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/jumpshot.c jumpshot_handle_mode_sense() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 4,8,12,16,20,48,52 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $1 |
| FUZZY_MAX | 1 | buflen | 8 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/jumpshot.c jumpshot_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/jumpshot.c jumpshot_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/isd200.c isd200_scsi_to_ata() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 96 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->resid_len | 0 |
| BUF_SIZE | 0 | buffer | 96 |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/isd200.c isd200_scsi_to_ata() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->resid_len | 0 |
| BUF_SIZE | 0 | buffer | 8 |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/isd200.c isd200_scsi_to_ata() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 1843811189593640960 |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->resid_len | 0 |
| BUF_SIZE | 0 | buffer | 8 |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| UNITS | 1 | buflen | unit_byte |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/shuttle_usbat.c usbat_flash_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 8 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |
drivers/usb/storage/shuttle_usbat.c usbat_flash_transport() -> usb_stor_set_xfer_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | buflen | 18 |
| PARAM_VALUE | 2 | srb | 4096-ptr_max |
| PARAM_VALUE | 2 | srb->cmnd | 4096-ptr_max |
| DATA_SOURCE | 2 | srb | $0 |
| MEM_ZERO | 0 | buffer | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 2 | srb->sdb.table.sgl->length | |
| HALF_LOCKED2 | &us->dev_mutex |