Lines Matching refs:ata_device
623 struct ata_device *dev;
676 struct ata_device { struct
737 #define ATA_DEVICE_CLEAR_BEGIN offsetof(struct ata_device, n_sectors) argument
738 #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering)
741 struct ata_device *dev; /* offending device */
800 struct ata_device device[ATA_MAX_DEVICES];
904 unsigned long (*mode_filter)(struct ata_device *dev, unsigned long xfer_mask);
905 void (*set_piomode)(struct ata_port *ap, struct ata_device *dev);
906 void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev);
907 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
908 unsigned int (*read_id)(struct ata_device *dev, struct ata_taskfile *tf, u16 *id);
910 void (*dev_config)(struct ata_device *dev);
959 unsigned int (*sff_data_xfer)(struct ata_device *dev,
977 ssize_t (*sw_activity_show)(struct ata_device *dev, char *buf);
978 ssize_t (*sw_activity_store)(struct ata_device *dev,
1192 extern void ata_dev_disable(struct ata_device *adev);
1197 extern unsigned int ata_do_dev_read_id(struct ata_device *dev,
1201 extern void ata_scsi_simulate(struct ata_device *dev, struct scsi_cmnd *cmd);
1212 extern struct ata_device *ata_dev_pair(struct ata_device *adev);
1213 extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1225 extern unsigned int ata_pio_need_iordy(const struct ata_device *);
1227 extern int ata_timing_compute(struct ata_device *, unsigned short,
1272 unsigned long ata_acpi_gtm_xfermask(struct ata_device *dev,
1293 static inline unsigned int ata_acpi_gtm_xfermask(struct ata_device *dev, in ata_acpi_gtm_xfermask()
1436 void ata_dev_printk(const struct ata_device *dev, const char *level,
1532 static inline unsigned int ata_dev_enabled(const struct ata_device *dev) in ata_dev_enabled()
1537 static inline unsigned int ata_dev_disabled(const struct ata_device *dev) in ata_dev_disabled()
1542 static inline unsigned int ata_dev_absent(const struct ata_device *dev) in ata_dev_absent()
1593 extern struct ata_device *ata_dev_next(struct ata_device *dev,
1629 static inline int ata_ncq_enabled(struct ata_device *dev) in ata_ncq_enabled()
1635 static inline bool ata_fpdma_dsm_supported(struct ata_device *dev) in ata_fpdma_dsm_supported()
1675 static inline void ata_tf_init(struct ata_device *dev, struct ata_taskfile *tf) in ata_tf_init()
1709 static inline int ata_try_flush_cache(const struct ata_device *dev) in ata_try_flush_cache()
1760 static inline int ata_using_mwdma(struct ata_device *adev) in ata_using_mwdma()
1767 static inline int ata_using_udma(struct ata_device *adev) in ata_using_udma()
1774 static inline int ata_dma_enabled(struct ata_device *adev) in ata_dma_enabled()
1823 extern unsigned int ata_sff_data_xfer(struct ata_device *dev,
1825 extern unsigned int ata_sff_data_xfer32(struct ata_device *dev,
1827 extern unsigned int ata_sff_data_xfer_noirq(struct ata_device *dev,
1846 extern unsigned int ata_sff_dev_classify(struct ata_device *dev, int present,