Lines Matching refs:scsi_device

63 #include <scsi/scsi_device.h>
160 struct scsi_device *sdev = cmd->device;
205 int scsi_device_max_queue_depth(struct scsi_device *sdev)
217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
254 int scsi_track_queue_full(struct scsi_device *sdev, int depth)
292 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer,
336 static int scsi_get_vpd_size(struct scsi_device *sdev, u8 page)
390 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf,
428 static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page)
465 static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page,
492 void scsi_attach_vpd(struct scsi_device *sdev)
538 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
593 static bool scsi_cdl_check_cmd(struct scsi_device *sdev, u8 opcode, u16 sa,
629 void scsi_cdl_check(struct scsi_device *sdev)
680 int scsi_cdl_enable(struct scsi_device *sdev, bool enable)
737 * scsi_device_get - get an additional reference to a scsi_device
740 * Description: Gets a reference to the scsi_device and increments the use count
747 int scsi_device_get(struct scsi_device *sdev)
765 * scsi_device_put - release a reference to a scsi_device
768 * Description: Release a reference to the scsi_device and decrements the use
772 void scsi_device_put(struct scsi_device *sdev)
782 struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *shost,
783 struct scsi_device *prev)
786 struct scsi_device *next = NULL;
791 next = list_entry(list->next, struct scsi_device, siblings);
817 void (*fn)(struct scsi_device *, void *))
820 struct scsi_device *sdev;
837 * take a reference on the scsi_device, so the whole loop must be
845 void (*fn)(struct scsi_device *, void *))
848 struct scsi_device *sdev;
863 * Description: Looks up the scsi_device with the specified @lun for a given
864 * @starget. The returned scsi_device does not have an additional
866 * any access to the returned scsi_device. A scsi_device in state
873 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget,
876 struct scsi_device *sdev;
894 * Description: Looks up the scsi_device with the specified @lun for a given
895 * @starget. The returned scsi_device has an additional reference that
898 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget,
901 struct scsi_device *sdev;
922 * Description: Looks up the scsi_device with the specified @channel, @id, @lun
923 * for a given host. The returned scsi_device does not have an additional
925 * to the returned scsi_device.
931 struct scsi_device *__scsi_device_lookup(struct Scsi_Host *shost,
934 struct scsi_device *sdev;
955 * Description: Looks up the scsi_device with the specified @channel, @id, @lun
956 * for a given host. The returned scsi_device has an additional reference that
959 struct scsi_device *scsi_device_lookup(struct Scsi_Host *shost,
962 struct scsi_device *sdev;