Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/scsi/libsas/sas_discover.c sas_get_port_device() -> sas_phy_set_target()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 1 dev 4096-ptr_max
PARAM_VALUE 1 dev->dev_type 1-3,5
PARAM_VALUE 1 dev->tproto 0-255
BUF_SIZE 1 dev 576
BUF_SIZE 1 dev->rphy 1680
CAPPED_DATA 0 &p->port_phy_el 1
DATA_SOURCE 1 dev r sas_alloc_device
FUZZY_MAX 1 dev->tproto 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &port->phy_list_lock
LOCK2 irq
TYPE_LOCK (struct asd_sas_port)->phy_list_lock

drivers/scsi/libsas/sas_port.c sas_deform_port() -> sas_phy_set_target()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
PARAM_VALUE 0 p->phy 4096-ptr_max
PARAM_VALUE 1 dev 0
DATA_SOURCE 0 p $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &port->phy_list_lock
LOCK2 &sas_ha->phy_port_lock
LOCK2 flags
TYPE_LOCK (struct asd_sas_port)->phy_list_lock
TYPE_LOCK (struct sas_ha_struct)->phy_port_lock

drivers/scsi/libsas/sas_port.c sas_form_port_add_phy() -> sas_phy_set_target()

Type Parameter Key Value
PARAM_VALUE 0 p 4096-ptr_max
DATA_SOURCE 0 p $1
PREEMPT_ADD
NOCHECK_CALL
LOCK2 &port->phy_list_lock
LOCK2 &sas_ha->phy_port_lock
LOCK2 flags
TYPE_LOCK (struct asd_sas_port)->phy_list_lock
TYPE_LOCK (struct sas_ha_struct)->phy_port_lock