Lines Matching defs:sdev
160 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local
205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth()
217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth()
254 int scsi_track_queue_full(struct scsi_device *sdev, int depth) in scsi_track_queue_full()
292 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer, in scsi_vpd_inquiry()
336 static int scsi_get_vpd_size(struct scsi_device *sdev, u8 page) in scsi_get_vpd_size()
397 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, in scsi_get_vpd_page()
435 static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page) in scsi_get_vpd_buf()
472 static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page, in scsi_update_vpd_page()
499 void scsi_attach_vpd(struct scsi_device *sdev) in scsi_attach_vpd()
547 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer, in scsi_report_opcode()
602 static bool scsi_cdl_check_cmd(struct scsi_device *sdev, u8 opcode, u16 sa, in scsi_cdl_check_cmd()
638 void scsi_cdl_check(struct scsi_device *sdev) in scsi_cdl_check()
696 int scsi_cdl_enable(struct scsi_device *sdev, bool enable) in scsi_cdl_enable()
763 int scsi_device_get(struct scsi_device *sdev) in scsi_device_get()
788 void scsi_device_put(struct scsi_device *sdev) in scsi_device_put()
836 struct scsi_device *sdev; in starget_for_each_device() local
864 struct scsi_device *sdev; in __starget_for_each_device() local
892 struct scsi_device *sdev; in __scsi_device_lookup_by_target() local
917 struct scsi_device *sdev; in scsi_device_lookup_by_target() local
950 struct scsi_device *sdev; in __scsi_device_lookup() local
978 struct scsi_device *sdev; in scsi_device_lookup() local