Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/message/fusion/mptsas.c
- drivers/scsi/ibmvscsi/ibmvfc-core.c, line 3120
- drivers/scsi/leapraid/leapraid_func.c
- drivers/scsi/mpi3mr/mpi3mr_os.c
- drivers/scsi/mpt3sas/mpt3sas_scsih.c
- drivers/scsi/scsi.c, line 873
- drivers/scsi/scsi_lib.c
Smatch caller information:
drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_sas_pd_expose() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| NOCHECK_CALL |
drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_sas_pd_hide() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 1 |
| NOCHECK_CALL |
drivers/scsi/leapraid/leapraid_func.c leapraid_sas_pd_expose() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| NOCHECK_CALL |
drivers/scsi/leapraid/leapraid_func.c leapraid_sas_pd_hide() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 1 |
| NOCHECK_CALL |
drivers/scsi/scsi_lib.c scsi_target_quiesce() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | starget | $0 |
| NOSPEC | 0 | starget->channel | |
| NOSPEC | 0 | starget->id | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | starget->channel | 1-s32max[c] |
| USER_DATA | 0 | starget->id | 0-s32max[c] |
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | &sdev->request_queue->limits_lock | ||
| HALF_LOCKED2 | &shost->scan_mutex |
drivers/scsi/scsi_lib.c scsi_target_resume() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.parent | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | starget | $0 |
| NOSPEC | 0 | starget->channel | |
| NOSPEC | 0 | starget->id | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | starget->channel | 1-s32max[c] |
| USER_DATA | 0 | starget->id | 0-s32max[c] |
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | &sdev->request_queue->limits_lock | ||
| HALF_LOCKED2 | &shost->scan_mutex |
drivers/scsi/scsi_lib.c scsi_target_unblock() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 1 | *data | 2,7 |
| BUF_SIZE | 1 | data | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | starget | unit_byte |
| HALF_LOCKED2 | &rport->mutex |
drivers/scsi/scsi_lib.c target_block() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0 |
| NOCHECK_CALL |
drivers/scsi/scsi_lib.c target_unblock() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| DATA_SOURCE | 1 | data | $1 |
| NOCHECK_CALL |
drivers/message/fusion/mptsas.c mptsas_block_io_starget() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 1-u64max |
| PARAM_VALUE | 1 | data | 0 |
| DATA_SOURCE | 0 | starget | $0 |
| NOCHECK_CALL |
drivers/message/fusion/mptsas.c mptsas_reprobe_target() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 0-1 |
| DATA_SOURCE | 0 | starget | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_devinfochg_evt_bh() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata->dev_handle | 0-u16max |
| PARAM_VALUE | 0 | starget->hostdata->dev_type | 0-255 |
| PARAM_VALUE | 0 | starget->hostdata->io_throttle_enabled | 0-255 |
| PARAM_VALUE | 0 | starget->hostdata->perst_id | 0-65534 |
| PARAM_VALUE | 0 | starget->hostdata->throttle_group->high | 0-134215680 |
| PARAM_VALUE | 0 | starget->hostdata->throttle_group->id | 0-65534 |
| PARAM_VALUE | 0 | starget->hostdata->throttle_group->low | 0-134215680 |
| PARAM_VALUE | 0 | starget->hostdata->wslen | 0,256,2048 |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| DATA_SOURCE | 1 | data | r mpi3mr_get_tgtdev_by_handle |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_refresh_tgtdevs() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 1-u64max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_set_qd_for_all_vd_in_tg() -> starget_for_each_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | starget | 4096-ptr_max |
| PARAM_VALUE | 0 | starget->hostdata | 4096-ptr_max |
| PARAM_VALUE | 1 | data | 4096-ptr_max |
| BUF_SIZE | 1 | data | 2 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &mrioc->tgtdev_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mpi3mr_ioc)->tgtdev_lock |