Lines Matching refs:scsi_device
161 struct scsi_device *sdev = cmd->device; in scsi_finish_command()
206 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth()
218 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth()
255 int scsi_track_queue_full(struct scsi_device *sdev, int depth) in scsi_track_queue_full()
293 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, in scsi_vpd_inquiry()
339 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, in scsi_get_vpd_page()
385 static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page) in scsi_get_vpd_buf()
411 static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page, in scsi_update_vpd_page()
438 void scsi_attach_vpd(struct scsi_device *sdev) in scsi_attach_vpd()
475 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer, in scsi_report_opcode()
521 int scsi_device_get(struct scsi_device *sdev) in scsi_device_get()
546 void scsi_device_put(struct scsi_device *sdev) in scsi_device_put()
556 struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *shost, in __scsi_iterate_devices()
557 struct scsi_device *prev) in __scsi_iterate_devices()
560 struct scsi_device *next = NULL; in __scsi_iterate_devices()
565 next = list_entry(list->next, struct scsi_device, siblings); in __scsi_iterate_devices()
591 void (*fn)(struct scsi_device *, void *)) in starget_for_each_device() argument
594 struct scsi_device *sdev; in starget_for_each_device()
619 void (*fn)(struct scsi_device *, void *)) in __starget_for_each_device() argument
622 struct scsi_device *sdev; in __starget_for_each_device()
647 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget, in __scsi_device_lookup_by_target()
650 struct scsi_device *sdev; in __scsi_device_lookup_by_target()
672 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget, in scsi_device_lookup_by_target()
675 struct scsi_device *sdev; in scsi_device_lookup_by_target()
705 struct scsi_device *__scsi_device_lookup(struct Scsi_Host *shost, in __scsi_device_lookup()
708 struct scsi_device *sdev; in __scsi_device_lookup()
733 struct scsi_device *scsi_device_lookup(struct Scsi_Host *shost, in scsi_device_lookup()
736 struct scsi_device *sdev; in scsi_device_lookup()