Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/scsi/qla2xxx/qla_iocb.c qla24xx_dif_start_scsi() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ha->hardware_lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct qla_hw_data)->hardware_lock

drivers/scsi/qla2xxx/qla_iocb.c qla24xx_start_scsi() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ha->hardware_lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct qla_hw_data)->hardware_lock

drivers/scsi/qla2xxx/qla_iocb.c qla2xxx_dif_start_scsi_mq() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qpair->qp_lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct qla_qpair)->qp_lock

drivers/scsi/qla2xxx/qla_iocb.c qla2xxx_start_scsi_mq() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qpair->qp_lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct qla_qpair)->qp_lock

drivers/scsi/qla2xxx/qla_iocb.c qla_get_iocbs_resource() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->iocb_cnt 1
PARAM_VALUE 1 iores->res_type 3,5,7
PREEMPT_ADD
LOCK2 flags
LOCK2 qp->qp_lock_ptr

drivers/scsi/qla2xxx/qla_iocb.c qla_start_scsi_type6() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qpair->qp_lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct qla_qpair)->qp_lock

drivers/scsi/qla2xxx/qla_nvme.c qla2x00_start_nvme_mq() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
BUF_SIZE 0 qp (-1),40
BUF_SIZE 0 qp (-1),40
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qpair->qp_lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct qla_qpair)->qp_lock

drivers/scsi/qla2xxx/qla_edif.c qla28xx_start_scsi_edif() -> qla_get_fw_resources()

Type Parameter Key Value
PARAM_VALUE 0 qp 4096-ptr_max
PARAM_VALUE 1 iores 4096-ptr_max
PARAM_VALUE 1 iores->exch_cnt 1
PARAM_VALUE 1 iores->iocb_cnt 1-13108
PARAM_VALUE 1 iores->res_type 3
MEM_ZERO 1 iores
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 lock
HALF_LOCKED2 &sdev->state_mutex