Lines Matching refs:ata_link

493 struct ata_link;
498 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
499 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
501 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
612 struct ata_link *link;
706 struct ata_link { struct
729 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
730 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
748 struct ata_link* sff_pio_task_link; /* link currently used */
767 struct ata_link link; /* host default link */
768 struct ata_link *slave_link; /* see ata_slave_link_init() */
771 struct ata_link *pmp_link; /* array of PMP links */
772 struct ata_link *excl_link; /* for PMP qc exclusion */
833 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
855 int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val);
856 int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
859 int (*set_lpm)(struct ata_link *link, enum ata_lpm_policy policy,
964 extern int sata_set_spd(struct ata_link *link);
965 extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
966 extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
967 int (*check_ready)(struct ata_link *link));
968 extern int sata_link_debounce(struct ata_link *link,
970 extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
972 extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
974 extern int sata_link_hardreset(struct ata_link *link,
976 bool *online, int (*check_ready)(struct ata_link *));
977 extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
979 extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
1009 extern int sata_scr_valid(struct ata_link *link);
1010 extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
1011 extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
1012 extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
1013 extern bool ata_link_online(struct ata_link *link);
1014 extern bool ata_link_offline(struct ata_link *link);
1063 extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1156 extern int ata_link_abort(struct ata_link *link);
1166 extern void ata_eh_analyze_ncq_error(struct ata_link *link);
1172 extern int ata_link_nr_enabled(struct ata_link *link);
1234 static inline int ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1249 static inline int ata_is_host_link(const struct ata_link *link) in ata_is_host_link()
1255 static inline int sata_srst_pmp(struct ata_link *link) in sata_srst_pmp()
1269 int ata_link_printk(const struct ata_link *link, const char *level,
1385 static inline int ata_link_max_devices(const struct ata_link *link) in ata_link_max_devices()
1392 static inline int ata_link_active(struct ata_link *link) in ata_link_active()
1424 extern struct ata_link *ata_link_next(struct ata_link *link,
1429 struct ata_link *link,
1646 extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
1664 extern void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay);
1673 extern int ata_sff_prereset(struct ata_link *link, unsigned long deadline);
1676 extern int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
1678 extern int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
1680 extern int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
1682 extern void ata_sff_postreset(struct ata_link *link, unsigned int *classes);