Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_by_addr() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->port | 1-u64max |
| CAPPED_DATA | 0 | s->port | 1 |
| CAPPED_DATA | 0 | s->sas_address | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| HALF_LOCKED2 | &sdev->request_queue->limits_lock | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_by_addr() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->port | 1-u64max |
| CAPPED_DATA | 0 | s->port | 1 |
| CAPPED_DATA | 0 | s->sas_address | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| HALF_LOCKED2 | &sdev->request_queue->limits_lock | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_by_handle() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| CAPPED_DATA | 0 | s->handle | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_by_rphy() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| CAPPED_DATA | 0 | s->rphy | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ioc->transport_cmds.mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_by_rphy() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| CAPPED_DATA | 0 | s->rphy | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ioc->transport_cmds.mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c __mpt3sas_get_sdev_from_target() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 1-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | shost->host_lock | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_sas_device_add() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->connector_name | 4096-ptr_max |
| PARAM_VALUE | 0 | s->device_info | 128-u32max |
| PARAM_VALUE | 0 | s->fast_path | 0-1 |
| PARAM_VALUE | 0 | s->is_chassis_slot_valid | 0-1 |
| PARAM_VALUE | 0 | s->port | 4096-ptr_max |
| PARAM_VALUE | 0 | s->refcount.refcount.refs.counter | 1 |
| BUF_SIZE | 0 | s | 144 |
| BUF_SIZE | 0 | s->port | (-1),56 |
| CAPPED_DATA | 0 | s->enclosure_handle | 1 |
| CAPPED_DATA | 0 | s->port->port_id | 1 |
| DATA_SOURCE | 0 | s | $1 |
| FUZZY_MAX | 0 | s->fast_path | 1 |
| FUZZY_MAX | 0 | s->is_chassis_slot_valid | 1 |
| HARD_MAX | 0 | s->fast_path | 1 |
| HARD_MAX | 0 | s->is_chassis_slot_valid | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_sas_device_init_add() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->connector_name | 4096-ptr_max |
| PARAM_VALUE | 0 | s->device_info | 128-u32max |
| PARAM_VALUE | 0 | s->fast_path | 0-1 |
| PARAM_VALUE | 0 | s->is_chassis_slot_valid | 0-1 |
| PARAM_VALUE | 0 | s->port | 4096-ptr_max |
| PARAM_VALUE | 0 | s->refcount.refcount.refs.counter | 1 |
| BUF_SIZE | 0 | s | 144 |
| BUF_SIZE | 0 | s->port | (-1),56 |
| CAPPED_DATA | 0 | s->enclosure_handle | 1 |
| CAPPED_DATA | 0 | s->port->port_id | 1 |
| DATA_SOURCE | 0 | s | $1 |
| FUZZY_MAX | 0 | s->fast_path | 1 |
| FUZZY_MAX | 0 | s->is_chassis_slot_valid | 1 |
| HARD_MAX | 0 | s->fast_path | 1 |
| HARD_MAX | 0 | s->is_chassis_slot_valid | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c get_next_sas_device() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |
drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_make_active() -> sas_device_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | s->port | 1-u64max |
| CAPPED_DATA | 0 | s->port | 1 |
| CAPPED_DATA | 0 | s->sas_address_parent | 1 |
| CAPPED_DATA | 0 | &s->list | 1 |
| DATA_SOURCE | 0 | s | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ioc->sas_device_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct MPT3SAS_ADAPTER)->sas_device_lock |