• Home
  • Raw
  • Download

Lines Matching refs:link

501 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
502 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
504 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
664 struct ata_link *link; member
841 struct ata_link link; /* host default link */ member
908 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
933 int (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val);
934 int (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
937 int (*set_lpm)(struct ata_link *link, enum ata_lpm_policy policy,
1065 extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
1066 extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
1067 int (*check_ready)(struct ata_link *link));
1068 extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
1070 extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
1101 extern bool ata_link_online(struct ata_link *link);
1102 extern bool ata_link_offline(struct ata_link *link);
1162 extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1183 extern int sata_scr_valid(struct ata_link *link);
1184 extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
1185 extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
1186 extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
1187 extern int sata_set_spd(struct ata_link *link);
1188 extern int sata_link_hardreset(struct ata_link *link,
1191 extern int sata_link_resume(struct ata_link *link, const unsigned int *params,
1193 extern int ata_eh_read_sense_success_ncq_log(struct ata_link *link);
1194 extern void ata_eh_analyze_ncq_error(struct ata_link *link);
1201 static inline int sata_scr_valid(struct ata_link *link) { return 0; } in sata_scr_valid() argument
1202 static inline int sata_scr_read(struct ata_link *link, int reg, u32 *val) in sata_scr_read() argument
1206 static inline int sata_scr_write(struct ata_link *link, int reg, u32 val) in sata_scr_write() argument
1210 static inline int sata_scr_write_flush(struct ata_link *link, int reg, u32 val) in sata_scr_write_flush() argument
1214 static inline int sata_set_spd(struct ata_link *link) { return -EOPNOTSUPP; } in sata_set_spd() argument
1215 static inline int sata_link_hardreset(struct ata_link *link, in sata_link_hardreset() argument
1225 static inline int sata_link_resume(struct ata_link *link, in sata_link_resume() argument
1231 static inline int ata_eh_read_sense_success_ncq_log(struct ata_link *link) in ata_eh_read_sense_success_ncq_log() argument
1235 static inline void ata_eh_analyze_ncq_error(struct ata_link *link) { } in ata_eh_analyze_ncq_error() argument
1237 extern int sata_link_debounce(struct ata_link *link,
1239 extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
1254 extern bool sata_lpm_ignore_phy_events(struct ata_link *link);
1345 extern int ata_link_abort(struct ata_link *link);
1361 extern int ata_link_nr_enabled(struct ata_link *link);
1454 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link() argument
1456 return link == &link->ap->link || link == link->ap->slave_link; in ata_is_host_link()
1469 static inline bool ata_is_host_link(const struct ata_link *link) in ata_is_host_link() argument
1475 static inline int sata_srst_pmp(struct ata_link *link) in sata_srst_pmp() argument
1477 if (sata_pmp_supported(link->ap) && ata_is_host_link(link)) in sata_srst_pmp()
1479 return link->pmp; in sata_srst_pmp()
1496 #define ata_link_printk(level, link, fmt, ...) \ argument
1498 if (sata_pmp_attached((link)->ap) || \
1499 (link)->ap->slave_link) \
1501 (link)->ap->print_id, \
1502 (link)->pmp, \
1506 (link)->ap->print_id, \
1510 #define ata_link_err(link, fmt, ...) \ argument
1511 ata_link_printk(err, link, fmt, ##__VA_ARGS__)
1512 #define ata_link_warn(link, fmt, ...) \ argument
1513 ata_link_printk(warn, link, fmt, ##__VA_ARGS__)
1514 #define ata_link_notice(link, fmt, ...) \ argument
1515 ata_link_printk(notice, link, fmt, ##__VA_ARGS__)
1516 #define ata_link_info(link, fmt, ...) \ argument
1517 ata_link_printk(info, link, fmt, ##__VA_ARGS__)
1518 #define ata_link_dbg(link, fmt, ...) \ argument
1519 ata_link_printk(debug, link, fmt, ##__VA_ARGS__)
1523 (dev)->link->ap->print_id, \
1524 (dev)->link->pmp + (dev)->devno, \
1640 static inline int ata_link_max_devices(const struct ata_link *link) in ata_link_max_devices() argument
1642 if (ata_is_host_link(link) && link->ap->flags & ATA_FLAG_SLAVE_POSS) in ata_link_max_devices()
1647 static inline int ata_link_active(struct ata_link *link) in ata_link_active() argument
1649 return ata_tag_valid(link->active_tag) || link->sactive; in ata_link_active()
1679 extern struct ata_link *ata_link_next(struct ata_link *link,
1684 struct ata_link *link,
1701 #define ata_for_each_link(link, ap, mode) \ argument
1702 for ((link) = ata_link_next(NULL, (ap), ATA_LITER_##mode); (link); \
1703 (link) = ata_link_next((link), (ap), ATA_LITER_##mode))
1705 #define ata_for_each_dev(dev, link, mode) \ argument
1706 for ((dev) = ata_dev_next(NULL, (link), ATA_DITER_##mode); (dev); \
1707 (dev) = ata_dev_next((dev), (link), ATA_DITER_##mode))
1806 tf->ctl = dev->link->ap->ctl; in ata_tf_init()
1952 extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
1968 extern void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay);
1977 extern int ata_sff_prereset(struct ata_link *link, unsigned long deadline);
1980 extern int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
1982 extern int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
1984 extern int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
1986 extern void ata_sff_postreset(struct ata_link *link, unsigned int *classes);