Lines Matching refs:scsi_device
89 struct scsi_device *device = cmd->device; in scsi_set_blocked()
148 struct scsi_device *device = cmd->device; in __scsi_queue_insert()
209 int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in __scsi_execute()
293 void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd) in scsi_device_unbusy()
319 static void scsi_single_lun_run(struct scsi_device *current_sdev) in scsi_single_lun_run()
322 struct scsi_device *sdev, *tmp; in scsi_single_lun_run()
358 static inline bool scsi_device_is_busy(struct scsi_device *sdev) in scsi_device_is_busy()
390 struct scsi_device *sdev; in scsi_starved_list_run()
413 struct scsi_device, starved_entry); in scsi_starved_list_run()
454 struct scsi_device *sdev = q->queuedata; in scsi_run_queue()
466 struct scsi_device *sdev; in scsi_requeue_run_queue()
469 sdev = container_of(work, struct scsi_device, requeue_work); in scsi_requeue_run_queue()
476 struct scsi_device *sdev; in scsi_run_host_queues()
509 static void scsi_run_queue_async(struct scsi_device *sdev) in scsi_run_queue_async()
540 struct scsi_device *sdev = cmd->device; in scsi_end_request()
961 static inline bool scsi_cmd_needs_dma_drain(struct scsi_device *sdev, in scsi_cmd_needs_dma_drain()
983 struct scsi_device *sdev = cmd->device; in scsi_alloc_sgtables()
1123 void scsi_init_command(struct scsi_device *dev, struct scsi_cmnd *cmd) in scsi_init_command()
1166 static blk_status_t scsi_setup_scsi_cmnd(struct scsi_device *sdev, in scsi_setup_scsi_cmnd()
1195 scsi_device_state_check(struct scsi_device *sdev, struct request *req) in scsi_device_state_check()
1248 struct scsi_device *sdev) in scsi_dev_queue_ready()
1282 struct scsi_device *sdev) in scsi_target_queue_ready()
1338 struct scsi_device *sdev, in scsi_host_queue_ready()
1398 struct scsi_device *sdev = q->queuedata; in scsi_mq_lld_busy()
1546 struct scsi_device *sdev = req->q->queuedata; in scsi_prepare_cmd()
1609 struct scsi_device *sdev = q->queuedata; in scsi_mq_put_budget()
1616 struct scsi_device *sdev = q->queuedata; in scsi_mq_get_budget()
1664 struct scsi_device *sdev = q->queuedata; in scsi_queue_rq()
1967 struct scsi_device *scsi_device_from_queue(struct request_queue *q) in scsi_device_from_queue()
1969 struct scsi_device *sdev = NULL; in scsi_device_from_queue()
2043 scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage, in scsi_mode_select()
2121 scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage, in scsi_mode_sense()
2238 scsi_test_unit_ready(struct scsi_device *sdev, int timeout, int retries, in scsi_test_unit_ready()
2269 scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state) in scsi_device_set_state()
2395 static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt) in scsi_evt_emit()
2445 struct scsi_device *sdev; in scsi_evt_thread()
2449 sdev = container_of(work, struct scsi_device, event_work); in scsi_evt_thread()
2483 void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt) in sdev_evt_send()
2548 void sdev_evt_send_simple(struct scsi_device *sdev, in sdev_evt_send_simple()
2576 scsi_device_quiesce(struct scsi_device *sdev) in scsi_device_quiesce()
2624 void scsi_device_resume(struct scsi_device *sdev) in scsi_device_resume()
2642 device_quiesce_fn(struct scsi_device *sdev, void *data) in device_quiesce_fn()
2655 device_resume_fn(struct scsi_device *sdev, void *data) in device_resume_fn()
2667 static int __scsi_internal_device_block_nowait(struct scsi_device *sdev) in __scsi_internal_device_block_nowait()
2675 void scsi_start_queue(struct scsi_device *sdev) in scsi_start_queue()
2681 static void scsi_stop_queue(struct scsi_device *sdev, bool nowait) in scsi_stop_queue()
2715 int scsi_internal_device_block_nowait(struct scsi_device *sdev) in scsi_internal_device_block_nowait()
2745 static int scsi_internal_device_block(struct scsi_device *sdev) in scsi_internal_device_block()
2773 int scsi_internal_device_unblock_nowait(struct scsi_device *sdev, in scsi_internal_device_unblock_nowait()
2826 static int scsi_internal_device_unblock(struct scsi_device *sdev, in scsi_internal_device_unblock()
2839 device_block(struct scsi_device *sdev, void *data) in device_block()
2870 device_unblock(struct scsi_device *sdev, void *data) in device_unblock()
2898 struct scsi_device *sdev; in scsi_host_block()
2931 struct scsi_device *sdev; in scsi_host_unblock()
3005 void sdev_disable_disk_events(struct scsi_device *sdev) in sdev_disable_disk_events()
3011 void sdev_enable_disk_events(struct scsi_device *sdev) in sdev_enable_disk_events()
3105 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id()
3229 int scsi_vpd_tpg_id(struct scsi_device *sdev, int *rel_id) in scsi_vpd_tpg_id()