Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 12 of 12) sorted by relevance

/include/scsi/
Dscsi_tcq.h27 static inline int scsi_get_tag_type(struct scsi_device *sdev) in scsi_get_tag_type() argument
29 if (!sdev->tagged_supported) in scsi_get_tag_type()
31 if (sdev->ordered_tags) in scsi_get_tag_type()
33 if (sdev->simple_tags) in scsi_get_tag_type()
38 static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) in scsi_set_tag_type() argument
42 sdev->ordered_tags = 1; in scsi_set_tag_type()
45 sdev->simple_tags = 1; in scsi_set_tag_type()
50 sdev->ordered_tags = 0; in scsi_set_tag_type()
51 sdev->simple_tags = 0; in scsi_set_tag_type()
65 static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth) in scsi_activate_tcq() argument
[all …]
Dscsi_device.h206 struct scsi_device *sdev; member
218 #define sdev_printk(prefix, sdev, fmt, a...) \ argument
219 dev_printk(prefix, &(sdev)->sdev_gendev, fmt, ##a)
275 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument
277 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target()
322 #define shost_for_each_device(sdev, shost) \ argument
323 for ((sdev) = __scsi_iterate_devices((shost), NULL); \
324 (sdev); \
325 (sdev) = __scsi_iterate_devices((shost), (sdev)))
340 #define __shost_for_each_device(sdev, shost) \ argument
[all …]
Dscsi_driver.h32 int scsi_setup_blk_pc_cmnd(struct scsi_device *sdev, struct request *req);
33 int scsi_setup_fs_cmnd(struct scsi_device *sdev, struct request *req);
34 int scsi_prep_state_check(struct scsi_device *sdev, struct request *req);
Dscsi_transport.h115 scsi_transport_device_data(struct scsi_device *sdev) in scsi_transport_device_data() argument
117 struct Scsi_Host *shost = sdev->host; in scsi_transport_device_data()
118 return (u8 *)sdev->sdev_data in scsi_transport_device_data()
Dscsi_ioctl.h44 extern int scsi_nonblockable_ioctl(struct scsi_device *sdev, int cmd,
Dlibsas.h433 sdev_to_domain_dev(struct scsi_device *sdev) { in sdev_to_domain_dev() argument
434 return starget_to_domain_dev(sdev->sdev_target); in sdev_to_domain_dev()
716 extern int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg);
Dlibiscsi.h334 extern int iscsi_change_queue_depth(struct scsi_device *sdev, int depth,
/include/linux/
Dswitch.h27 ssize_t (*print_name)(struct switch_dev *sdev, char *buf);
28 ssize_t (*print_state)(struct switch_dev *sdev, char *buf);
43 extern int switch_dev_register(struct switch_dev *sdev);
44 extern void switch_dev_unregister(struct switch_dev *sdev);
46 static inline int switch_get_state(struct switch_dev *sdev) in switch_get_state() argument
48 return sdev->state; in switch_get_state()
51 extern void switch_set_state(struct switch_dev *sdev, int state);
Dlibata.h616 struct scsi_device *sdev; /* attached SCSI device */ member
1051 extern int ata_std_bios_param(struct scsi_device *sdev,
1054 extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);
1055 extern int ata_scsi_slave_config(struct scsi_device *sdev);
1056 extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
1057 extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
1059 extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
/include/linux/ssb/
Dssb_driver_gige.h116 extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
118 extern int ssb_gige_map_irq(struct ssb_device *sdev,
136 static inline int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, in ssb_gige_pcibios_plat_dev_init() argument
141 static inline int ssb_gige_map_irq(struct ssb_device *sdev, in ssb_gige_map_irq() argument
Dssb.h255 struct ssb_device *sdev; member
282 return wrap->sdev; in dev_to_ssb_dev()
584 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
586 if (sdev->bus->bustype == SSB_BUSTYPE_PCI) in ssb_pcihost_set_power_state()
587 pci_set_power_state(sdev->bus->host_pci, state); in ssb_pcihost_set_power_state()
595 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
/include/linux/spi/
Dspi.h857 spi_get_device_id(const struct spi_device *sdev);