Lines Matching refs:scsi_device
54 struct scsi_device *device = cmd->device; in scsi_set_blocked()
88 struct scsi_device *sdev = cmd->device; in scsi_mq_requeue_cmd()
110 struct scsi_device *device = cmd->device; in __scsi_queue_insert()
182 int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute()
232 int scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute_req_flags()
275 void scsi_device_unbusy(struct scsi_device *sdev) in scsi_device_unbusy()
310 static void scsi_single_lun_run(struct scsi_device *current_sdev) in scsi_single_lun_run()
313 struct scsi_device *sdev, *tmp; in scsi_single_lun_run()
349 static inline bool scsi_device_is_busy(struct scsi_device *sdev) in scsi_device_is_busy()
384 struct scsi_device *sdev; in scsi_starved_list_run()
407 struct scsi_device, starved_entry); in scsi_starved_list_run()
454 struct scsi_device *sdev = q->queuedata; in scsi_run_queue()
469 struct scsi_device *sdev; in scsi_requeue_run_queue()
472 sdev = container_of(work, struct scsi_device, requeue_work); in scsi_requeue_run_queue()
497 struct scsi_device *sdev = cmd->device; in scsi_requeue_command()
515 struct scsi_device *sdev; in scsi_run_host_queues()
548 struct scsi_device *sdev = cmd->device; in scsi_mq_uninit_cmd()
603 struct scsi_device *sdev = cmd->device; in scsi_end_request()
1029 struct scsi_device *sdev = cmd->device; in scsi_init_io()
1104 static struct scsi_cmnd *scsi_get_cmd_from_req(struct scsi_device *sdev, in scsi_get_cmd_from_req()
1134 static int scsi_setup_blk_pc_cmnd(struct scsi_device *sdev, struct request *req) in scsi_setup_blk_pc_cmnd()
1164 static int scsi_setup_fs_cmnd(struct scsi_device *sdev, struct request *req) in scsi_setup_fs_cmnd()
1178 static int scsi_setup_cmnd(struct scsi_device *sdev, struct request *req) in scsi_setup_cmnd()
1200 scsi_prep_state_check(struct scsi_device *sdev, struct request *req) in scsi_prep_state_check()
1258 struct scsi_device *sdev = q->queuedata; in scsi_prep_return()
1291 struct scsi_device *sdev = q->queuedata; in scsi_prep_fn()
1322 struct scsi_device *sdev) in scsi_dev_queue_ready()
1360 struct scsi_device *sdev) in scsi_target_queue_ready()
1416 struct scsi_device *sdev) in scsi_host_queue_ready()
1478 struct scsi_device *sdev = q->queuedata; in scsi_lld_busy()
1504 struct scsi_device *sdev; in scsi_kill_request()
1684 struct scsi_device *sdev = q->queuedata; in scsi_request_fn()
1816 struct scsi_device *sdev = req->q->queuedata; in scsi_mq_prep_fn()
1885 struct scsi_device *sdev = q->queuedata; in scsi_queue_rq()
2066 struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) in scsi_alloc_queue()
2090 struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev) in scsi_mq_alloc_queue()
2139 struct scsi_device *scsi_device_from_queue(struct request_queue *q) in scsi_device_from_queue()
2141 struct scsi_device *sdev = NULL; in scsi_device_from_queue()
2241 scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage, in scsi_mode_select()
2317 scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage, in scsi_mode_sense()
2427 scsi_test_unit_ready(struct scsi_device *sdev, int timeout, int retries, in scsi_test_unit_ready()
2466 scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state) in scsi_device_set_state()
2589 static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt) in scsi_evt_emit()
2636 struct scsi_device *sdev; in scsi_evt_thread()
2640 sdev = container_of(work, struct scsi_device, event_work); in scsi_evt_thread()
2674 void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt) in sdev_evt_send()
2738 void sdev_evt_send_simple(struct scsi_device *sdev, in sdev_evt_send_simple()
2768 scsi_device_quiesce(struct scsi_device *sdev) in scsi_device_quiesce()
2792 void scsi_device_resume(struct scsi_device *sdev) in scsi_device_resume()
2806 device_quiesce_fn(struct scsi_device *sdev, void *data) in device_quiesce_fn()
2819 device_resume_fn(struct scsi_device *sdev, void *data) in device_resume_fn()
2848 scsi_internal_device_block(struct scsi_device *sdev) in scsi_internal_device_block()
2896 scsi_internal_device_unblock(struct scsi_device *sdev, in scsi_internal_device_unblock()
2932 device_block(struct scsi_device *sdev, void *data) in device_block()
2958 device_unblock(struct scsi_device *sdev, void *data) in device_unblock()
3043 void sdev_disable_disk_events(struct scsi_device *sdev) in sdev_disable_disk_events()
3049 void sdev_enable_disk_events(struct scsi_device *sdev) in sdev_enable_disk_events()
3071 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id()
3222 int scsi_vpd_tpg_id(struct scsi_device *sdev, int *rel_id) in scsi_vpd_tpg_id()