Lines Matching refs:device

5 #include <linux/device.h>
71 * SCSI_MLQUEUE_DEVICE_BUSY: Block this device temporarily, but
81 * this device/host completes, or a period of time determined by
159 * Before the mid layer attempts to scan for a new device where none
165 * "is this a new device" checks in their queuecommand routine,
173 * device will be used for however long it is kept around, then when
174 * the device is removed from the system (or * possibly at reboot
177 * However, if you allocate memory and hang it off the device struct,
180 * each time a device is tore down.
187 * Once the device has responded to an INQUIRY and we know the
188 * device is online, we call into the low level driver with the
189 * struct scsi_device *. If the low level device driver implements
191 * depth on the device. All other tasks are optional and depend
196 * 1. Setting the device queue depth. Proper setting of this is
198 * 2. Determining if the device supports the various synchronous
199 * negotiation protocols. The device struct will already have
201 * will have been shoved into the various device flag bits, eg.
202 * device->sdtr will be true if the device supports SDTR messages.
203 * 3. Allocating command structs that the device will need.
204 * 4. Setting the default timeout on this device (if needed).
205 * 5. Anything else the low level driver might want to do on a device
207 * 6. Return 0 on success, non-0 on error. The device will be marked
210 * device, so don't leave any loose memory hanging around, clean
218 * Immediately prior to deallocating the device and after all activity
220 * driver may completely detach itself from the scsi device and vice
229 * Before the mid layer attempts to scan for a new device attached
274 * to be changeable (on a per device basis). Returns either
314 * size, device, list (heads, sectors, cylinders)
323 * device reach beyond the end of the device.
425 * blocks to be provided for each device. Set this to 1 for one
484 * Pointer to the SCSI device attribute groups for this host,
699 struct device shost_gendev, shost_dev;
708 * Points to the physical bus device we'd use to do DMA
711 struct device *dma_dev;
733 int scsi_is_host_device(const struct device *);
735 static inline struct Scsi_Host *dev_to_shost(struct device *dev)
758 struct device *,
759 struct device *);
778 struct device *dev)
783 static inline struct device *scsi_get_device(struct Scsi_Host *shost)
810 * initiator and SBC block device.