Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/sg.c sg_new_write() -> sg_common_write()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->cmd_q 1
PARAM_VALUE 0 sfp->parentdp 1-u64max
PARAM_VALUE 0 sfp->req_arr->bio 0
PARAM_VALUE 0 sfp->req_arr->data.bufflen 0
PARAM_VALUE 0 sfp->req_arr->data.cmd_opcode 0
PARAM_VALUE 0 sfp->req_arr->data.dio_in_use 0
PARAM_VALUE 0 sfp->req_arr->data.k_use_sg 0
PARAM_VALUE 0 sfp->req_arr->data.page_order 0
PARAM_VALUE 0 sfp->req_arr->data.pages 0
PARAM_VALUE 0 sfp->req_arr->data.sglist_len 0
PARAM_VALUE 0 sfp->req_arr->done 0
PARAM_VALUE 0 sfp->req_arr->ew.work.data.counter 0
PARAM_VALUE 0 sfp->req_arr->ew.work.entry.next 0
PARAM_VALUE 0 sfp->req_arr->ew.work.entry.prev 0
PARAM_VALUE 0 sfp->req_arr->ew.work.func 0
PARAM_VALUE 0 sfp->req_arr->header.cmd_len 0
PARAM_VALUE 0 sfp->req_arr->header.cmdp 0
PARAM_VALUE 0 sfp->req_arr->header.driver_status 0
PARAM_VALUE 0 sfp->req_arr->header.duration 0-4294967295
PARAM_VALUE 0 sfp->req_arr->header.dxfer_direction 0
PARAM_VALUE 0 sfp->req_arr->header.dxfer_len 0
PARAM_VALUE 0 sfp->req_arr->header.dxferp 0
PARAM_VALUE 0 sfp->req_arr->header.flags 0
PARAM_VALUE 0 sfp->req_arr->header.host_status 0
PARAM_VALUE 0 sfp->req_arr->header.info 0
PARAM_VALUE 0 sfp->req_arr->header.interface_id 0
PARAM_VALUE 0 sfp->req_arr->header.iovec_count 0
PARAM_VALUE 0 sfp->req_arr->header.masked_status 0
PARAM_VALUE 0 sfp->req_arr->header.msg_status 0
PARAM_VALUE 0 sfp->req_arr->header.mx_sb_len 0
PARAM_VALUE 0 sfp->req_arr->header.pack_id 0
PARAM_VALUE 0 sfp->req_arr->header.resid 0
PARAM_VALUE 0 sfp->req_arr->header.sb_len_wr 0
PARAM_VALUE 0 sfp->req_arr->header.sbp 0
PARAM_VALUE 0 sfp->req_arr->header.status 0
PARAM_VALUE 0 sfp->req_arr->header.usr_ptr 0
PARAM_VALUE 0 sfp->req_arr->orphan 0
PARAM_VALUE 0 sfp->req_arr->parentfp->rq_list_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 0 sfp->req_arr->res_used 0
PARAM_VALUE 0 sfp->req_arr->rq 0
PARAM_VALUE 0 sfp->req_arr->sg_io_owned 0-1
PARAM_VALUE 0 sfp->rq_list.next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->rq_list_lock.owner (-1)
PARAM_VALUE 0 sfp->rq_list_lock.owner_cpu u32max
PARAM_VALUE 0 sfp->rq_list_lock.raw_lock.wlocked 0
PARAM_VALUE 1 srp 4096-ptr_max
PARAM_VALUE 1 srp->bio 0
PARAM_VALUE 1 srp->data.bufflen 0
PARAM_VALUE 1 srp->data.cmd_opcode 0
PARAM_VALUE 1 srp->data.dio_in_use 0
PARAM_VALUE 1 srp->data.k_use_sg 0
PARAM_VALUE 1 srp->data.page_order 0
PARAM_VALUE 1 srp->data.pages 0
PARAM_VALUE 1 srp->data.sglist_len 0
PARAM_VALUE 1 srp->done 0
PARAM_VALUE 1 srp->ew.work.data.counter 0
PARAM_VALUE 1 srp->ew.work.entry.next 0
PARAM_VALUE 1 srp->ew.work.entry.prev 0
PARAM_VALUE 1 srp->ew.work.func 0
PARAM_VALUE 1 srp->header.cmd_len 6-252
PARAM_VALUE 1 srp->header.cmdp 1-u64max
PARAM_VALUE 1 srp->header.interface_id 83
PARAM_VALUE 1 srp->orphan 0
PARAM_VALUE 1 srp->parentfp->rq_list_lock.owner_cpu 0
PARAM_VALUE 1 srp->parentfp->rq_list_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 1 srp->res_used 0
PARAM_VALUE 1 srp->rq 0
PARAM_VALUE 1 srp->sg_io_owned 0-1
PARAM_VALUE 2 cmnd 961734869202399232
PARAM_VALUE 3 timeout 0-536870912,s32max
PARAM_VALUE 4 blocking 0-1
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 1 srp 5504
BUF_SIZE 1 srp 5504
BUF_SIZE 2 cmnd 252
DATA_SOURCE 0 sfp $0 [m]
DATA_SOURCE 4 blocking $4
FUZZY_MAX 1 srp->header.cmd_len 252
FUZZY_MAX 3 timeout s32max
FUZZY_MAX 4 blocking 1
HARD_MAX 1 srp->header.cmd_len 252
HARD_MAX 4 blocking 1
USER_DATA 2 *cmnd 0-255
USER_PTR 2 cmnd

