Lines Matching refs:device
5 #include <linux/device.h>
86 * SCSI_MLQUEUE_DEVICE_BUSY: Block this device temporarily, but
96 * this device/host completes, or a period of time determined by
139 * Before the mid layer attempts to scan for a new device where none
145 * "is this a new device" checks in their queuecommand routine,
153 * device will be used for however long it is kept around, then when
154 * the device is removed from the system (or * possibly at reboot
157 * However, if you allocate memory and hang it off the device struct,
160 * each time a device is tore down.
167 * Once the device has responded to an INQUIRY and we know the
168 * device is online, we call into the low level driver with the
169 * struct scsi_device *. If the low level device driver implements
171 * depth on the device. All other tasks are optional and depend
176 * 1. Setting the device queue depth. Proper setting of this is
178 * 2. Determining if the device supports the various synchronous
179 * negotiation protocols. The device struct will already have
181 * will have been shoved into the various device flag bits, eg.
182 * device->sdtr will be true if the device supports SDTR messages.
183 * 3. Allocating command structs that the device will need.
184 * 4. Setting the default timeout on this device (if needed).
185 * 5. Anything else the low level driver might want to do on a device
187 * 6. Return 0 on success, non-0 on error. The device will be marked
190 * device, so don't leave any loose memory hanging around, clean
198 * Immediately prior to deallocating the device and after all activity
200 * driver may completely detach itself from the scsi device and vice
209 * Before the mid layer attempts to scan for a new device attached
254 * to be changeable (on a per device basis). Returns either
284 * size, device, list (heads, sectors, cylinders)
293 * device reach beyond the end of the device.
395 * blocks to be provided for each device. Set this to 1 for one
462 * Pointer to the SCSI device properties for this host, NULL terminated.
467 * Pointer to the SCSI device attribute groups for this host,
681 struct device shost_gendev, shost_dev;
690 * Points to the physical bus device we'd use to do DMA
693 struct device *dma_dev;
715 int scsi_is_host_device(const struct device *);
717 static inline struct Scsi_Host *dev_to_shost(struct device *dev)
740 struct device *,
741 struct device *);
743 extern void scsi_rescan_device(struct device *);
754 struct device *dev)
759 static inline struct device *scsi_get_device(struct Scsi_Host *shost)
785 * These two functions are used to allocate and free a pseudo device
787 * physical device. You must deallocate when you are done with the
788 * thing. This physical pseudo-device isn't real and won't be available
796 * initiator and SBC block device.