Lines Matching refs:scsi_device
64 #include <scsi/scsi_device.h>
169 struct scsi_device *sdev = cmd->device;
224 int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
257 int scsi_track_queue_full(struct scsi_device *sdev, int depth)
295 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer,
348 int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf,
394 static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page)
420 static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page,
447 void scsi_attach_vpd(struct scsi_device *sdev)
484 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
518 * scsi_device_get - get an additional reference to a scsi_device
521 * Description: Gets a reference to the scsi_device and increments the use count
528 int scsi_device_get(struct scsi_device *sdev)
546 * scsi_device_put - release a reference to a scsi_device
549 * Description: Release a reference to the scsi_device and decrements the use
553 void scsi_device_put(struct scsi_device *sdev)
563 struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *shost,
564 struct scsi_device *prev)
567 struct scsi_device *next = NULL;
572 next = list_entry(list->next, struct scsi_device, siblings);
598 void (*fn)(struct scsi_device *, void *))
601 struct scsi_device *sdev;
618 * take a reference on the scsi_device, so the whole loop must be
626 void (*fn)(struct scsi_device *, void *))
629 struct scsi_device *sdev;
644 * Description: Looks up the scsi_device with the specified @lun for a given
645 * @starget. The returned scsi_device does not have an additional
647 * any access to the returned scsi_device. A scsi_device in state
654 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget,
657 struct scsi_device *sdev;
675 * Description: Looks up the scsi_device with the specified @lun for a given
676 * @starget. The returned scsi_device has an additional reference that
679 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget,
682 struct scsi_device *sdev;
703 * Description: Looks up the scsi_device with the specified @channel, @id, @lun
704 * for a given host. The returned scsi_device does not have an additional
706 * to the returned scsi_device.
712 struct scsi_device *__scsi_device_lookup(struct Scsi_Host *shost,
715 struct scsi_device *sdev;
736 * Description: Looks up the scsi_device with the specified @channel, @id, @lun
737 * for a given host. The returned scsi_device has an additional reference that
740 struct scsi_device *scsi_device_lookup(struct Scsi_Host *shost,
743 struct scsi_device *sdev;