Lines Matching refs:ata_link
534 struct ata_link;
539 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
540 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
542 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
690 struct ata_link *link;
799 struct ata_link { struct
824 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
825 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
844 struct ata_link* sff_pio_task_link; /* link currently used */
863 struct ata_link link; /* host default link */
864 struct ata_link *slave_link; /* see ata_slave_link_init() */
867 struct ata_link *pmp_link; /* array of PMP links */
868 struct ata_link *excl_link; /* for PMP qc exclusion */
929 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
953 int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val);
954 int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
957 int (*set_lpm)(struct ata_link *link, enum ata_lpm_policy policy,
1086 extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
1087 extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
1088 int (*check_ready)(struct ata_link *link));
1089 extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
1091 extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
1122 extern bool ata_link_online(struct ata_link *link);
1123 extern bool ata_link_offline(struct ata_link *link);
1178 extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1199 extern int sata_scr_valid(struct ata_link *link);
1200 extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
1201 extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
1202 extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
1203 extern int sata_set_spd(struct ata_link *link);
1204 extern int sata_link_hardreset(struct ata_link *link,
1206 bool *online, int (*check_ready)(struct ata_link *));
1207 extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
1209 extern void ata_eh_analyze_ncq_error(struct ata_link *link);
1216 static inline int sata_scr_valid(struct ata_link *link) { return 0; } in sata_scr_valid()
1217 static inline int sata_scr_read(struct ata_link *link, int reg, u32 *val) in sata_scr_read()
1221 static inline int sata_scr_write(struct ata_link *link, int reg, u32 val) in sata_scr_write()
1225 static inline int sata_scr_write_flush(struct ata_link *link, int reg, u32 val) in sata_scr_write_flush()
1229 static inline int sata_set_spd(struct ata_link *link) { return -EOPNOTSUPP; } in sata_set_spd()
1230 static inline int sata_link_hardreset(struct ata_link *link, in sata_link_hardreset()
1234 int (*check_ready)(struct ata_link *)) in sata_link_hardreset() argument
1240 static inline int sata_link_resume(struct ata_link *link, in sata_link_resume()
1246 static inline void ata_eh_analyze_ncq_error(struct ata_link *link) { } in ata_eh_analyze_ncq_error()
1248 extern int sata_link_debounce(struct ata_link *link,
1250 extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
1269 extern bool sata_lpm_ignore_phy_events(struct ata_link *link);
1360 extern int ata_link_abort(struct ata_link *link);
1376 extern int ata_link_nr_enabled(struct ata_link *link);
1456 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1471 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1477 static inline int sata_srst_pmp(struct ata_link *link) in sata_srst_pmp()
1642 static inline int ata_link_max_devices(const struct ata_link *link) in ata_link_max_devices()
1649 static inline int ata_link_active(struct ata_link *link) in ata_link_active()
1681 extern struct ata_link *ata_link_next(struct ata_link *link,
1686 struct ata_link *link,
1942 extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
1958 extern void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay);
1967 extern int ata_sff_prereset(struct ata_link *link, unsigned long deadline);
1970 extern int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
1972 extern int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
1974 extern int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
1976 extern void ata_sff_postreset(struct ata_link *link, unsigned int *classes);