Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/st.c rw_checks() -> switch_partition()

Type Parameter Key Value
PARAM_VALUE 0 STp 4096-ptr_max
PARAM_VALUE 0 STp->can_partitions 1-255
PARAM_VALUE 0 STp->device 4096-ptr_max
PARAM_VALUE 0 STp->device->host 4096-ptr_max
PARAM_VALUE 0 STp->device->host->shost_state 0-4,8-u32max
PARAM_VALUE 0 STp->device->sdev_state 0-3,5,8-u32max
PARAM_VALUE 0 STp->in_use 1-255
PARAM_VALUE 0 STp->lock.dep_map->name 0-255
PARAM_VALUE 0 STp->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 STp->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 STp->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 STp->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 STp->lock.wait_lock.owner (-1)
PARAM_VALUE 0 STp->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 STp->modes 4096-ptr_max
PARAM_VALUE 0 STp->pos_unknown 0
PARAM_VALUE 0 STp->ready 0
BUF_SIZE 0 STp s32min-(-2),1-s32max
BUF_SIZE 0 STp s32min-(-2),1-s32max
DATA_SOURCE 0 STp $0
LOCK2 0 &STp->lock
TYPE_LOCK (struct scsi_tape)->lock

drivers/scsi/st.c st_common_ioctl() -> switch_partition()

Type Parameter Key Value
PARAM_VALUE 0 STp 4096-ptr_max
PARAM_VALUE 0 STp->can_partitions 1-255
DATA_SOURCE 0 STp $0

drivers/scsi/st.c st_flush() -> switch_partition()

Type Parameter Key Value
PARAM_VALUE 0 STp 4096-ptr_max
PARAM_VALUE 0 STp->can_partitions 1-255
PARAM_VALUE 0 STp->modes 4096-ptr_max
PARAM_VALUE 0 STp->ps 4096-ptr_max
BUF_SIZE 0 STp s32min-(-2),1-s32max
BUF_SIZE 0 STp s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING