Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/scsi/leapraid/leapraid_func.c leapraid_get_sas_dev_by_hdl() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->pdev->dev.cma_area->nranges s32min-s32max
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 hdl $1
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_func.c leapraid_sas_dev_remove_by_hdl() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->access_ctrl.shost_recovering 0
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 hdl $1
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_func.c leapraid_sas_pd_expose() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->access_ctrl.host_removing 0
PARAM_VALUE 0 adapter->access_ctrl.pcie_recovering 0
PARAM_VALUE 0 adapter->adapter_attr.features.max_dev_handle 1-u16max
PARAM_VALUE 0 adapter->fw_evt_s.cur_evt 4096-ptr_max
PARAM_VALUE 0 adapter->fw_evt_s.fw_evt_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 hdl 1-u16max
CAPPED_DATA 1 hdl 1
DATA_SOURCE 0 adapter $0
PARAM_COMPARE 0 adapter->adapter_attr.features.max_dev_handle >= $1
PARAM_COMPARE 1 hdl <= $0->adapter_attr.features.max_dev_handle
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_func.c leapraid_sas_pd_hide() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->access_ctrl.host_removing 0
PARAM_VALUE 0 adapter->access_ctrl.pcie_recovering 0
PARAM_VALUE 0 adapter->adapter_attr.features.max_dev_handle 1-u16max
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.dep_map->name 0-255
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 adapter->driver_cmds.cfg_op_cmd.status 32768
PARAM_VALUE 0 adapter->fw_evt_s.cur_evt 4096-ptr_max
PARAM_VALUE 0 adapter->fw_evt_s.fw_evt_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 adapter->pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 1 hdl 1-u16max
CAPPED_DATA 1 hdl 1
DATA_SOURCE 0 adapter $0
PARAM_COMPARE 0 adapter->adapter_attr.features.max_dev_handle >= $1
PARAM_COMPARE 1 hdl <= $0->adapter_attr.features.max_dev_handle
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_func.c leapraid_tgt_not_responding() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->access_ctrl.host_removing 0
PARAM_VALUE 0 adapter->access_ctrl.pcie_recovering 0
PARAM_VALUE 0 adapter->adapter_attr.features.max_dev_handle 1-u16max
PARAM_VALUE 0 adapter->dev_topo.pd_hdls 4096-ptr_max
PARAM_VALUE 0 adapter->iomem_base 4096-ptr_max
PARAM_VALUE 1 hdl 1-u16max
CAPPED_DATA 1 hdl 1
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 hdl $1
PARAM_COMPARE 0 adapter->adapter_attr.features.max_dev_handle >= $1
PARAM_COMPARE 1 hdl <= $0->adapter_attr.features.max_dev_handle
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_func.c leapraid_tgt_rst_send() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
PARAM_VALUE 0 adapter->access_ctrl.host_removing 0
PARAM_VALUE 0 adapter->access_ctrl.pcie_recovering 0
PARAM_VALUE 0 adapter->adapter_attr.features.max_dev_handle 1-u16max
PARAM_VALUE 0 adapter->dev_topo.pd_hdls 4096-ptr_max
PARAM_VALUE 0 adapter->iomem_base 4096-ptr_max
PARAM_VALUE 1 hdl 1-u16max
CAPPED_DATA 1 hdl 1
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 hdl $1
PARAM_COMPARE 0 adapter->adapter_attr.features.max_dev_handle >= $1
PARAM_COMPARE 1 hdl <= $0->adapter_attr.features.max_dev_handle
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_os.c leapraid_smart_fault_detect() -> leapraid_hold_lock_get_sas_dev_by_hdl()

Type Parameter Key Value
PARAM_VALUE 0 adapter 4096-ptr_max
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 hdl $1
PREEMPT_ADD <- disables preempt
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock