Home
last modified time | relevance | path

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

/include/scsi/
Dscsi_device.h264 #define sdev_dbg(sdev, fmt, a...) \ argument
265 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
275 #define sdev_printk(l, sdev, fmt, a...) \ argument
276 sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
345 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument
347 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target()
362 void scsi_attach_vpd(struct scsi_device *sdev);
394 #define shost_for_each_device(sdev, shost) \ argument
395 for ((sdev) = __scsi_iterate_devices((shost), NULL); \
396 (sdev); \
[all …]
Dscsi_transport.h79 scsi_transport_device_data(struct scsi_device *sdev) in scsi_transport_device_data() argument
81 struct Scsi_Host *shost = sdev->host; in scsi_transport_device_data()
82 return (u8 *)sdev->sdev_data in scsi_transport_device_data()
Dscsi_ioctl.h46 int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev,
48 int scsi_ioctl(struct scsi_device *sdev, struct gendisk *disk, fmode_t mode,
Dlibsas.h410 sdev_to_domain_dev(struct scsi_device *sdev) { in sdev_to_domain_dev() argument
411 return starget_to_domain_dev(sdev->sdev_target); in sdev_to_domain_dev()
701 extern int sas_ioctl(struct scsi_device *sdev, unsigned int cmd,
Dscsi_transport_sas.h16 static inline int scsi_is_sas_rphy(const struct device *sdev) in scsi_is_sas_rphy() argument
/include/linux/surface_aggregator/
Ddevice.h176 int (*probe)(struct ssam_device *sdev);
177 void (*remove)(struct ssam_device *sdev);
240 int ssam_device_add(struct ssam_device *sdev);
241 void ssam_device_remove(struct ssam_device *sdev);
255 static inline struct ssam_device *ssam_device_get(struct ssam_device *sdev) in ssam_device_get() argument
257 return sdev ? to_ssam_device(get_device(&sdev->dev)) : NULL; in ssam_device_get()
270 static inline void ssam_device_put(struct ssam_device *sdev) in ssam_device_put() argument
272 if (sdev) in ssam_device_put()
273 put_device(&sdev->dev); in ssam_device_put()
283 static inline void *ssam_device_get_drvdata(struct ssam_device *sdev) in ssam_device_get_drvdata() argument
[all …]
/include/linux/
Dspmi.h51 static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev) in spmi_device_get_drvdata() argument
53 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
56 static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data) in spmi_device_set_drvdata() argument
58 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
63 static inline void spmi_device_put(struct spmi_device *sdev) in spmi_device_put() argument
65 if (sdev) in spmi_device_put()
66 put_device(&sdev->dev); in spmi_device_put()
69 int spmi_device_add(struct spmi_device *sdev);
71 void spmi_device_remove(struct spmi_device *sdev);
141 int (*probe)(struct spmi_device *sdev);
[all …]
Dshdma-base.h118 bool shdma_reset(struct shdma_dev *sdev);
119 void shdma_chan_probe(struct shdma_dev *sdev,
122 int shdma_init(struct device *dev, struct shdma_dev *sdev,
124 void shdma_cleanup(struct shdma_dev *sdev);
Dserdev.h232 static inline int serdev_device_open(struct serdev_device *sdev) in serdev_device_open() argument
236 static inline void serdev_device_close(struct serdev_device *sdev) {} in serdev_device_close() argument
237 static inline unsigned int serdev_device_set_baudrate(struct serdev_device *sdev, unsigned int baud… in serdev_device_set_baudrate() argument
241 static inline void serdev_device_set_flow_control(struct serdev_device *sdev, bool enable) {} in serdev_device_set_flow_control() argument
248 static inline void serdev_device_wait_until_sent(struct serdev_device *sdev, long timeout) {} in serdev_device_wait_until_sent() argument
257 static inline int serdev_device_write(struct serdev_device *sdev, const unsigned char *buf, in serdev_device_write() argument
262 static inline void serdev_device_write_flush(struct serdev_device *sdev) {} in serdev_device_write_flush() argument
263 static inline int serdev_device_write_room(struct serdev_device *sdev) in serdev_device_write_room() argument
Dslimbus.h196 int slim_readb(struct slim_device *sdev, u32 addr);
197 int slim_writeb(struct slim_device *sdev, u32 addr, u8 value);
198 int slim_read(struct slim_device *sdev, u32 addr, size_t count, u8 *val);
199 int slim_write(struct slim_device *sdev, u32 addr, size_t count, u8 *val);
Dscmi_protocol.h602 int (*devm_event_notifier_register)(struct scmi_device *sdev,
606 int (*devm_event_notifier_unregister)(struct scmi_device *sdev,
635 (*devm_protocol_get)(struct scmi_device *sdev, u8 proto,
637 void (*devm_protocol_put)(struct scmi_device *sdev, u8 proto);
688 int (*probe)(struct scmi_device *sdev);
689 void (*remove)(struct scmi_device *sdev);
Darm_ffa.h122 int (*probe)(struct ffa_device *sdev);
123 void (*remove)(struct ffa_device *sdev);
Dlibata.h694 struct scsi_device *sdev; /* attached SCSI device */ member
1167 extern int ata_std_bios_param(struct scsi_device *sdev,
1170 extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);
1171 extern int ata_scsi_slave_config(struct scsi_device *sdev);
1172 extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
1173 extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
1175 extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
/include/linux/ssb/
Dssb_driver_gige.h122 extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
124 extern int ssb_gige_map_irq(struct ssb_device *sdev,
142 static inline int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, in ssb_gige_pcibios_plat_dev_init() argument
147 static inline int ssb_gige_map_irq(struct ssb_device *sdev, in ssb_gige_map_irq() argument
Dssb.h265 struct ssb_device *sdev; member
292 return wrap->sdev; in dev_to_ssb_dev()
641 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
643 if (sdev->bus->bustype == SSB_BUSTYPE_PCI) in ssb_pcihost_set_power_state()
644 pci_set_power_state(sdev->bus->host_pci, state); in ssb_pcihost_set_power_state()
652 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
/include/trace/hooks/
Dufshcd.h67 TP_PROTO(struct scsi_device *sdev),
68 TP_ARGS(sdev));
/include/linux/spi/
Dspi.h1515 spi_get_device_id(const struct spi_device *sdev);