Defined in 1 files as a function:
Referenced in 9 files:
- drivers/scsi/aacraid/commsup.c
- drivers/scsi/scsi_error.c
- drivers/scsi/scsi_lib.c, line 1960
- drivers/scsi/scsi_transport_spi.c
- drivers/scsi/sd.c
- drivers/scsi/sg.c, line 2492
- drivers/scsi/smartpqi/smartpqi_init.c
- drivers/scsi/sr.c, line 374
- drivers/ufs/core/ufshcd.c, line 10071
Smatch caller information:
drivers/ufs/core/ufshcd.c ufshcd_set_dev_pwr_mode() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | hba->host->host_lock |
drivers/scsi/scsi_error.c scsi_block_when_processing_errors() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| DATA_SOURCE | 0 | sdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
| HALF_LOCKED2 | &STp->lock | ||
| HALF_LOCKED2 | &cd->lock | ||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/scsi_error.c scsi_decide_disposition() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/scsi_error.c scsi_eh_bus_device_reset() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-2,5-u32max |
| CAPPED_DATA | 0 | sdev | 1 |
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/scsi_error.c scsi_eh_flush_done_q() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/scsi_error.c scsi_eh_stu() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-2,5-u32max |
| CAPPED_DATA | 0 | sdev | 1 |
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/scsi_error.c scsi_eh_test_devices() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/scsi_error.c scsi_restart_operations() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-2,5-u32max |
drivers/scsi/sg.c sg_proc_seq_show_dev() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| CAPPED_DATA | 0 | sdev->budget_map.map_nr | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
| LOCK2 | &s->lock | ||
| LOCK2 | global &sg_index_lock | ||
| LOCK2 | iflags | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/scsi/scsi_lib.c scsi_queue_rq() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| BUF_SIZE | 0 | sdev | 128,736,792,816,1000-s32max |
| BUF_SIZE | 0 | sdev | 128,736,792,816,1000-s32max |
| CAPPED_DATA | 0 | sdev | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/scsi/sd.c sd_check_events() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/scsi/sd.c sd_eh_action() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/sd.c sd_open() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-2,5,8-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/scsi/sd.c sd_setup_read_write_cmnd() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/scsi/sd.c sd_start_stop_device() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/scsi/sd.c sd_sync_cache() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/scsi/aacraid/commsup.c aac_handle_aif() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-2,5-u32max |
| CAPPED_DATA | 0 | sdev->channel | 1 |
| CAPPED_DATA | 0 | sdev->id | 1 |
| CAPPED_DATA | 0 | sdev->lun | 1 |
| DATA_SOURCE | 0 | sdev | r scsi_device_lookup |
drivers/scsi/smartpqi/smartpqi_init.c pqi_fail_all_outstanding_requests() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/smartpqi/smartpqi_init.c pqi_volume_rescan_needed() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 1-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl_info->scan_mutex | ||
| LOCK2 | &ctrl_info->scsi_device_list_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct pqi_ctrl_info)->scan_mutex | ||
| TYPE_LOCK | (struct pqi_ctrl_info)->scsi_device_list_lock |
drivers/scsi/scsi_transport_spi.c spi_dv_device_compare_inquiry() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| BUF_SIZE | 0 | sdev | (-1),4232,4280,4384 |
| BUF_SIZE | 0 | sdev | (-1),4232,4280,4384 |
| DATA_SOURCE | 0 | sdev | $0 |
| NOSPEC | 0 | sdev->sdev_target->channel | |
| NOSPEC | 0 | sdev->sdev_target->id | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sdev->request_queue->queue_depth | 1-4095[c] |
| USER_DATA | 0 | sdev->sdev_target->channel | 1-s32max[c] |
| USER_DATA | 0 | sdev->sdev_target->id | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->async_depth | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->limits.max_discard_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->limits.max_open_zones | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->nr_hw_queues | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->nr_requests | |
| LOCK2 | &(&starget->starget_data)->dv_mutex | ||
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | 0 | &sdev->request_queue->limits_lock |
drivers/scsi/scsi_transport_spi.c spi_dv_device_echo_buffer() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| BUF_SIZE | 0 | sdev | (-1),4232,4280,4384 |
| BUF_SIZE | 0 | sdev | (-1),4232,4280,4384 |
| DATA_SOURCE | 0 | sdev | $0 |
| NOSPEC | 0 | sdev->sdev_target->channel | |
| NOSPEC | 0 | sdev->sdev_target->id | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sdev->request_queue->queue_depth | 1-4095[c] |
| USER_DATA | 0 | sdev->sdev_target->channel | 1-s32max[c] |
| USER_DATA | 0 | sdev->sdev_target->id | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->async_depth | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->limits.max_discard_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->limits.max_open_zones | |
| NO_OVERFLOW_SIMPLE | 0 | sdev->request_queue->nr_requests | |
| LOCK2 | &(&starget->starget_data)->dv_mutex | ||
| LOCK2 | global &system_transition_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| HALF_LOCKED2 | 0 | &sdev->request_queue->limits_lock |
drivers/scsi/sr.c sr_init_command() -> scsi_device_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |