Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/pmcraid.c pmcraid_abort_cmd() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PREEMPT_ADD
LOCK2 host_lock_flags
LOCK2 pinstance->host->host_lock

drivers/scsi/pmcraid.c pmcraid_handle_config_change() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->ccn.cmd 0
PARAM_VALUE 0 pinstance->ccn.hcam 4096-ptr_max
PARAM_VALUE 0 pinstance->ccn.hcam->notification_lost 1-255
PARAM_VALUE 0 pinstance->ccn.ignore.counter s32min-0,2-s32max
PARAM_VALUE 0 pinstance->inq_data 4096-ptr_max
DATA_SOURCE 0 pinstance $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 host_lock_flags
HALF_LOCKED2 lock_flags
HALF_LOCKED2 pinstance->host->host_lock

drivers/scsi/pmcraid.c pmcraid_init_hcam() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
DATA_SOURCE 0 pinstance $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 host_lock_flags
HALF_LOCKED2 lock_flags
HALF_LOCKED2 pinstance->host->host_lock
HALF_LOCKED2 0 pinstance->host->host_lock

drivers/scsi/pmcraid.c pmcraid_initiate_reset() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->host 4096-ptr_max
PARAM_VALUE 0 pinstance->host->host_self_blocked 1
PARAM_VALUE 0 pinstance->ioa_reset_in_progress 0
DATA_SOURCE 0 pinstance $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 pinstance unit_byte
LOCK2 0 pinstance->host->host_lock
HALF_LOCKED2 lock_flags

drivers/scsi/pmcraid.c pmcraid_queuecommand_lck() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->inq_data 4096-ptr_max
PARAM_VALUE 0 pinstance->ioa_reset_in_progress 0
PARAM_VALUE 0 pinstance->ioa_state 0-1,3-15
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 irq_flags
LOCK2 shost->host_lock
HALF_LOCKED2 &sdev->state_mutex

drivers/scsi/pmcraid.c pmcraid_reset_device() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->host 4096-ptr_max
PARAM_VALUE 0 pinstance->ioa_reset_in_progress 0
PARAM_VALUE 0 pinstance->ioa_state 0-1,3-15
PREEMPT_ADD <- disables preempt
LOCK2 lock_flags
LOCK2 0 pinstance->host->host_lock

drivers/scsi/pmcraid.c pmcraid_reset_reload() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->host 4096-ptr_max
PARAM_VALUE 0 pinstance->host->host_self_blocked 1
PARAM_VALUE 0 pinstance->ioa_reset_in_progress 0
PARAM_VALUE 0 pinstance->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 pinstance->pdev->dev.msi.data->__iter_idx 0-s64max
BUF_SIZE 0 pinstance s32min-(-1),1-s32max
BUF_SIZE 0 pinstance s32min-(-1),1-s32max
DATA_SOURCE 0 pinstance $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 pinstance unit_byte
LOCK2 lock_flags
LOCK2 0 pinstance->host->host_lock

drivers/scsi/pmcraid.c pmcraid_timeout_handler() -> pmcraid_get_free_cmd()

Type Parameter Key Value
PARAM_VALUE 0 pinstance 4096-ptr_max
PARAM_VALUE 0 pinstance->host 4096-ptr_max
PARAM_VALUE 0 pinstance->ioa_reset_attempts 0
PARAM_VALUE 0 pinstance->ioa_reset_in_progress 0
PARAM_VALUE 0 pinstance->pdev->dev.bus 0,4096-ptr_max
PARAM_VALUE 0 pinstance->pdev->dev.class 0,4096-ptr_max
PARAM_VALUE 0 pinstance->pdev->dev.driver 0,4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 lock_flags
LOCK2 0 pinstance->host->host_lock