Lines Matching refs:ata_link

548 struct ata_link;
553 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
554 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
556 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
695 struct ata_link *link;
804 struct ata_link { struct
829 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
830 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
849 struct ata_link* sff_pio_task_link; /* link currently used */
868 struct ata_link link; /* host default link */
869 struct ata_link *slave_link; /* see ata_slave_link_init() */
872 struct ata_link *pmp_link; /* array of PMP links */
873 struct ata_link *excl_link; /* for PMP qc exclusion */
934 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
958 int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val);
959 int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
962 int (*set_lpm)(struct ata_link *link, enum ata_lpm_policy policy,
1104 extern int sata_set_spd(struct ata_link *link);
1105 extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
1106 extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
1107 int (*check_ready)(struct ata_link *link));
1108 extern int sata_link_debounce(struct ata_link *link,
1110 extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
1112 extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
1114 extern int sata_link_hardreset(struct ata_link *link,
1116 bool *online, int (*check_ready)(struct ata_link *));
1117 extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
1119 extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
1152 extern int sata_scr_valid(struct ata_link *link);
1153 extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
1154 extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
1155 extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
1156 extern bool ata_link_online(struct ata_link *link);
1157 extern bool ata_link_offline(struct ata_link *link);
1216 extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1219 extern bool sata_lpm_ignore_phy_events(struct ata_link *link);
1315 extern int ata_link_abort(struct ata_link *link);
1325 extern void ata_eh_analyze_ncq_error(struct ata_link *link);
1333 extern int ata_link_nr_enabled(struct ata_link *link);
1401 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1416 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1422 static inline int sata_srst_pmp(struct ata_link *link) in sata_srst_pmp()
1436 void ata_link_printk(const struct ata_link *link, const char *level,
1577 static inline int ata_link_max_devices(const struct ata_link *link) in ata_link_max_devices()
1584 static inline int ata_link_active(struct ata_link *link) in ata_link_active()
1616 extern struct ata_link *ata_link_next(struct ata_link *link,
1621 struct ata_link *link,
1865 extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
1881 extern void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay);
1890 extern int ata_sff_prereset(struct ata_link *link, unsigned long deadline);
1893 extern int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
1895 extern int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
1897 extern int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
1899 extern void ata_sff_postreset(struct ata_link *link, unsigned int *classes);