Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

drivers/usb/storage/sddr09.c sddr09_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 3 sgptr 6380760466504351744
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 2224002882157928448
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/sddr09.c sddr09_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 3 sgptr 8832780596573929472
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 33128507259887616
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/alauda.c alauda_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 2 srb 4096-ptr_max
PARAM_VALUE 2 srb->device 4096-ptr_max
PARAM_VALUE 3 sgptr 4733750238809423872
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 6904776672489586688
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/alauda.c alauda_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 2 srb 4096-ptr_max
PARAM_VALUE 2 srb->device 4096-ptr_max
PARAM_VALUE 3 sgptr 7934328840891281408
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 4383111317368975360
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/sddr55.c sddr55_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 3 sgptr 6444900686460915712
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 5416626750801498112
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/sddr55.c sddr55_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 3 sgptr 2774474222712909824
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 3212027296158883840
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/transport.c usb_stor_Bulk_transport() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 4096-ptr_max
PARAM_VALUE 1 buflen 13
PARAM_VALUE 2 srb 4096-ptr_max
PARAM_VALUE 2 srb->device 4096-ptr_max
PARAM_VALUE 2 srb->sc_data_direction 2
PARAM_VALUE 2 srb->sdb.length 1-u32max
PARAM_VALUE 3 sgptr 4256623877067014144
PARAM_VALUE 3 *sgptr 0
PARAM_VALUE 4 offset 634724468007559168
PARAM_VALUE 4 *offset 0
PARAM_VALUE 5 dir 1
BUF_SIZE 2 srb (-1),392
BUF_SIZE 2 srb (-1),392
BUF_SIZE 2 srb->device (-1),4232
DATA_SOURCE 2 srb $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 srb->sdb.table.sgl->length
UNITS 0 buffer unit_byte
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/transport.c usb_stor_Bulk_transport() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 8541402108025593856
PARAM_VALUE 1 buflen 13
PARAM_VALUE 2 srb 4096-ptr_max
PARAM_VALUE 2 srb->device 4096-ptr_max
PARAM_VALUE 2 srb->sc_data_direction 2
PARAM_VALUE 2 srb->sdb.length 1-u32max
PARAM_VALUE 3 sgptr 4256623877067014144
PARAM_VALUE 3 *sgptr 0
PARAM_VALUE 4 offset 634724468007559168
PARAM_VALUE 4 *offset 0
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 13
BUF_SIZE 2 srb (-1),392
BUF_SIZE 2 srb (-1),392
BUF_SIZE 2 srb->device (-1),4232
DATA_SOURCE 2 srb $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 srb->sdb.table.sgl->length
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/datafab.c datafab_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 7987438561798025216
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 4561951868156260352
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/datafab.c datafab_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 858352470337859584
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 1485493920498880512
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/ene_ub6250.c ms_scsi_read_capacity() -> usb_stor_access_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 3 sgptr 7698194604183576576
PARAM_VALUE 3 *sgptr 0
PARAM_VALUE 4 offset 207246724386447360
PARAM_VALUE 4 *offset 0
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 8
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_read_capacity() -> usb_stor_access_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
PARAM_VALUE 3 sgptr 3263340193103589376
PARAM_VALUE 3 *sgptr 0
PARAM_VALUE 4 offset 7746141490630950912
PARAM_VALUE 4 *offset 0
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 8
DATA_SOURCE 2 srb $1
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 srb->sdb.table.sgl->length
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/protocol.c usb_stor_set_xfer_buf() -> usb_stor_access_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 3 sgptr 3674125166505807872
PARAM_VALUE 3 *sgptr 0
PARAM_VALUE 4 offset 4052818715196960768
PARAM_VALUE 4 *offset 0
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer (-1)-130560
BUF_SIZE 0 buffer (-1)-130560
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer $0
DATA_SOURCE 1 buflen $1 [m]
DATA_SOURCE 2 srb $2
PARAM_COMPARE 1 buflen <= $2->sdb.length
NO_OVERFLOW_SIMPLE 2 srb->sdb.table.sgl->length
UNITS 0 buffer unit_byte
UNITS 1 buflen unit_byte
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/jumpshot.c jumpshot_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 7138549071586263040
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 8780248070202802176
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/jumpshot.c jumpshot_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 216923773700968448
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 283145435043438592
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/shuttle_usbat.c usbat_flash_read_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 7890452387004989440
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 1104974848813625344
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/shuttle_usbat.c usbat_flash_write_data() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 1 buflen 0-65536
PARAM_VALUE 3 sgptr 2677647083700658176
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 5820509232824991744
PARAM_VALUE 5 dir 1
BUF_SIZE 0 buffer 0-65536
BUF_SIZE 0 buffer 0-65536
CAPPED_DATA 1 buflen 1
DATA_SOURCE 0 buffer r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &us->dev_mutex

drivers/usb/storage/shuttle_usbat.c usbat_hp8200e_handle_read10() -> usb_stor_access_xfer_buf()

Type Parameter Key Value
PARAM_VALUE 0 buffer 16,4096-ptr_max
PARAM_VALUE 2 srb 4096-ptr_max
PARAM_VALUE 2 srb->cmnd 4096-ptr_max
PARAM_VALUE 2 srb->sc_data_direction 0,2-u32max
PARAM_VALUE 2 srb->sdb.length 65536-u32max
PARAM_VALUE 2 srb->transfersize 1-u32max
PARAM_VALUE 3 sgptr 2201845382883913728
PARAM_VALUE 3 *sgptr 0,4-u64max
PARAM_VALUE 4 offset 9061518816541609984
PARAM_VALUE 5 dir 0
BUF_SIZE 0 buffer 0-u32max
BUF_SIZE 0 buffer 0-u32max
DATA_SOURCE 0 buffer r _kmalloc_noprof
DATA_SOURCE 2 srb $3
FUZZY_MAX 2 srb->transfersize 2048
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 srb->sdb.table.sgl->length
UNITS 1 buflen unit_byte
HALF_LOCKED2 &us->dev_mutex