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_from_tgt() -> leapraid_hold_lock_get_sas_dev_from_tgt()

Type Parameter Key Value
BUF_SIZE 1 tgt_priv (-1),16,24,48,56,64
BUF_SIZE 1 tgt_priv (-1),16,24,48,56,64
DATA_SOURCE 0 adapter $0
DATA_SOURCE 1 tgt_priv $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_os.c leapraid_sdev_destroy() -> leapraid_hold_lock_get_sas_dev_from_tgt()

Type Parameter Key Value
PARAM_VALUE 1 tgt_priv 4096-ptr_max
BUF_SIZE 1 tgt_priv 16,24,48,56,64
BUF_SIZE 1 tgt_priv 16,24,48,56,64
BIT_INFO 1 tgt_priv->flg 0x0,0xfffffffd
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &shost->scan_mutex
LOCK2 flags
LOCK2 0 &adapter->dev_topo.sas_dev_lock
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock

drivers/scsi/leapraid/leapraid_os.c leapraid_target_destroy_sas() -> leapraid_hold_lock_get_sas_dev_from_tgt()

Type Parameter Key Value
PARAM_VALUE 1 tgt_priv 1-u64max
BUF_SIZE 1 tgt_priv 16,24,48,56,64
BUF_SIZE 1 tgt_priv 16,24,48,56,64
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 flags
LOCK2 shost->host_lock
LOCK2 0 &adapter->dev_topo.sas_dev_lock
HALF_LOCKED2 &shost->scan_mutex
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct leapraid_dev_topo)->sas_dev_lock