drivers/scsi/sg.c sg_write() -> sg_common_write()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->f_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->f_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 sfp->f_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->f_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->f_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 sfp->f_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 sfp->f_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 sfp->f_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 sfp->f_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->f_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->next_cmd_len 0
PARAM_VALUE 0 sfp->parentdp 4096-ptr_max
PARAM_VALUE 0 sfp->parentdp->detaching.counter 0
PARAM_VALUE 0 sfp->parentdp->device->host 4096-ptr_max
PARAM_VALUE 0 sfp->req_arr->bio 0
PARAM_VALUE 0 sfp->req_arr->data.bufflen 0
PARAM_VALUE 0 sfp->req_arr->data.cmd_opcode 0
PARAM_VALUE 0 sfp->req_arr->data.dio_in_use 0
PARAM_VALUE 0 sfp->req_arr->data.k_use_sg 0
PARAM_VALUE 0 sfp->req_arr->data.page_order 0
PARAM_VALUE 0 sfp->req_arr->data.pages 0
PARAM_VALUE 0 sfp->req_arr->data.sglist_len 0
PARAM_VALUE 0 sfp->req_arr->done 0
PARAM_VALUE 0 sfp->req_arr->ew.work.data.counter 0
PARAM_VALUE 0 sfp->req_arr->ew.work.entry.next 0
PARAM_VALUE 0 sfp->req_arr->ew.work.entry.prev 0
PARAM_VALUE 0 sfp->req_arr->ew.work.func 0
PARAM_VALUE 0 sfp->req_arr->header.cmd_len 0
PARAM_VALUE 0 sfp->req_arr->header.cmdp 0
PARAM_VALUE 0 sfp->req_arr->header.driver_status 0
PARAM_VALUE 0 sfp->req_arr->header.duration 0-4294967295
PARAM_VALUE 0 sfp->req_arr->header.dxfer_direction 0
PARAM_VALUE 0 sfp->req_arr->header.dxfer_len 0
PARAM_VALUE 0 sfp->req_arr->header.dxferp 0
PARAM_VALUE 0 sfp->req_arr->header.flags 0
PARAM_VALUE 0 sfp->req_arr->header.host_status 0
PARAM_VALUE 0 sfp->req_arr->header.info 0
PARAM_VALUE 0 sfp->req_arr->header.interface_id 0
PARAM_VALUE 0 sfp->req_arr->header.iovec_count 0
PARAM_VALUE 0 sfp->req_arr->header.masked_status 0
PARAM_VALUE 0 sfp->req_arr->header.msg_status 0
PARAM_VALUE 0 sfp->req_arr->header.mx_sb_len 0
PARAM_VALUE 0 sfp->req_arr->header.pack_id 0
PARAM_VALUE 0 sfp->req_arr->header.resid 0
PARAM_VALUE 0 sfp->req_arr->header.sb_len_wr 0
PARAM_VALUE 0 sfp->req_arr->header.sbp 0
PARAM_VALUE 0 sfp->req_arr->header.status 0
PARAM_VALUE 0 sfp->req_arr->header.timeout 0
PARAM_VALUE 0 sfp->req_arr->header.usr_ptr 0
PARAM_VALUE 0 sfp->req_arr->orphan 0
PARAM_VALUE 0 sfp->req_arr->parentfp->rq_list_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 0 sfp->req_arr->res_used 0
PARAM_VALUE 0 sfp->req_arr->rq 0
PARAM_VALUE 0 sfp->req_arr->sg_io_owned 0
PARAM_VALUE 0 sfp->rq_list.next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->rq_list_lock.owner (-1)
PARAM_VALUE 0 sfp->rq_list_lock.owner_cpu u32max
PARAM_VALUE 0 sfp->rq_list_lock.raw_lock.wlocked 0
PARAM_VALUE 1 srp 4096-ptr_max
PARAM_VALUE 1 srp->bio 0
PARAM_VALUE 1 srp->data.bufflen 0
PARAM_VALUE 1 srp->data.cmd_opcode 0
PARAM_VALUE 1 srp->data.dio_in_use 0
PARAM_VALUE 1 srp->data.k_use_sg 0
PARAM_VALUE 1 srp->data.page_order 0
PARAM_VALUE 1 srp->data.pages 0
PARAM_VALUE 1 srp->data.sglist_len 0
PARAM_VALUE 1 srp->done 0
PARAM_VALUE 1 srp->ew.work.data.counter 0
PARAM_VALUE 1 srp->ew.work.entry.next 0
PARAM_VALUE 1 srp->ew.work.entry.prev 0
PARAM_VALUE 1 srp->ew.work.func 0
PARAM_VALUE 1 srp->header.cmdp 0
PARAM_VALUE 1 srp->header.driver_status 0
PARAM_VALUE 1 srp->header.duration 0-4294967295
PARAM_VALUE 1 srp->header.dxfer_direction (-4)-(-1)
PARAM_VALUE 1 srp->header.dxfer_len 0-2147483611,4294967260-u32max
PARAM_VALUE 1 srp->header.flags 0-999999964,2147479261-2147479516
PARAM_VALUE 1 srp->header.host_status 0
PARAM_VALUE 1 srp->header.info 0
PARAM_VALUE 1 srp->header.interface_id 0
PARAM_VALUE 1 srp->header.iovec_count 0
PARAM_VALUE 1 srp->header.masked_status 0
PARAM_VALUE 1 srp->header.msg_status 0
PARAM_VALUE 1 srp->header.mx_sb_len 0
PARAM_VALUE 1 srp->header.resid 0
PARAM_VALUE 1 srp->header.sb_len_wr 0
PARAM_VALUE 1 srp->header.sbp 0
PARAM_VALUE 1 srp->header.status 0
PARAM_VALUE 1 srp->header.timeout 0-s32max
PARAM_VALUE 1 srp->header.usr_ptr 0
PARAM_VALUE 1 srp->orphan 0
PARAM_VALUE 1 srp->parentfp->rq_list_lock.owner_cpu 0
PARAM_VALUE 1 srp->parentfp->rq_list_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 1 srp->res_used 0
PARAM_VALUE 1 srp->rq 0
PARAM_VALUE 1 srp->sg_io_owned 0
PARAM_VALUE 2 cmnd 4560582914058956800
PARAM_VALUE 4 blocking 0-1
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 1 srp 5504
BUF_SIZE 1 srp 5504
BUF_SIZE 2 cmnd 252
CAPPED_DATA 0 &sfp->f_mutex 1
FUZZY_MAX 1 srp->header.dxfer_direction (-1)
FUZZY_MAX 4 blocking 1
HARD_MAX 1 srp->header.dxfer_direction (-1)
HARD_MAX 4 blocking 1
USER_DATA 2 *cmnd 0-255
USER_PTR 2 cmnd