Lines Matching refs:device

14 #include <linux/device.h>
162 show_##name (struct device *dev, struct device_attribute *attr, \
185 store_scan(struct device *dev, struct device_attribute *attr,
199 store_shost_state(struct device *dev, struct device_attribute *attr,
223 show_shost_state(struct device *dev, struct device_attribute *attr, char *buf)
255 show_shost_supported_mode(struct device *dev, struct device_attribute *attr,
271 show_shost_active_mode(struct device *dev,
295 store_host_reset(struct device *dev, struct device_attribute *attr,
321 show_shost_eh_deadline(struct device *dev,
332 store_shost_eh_deadline(struct device *dev, struct device_attribute *attr,
382 show_host_busy(struct device *dev, struct device_attribute *attr, char *buf)
390 show_use_blk_mq(struct device *dev, struct device_attribute *attr, char *buf)
397 show_nr_hw_queues(struct device *dev, struct device_attribute *attr, char *buf)
436 static void scsi_device_cls_release(struct device *class_dev)
444 static void scsi_device_dev_release(struct device *dev)
447 struct device *parent;
477 /* NULL queue means the device can't be used */
526 static int scsi_bus_match(struct device *dev, struct device_driver *gendrv)
539 static int scsi_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
587 sdev_show_##field (struct device *dev, struct device_attribute *attr, \
612 sdev_store_##field (struct device *dev, struct device_attribute *attr, \
633 sdev_store_##field (struct device *dev, struct device_attribute *attr, \
676 sdev_show_device_busy(struct device *dev, struct device_attribute *attr,
685 sdev_show_device_blocked(struct device *dev, struct device_attribute *attr,
697 sdev_show_timeout (struct device *dev, struct device_attribute *attr, char *buf)
705 sdev_store_timeout (struct device *dev, struct device_attribute *attr,
718 sdev_show_eh_timeout(struct device *dev, struct device_attribute *attr, char *buf)
726 sdev_store_eh_timeout(struct device *dev, struct device_attribute *attr,
747 store_rescan_field (struct device *dev, struct device_attribute *attr,
756 sdev_store_delete(struct device *dev, struct device_attribute *attr,
778 * ignored because the first call of that function changes the device
791 store_state_field(struct device *dev, struct device_attribute *attr,
835 * If the device state changes to SDEV_RUNNING, we need to
836 * run the queue to avoid I/O hang, and rescan the device
850 show_state_field(struct device *dev, struct device_attribute *attr, char *buf)
864 show_queue_type_field(struct device *dev, struct device_attribute *attr,
877 store_queue_type_field(struct device *dev, struct device_attribute *attr,
899 struct device *dev = kobj_to_dev(kobj); \
930 struct device *dev = kobj_to_dev(kobj);
950 show_iostat_counterbits(struct device *dev, struct device_attribute *attr,
960 show_iostat_##field(struct device *dev, struct device_attribute *attr, \
975 sdev_show_modalias(struct device *dev, struct device_attribute *attr, char *buf)
985 sdev_show_evt_##name(struct device *dev, struct device_attribute *attr, \
995 sdev_store_evt_##name(struct device *dev, struct device_attribute *attr,\
1024 sdev_store_queue_depth(struct device *dev, struct device_attribute *attr,
1053 sdev_show_wwid(struct device *dev, struct device_attribute *attr,
1076 sdev_show_blacklist(struct device *dev, struct device_attribute *attr,
1106 sdev_show_dh_state(struct device *dev, struct device_attribute *attr,
1118 sdev_store_dh_state(struct device *dev, struct device_attribute *attr,
1130 * Attach to a device handler
1135 * Activate a device handler
1143 * Detach from a device handler
1158 sdev_show_access_state(struct device *dev,
1178 sdev_show_preferred_path(struct device *dev,
1196 sdev_show_queue_ramp_up_period(struct device *dev,
1207 sdev_store_queue_ramp_up_period(struct device *dev,
1225 static ssize_t sdev_show_cdl_enable(struct device *dev,
1233 static ssize_t sdev_store_cdl_enable(struct device *dev,
1255 struct device *dev = kobj_to_dev(kobj);
1273 struct device *dev = kobj_to_dev(kobj);
1301 /* Default template for device attributes. May NOT be modified */
1388 * scsi_sysfs_add_sdev - add scsi device to sysfs
1420 "failed to add device: %d\n", error);
1428 "failed to add class device: %d\n", error);
1452 struct device *dev = &sdev->sdev_gendev;
1466 * wait until it has finished before changing the device state.
1496 * device.
1512 * removed sysfs visibility from the device, so make the target
1513 * invisible if this was the last device underneath it.
1521 * scsi_remove_device - unregister a device from the scsi bus
1570 * requests the addition of another device then the target won't be
1573 void scsi_remove_target(struct device *dev)
1674 * device can now only be removed via __scsi_remove_device() so hold
1681 int scsi_is_sdev_device(const struct device *dev)