Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/scsi/libsas/sas_expander.c sas_ex_add_parent_port() -> sas_port_alloc()

Type Parameter Key Value
PARAM_VALUE 1 port_id 0-254
CAPPED_DATA 1 port_id 1
DATA_SOURCE 1 port_id $1
FUZZY_MAX 1 port_id 0
UNITS 1 port_id unit_array_size
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/libsas/sas_expander.c sas_ex_discover_end_dev() -> sas_port_alloc()

Type Parameter Key Value
PARAM_VALUE 1 port_id 0-254
CAPPED_DATA 1 port_id 1
DATA_SOURCE 1 port_id $1
FUZZY_MAX 1 port_id 0
UNITS 1 port_id unit_array_size
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/libsas/sas_expander.c sas_ex_discover_expander() -> sas_port_alloc()

Type Parameter Key Value
PARAM_VALUE 1 port_id 0-254
CAPPED_DATA 1 port_id 1
DATA_SOURCE 1 port_id $1
FUZZY_MAX 1 port_id 0
UNITS 1 port_id unit_array_size
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/scsi_transport_sas.c sas_port_alloc_num() -> sas_port_alloc()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->release 0-ptr_max
BUF_SIZE 0 parent (-1)-0,1616
BUF_SIZE 0 parent (-1)-0,1616
DATA_SOURCE 0 parent $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/scsi/libsas/sas_port.c sas_form_port() -> sas_port_alloc()

Type Parameter Key Value
UNITS 0 parent unit_byte
UNITS 1 port_id unit_array_size