Home
last modified time | relevance | path

Searched refs:ata_link (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v6.6/drivers/ata/
Dlibata.h41 extern struct ata_link *ata_dev_phys_link(struct ata_device *dev);
57 extern int ata_wait_ready(struct ata_link *link, unsigned long deadline,
58 int (*check_ready)(struct ata_link *link));
67 extern int sata_down_spd_limit(struct ata_link *link, u32 spd_limit);
76 extern bool ata_phys_link_online(struct ata_link *link);
77 extern bool ata_phys_link_offline(struct ata_link *link);
79 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
80 extern int sata_link_init_spd(struct ata_link *link);
145 extern void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
147 extern void ata_eh_done(struct ata_link *link, struct ata_device *dev,
[all …]
Dlibata-pmp.c38 static unsigned int sata_pmp_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_read()
75 static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val) in sata_pmp_write()
111 struct ata_link *link = qc->dev->link; in sata_pmp_qc_defer_cmd_switch()
141 int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_scr_read()
172 int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val) in sata_pmp_scr_write()
203 int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, in sata_pmp_set_lpm()
338 struct ata_link *pmp_link = ap->pmp_link; in sata_pmp_init_links()
361 struct ata_link *link = &pmp_link[i]; in sata_pmp_init_links()
383 struct ata_link *link; in sata_pmp_quirks()
487 struct ata_link *link = dev->link; in sata_pmp_attach()
[all …]
Dsata_uli.c44 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
45 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
93 static u32 uli_scr_cfg_read(struct ata_link *link, unsigned int sc_reg) in uli_scr_cfg_read()
103 static void uli_scr_cfg_write(struct ata_link *link, unsigned int scr, u32 val) in uli_scr_cfg_write()
111 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in uli_scr_read()
120 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in uli_scr_write()
Dsata_sis.c50 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
51 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
99 static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg) in get_scr_cfg_addr()
128 static u32 sis_scr_cfg_read(struct ata_link *link, in sis_scr_cfg_read()
141 static int sis_scr_cfg_write(struct ata_link *link, in sis_scr_cfg_write()
151 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sis_scr_read()
166 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sis_scr_write()
Dlibata-sata.c41 int sata_scr_valid(struct ata_link *link) in sata_scr_valid()
65 int sata_scr_read(struct ata_link *link, int reg, u32 *val) in sata_scr_read()
93 int sata_scr_write(struct ata_link *link, int reg, u32 val) in sata_scr_write()
120 int sata_scr_write_flush(struct ata_link *link, int reg, u32 val) in sata_scr_write_flush()
235 int sata_link_debounce(struct ata_link *link, const unsigned int *params, in sata_link_debounce()
298 int sata_link_resume(struct ata_link *link, const unsigned int *params, in sata_link_resume()
369 int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy, in sata_link_scr_lpm()
439 static int __sata_set_spd_needed(struct ata_link *link, u32 *scontrol) in __sata_set_spd_needed()
441 struct ata_link *host_link = &link->ap->link; in __sata_set_spd_needed()
479 static int sata_set_spd_needed(struct ata_link *link) in sata_set_spd_needed()
[all …]
Dahci.h304 struct ata_link *link;
308 struct ata_link *active_link;
415 int ahci_do_softreset(struct ata_link *link, unsigned int *class,
417 int (*check_ready)(struct ata_link *link));
419 int ahci_do_hardreset(struct ata_link *link, unsigned int *class,
426 int ahci_check_ready(struct ata_link *link);
Dsata_via.c73 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
74 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
75 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val);
76 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val);
79 static int vt6420_prereset(struct ata_link *link, unsigned long deadline);
185 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in svia_scr_read()
193 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in svia_scr_write()
201 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in vt8251_scr_read()
250 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val) in vt8251_scr_write()
330 static int vt6420_prereset(struct ata_link *link, unsigned long deadline) in vt6420_prereset()
Dlibata-transport.h8 int ata_tlink_add(struct ata_link *link);
9 void ata_tlink_delete(struct ata_link *link);
Dlibata-eh.c156 static int ata_eh_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
436 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action()
499 struct ata_link *link; in ata_eh_unload()
673 struct ata_link *link; in ata_scsi_port_error_handler()
993 static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link) in ata_do_link_abort()
1028 int ata_link_abort(struct ata_link *link) in ata_link_abort()
1236 struct ata_link *link = dev->link; in ata_eh_detach_dev()
1281 void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, in ata_eh_about_to_do()
1316 void ata_eh_done(struct ata_link *link, struct ata_device *dev, in ata_eh_done()
1512 static void ata_eh_analyze_serror(struct ata_link *link) in ata_eh_analyze_serror()
[all …]
Dlibahci.c46 static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
56 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
57 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
71 static int ahci_softreset(struct ata_link *link, unsigned int *class,
73 static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
75 static int ahci_hardreset(struct ata_link *link, unsigned int *class,
77 static void ahci_postreset(struct ata_link *link, unsigned int *class);
86 static void ahci_init_sw_activity(struct ata_link *link);
656 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in ahci_scr_read()
668 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in ahci_scr_write()
[all …]
Dsata_sil24.c326 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val);
327 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val);
336 static int sil24_softreset(struct ata_link *link, unsigned int *class,
338 static int sil24_hardreset(struct ata_link *link, unsigned int *class,
340 static int sil24_pmp_hardreset(struct ata_link *link, unsigned int *class,
500 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in sil24_scr_read()
511 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in sil24_scr_write()
649 static int sil24_softreset(struct ata_link *link, unsigned int *class, in sil24_softreset()
690 static int sil24_hardreset(struct ata_link *link, unsigned int *class, in sil24_hardreset()
790 struct ata_link *link = qc->dev->link; in sil24_qc_defer()
[all …]
Dsata_qstor.c98 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
99 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
108 static int qs_prereset(struct ata_link *link, unsigned long deadline);
206 static int qs_prereset(struct ata_link *link, unsigned long deadline) in qs_prereset()
214 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in qs_scr_read()
228 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in qs_scr_write()
Dsata_sil.c103 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
104 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
105 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed);
345 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed) in sil_set_mode()
397 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sil_scr_read()
408 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sil_scr_write()
Dlibata-core.c187 struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, in ata_link_next()
247 struct ata_device *ata_dev_next(struct ata_device *dev, struct ata_link *link, in ata_dev_next()
303 struct ata_link *ata_dev_phys_link(struct ata_device *dev) in ata_dev_phys_link()
363 static void ata_force_link_limits(struct ata_link *link) in ata_force_link_limits()
502 static inline void ata_force_link_limits(struct ata_link *link) { } in ata_force_link_limits()
1509 struct ata_link *link = dev->link; in ata_exec_internal_sg()
2185 struct ata_link *plink = ata_dev_phys_link(dev); in ata_do_link_spd_horkage()
3159 static void sata_print_link_status(struct ata_link *link) in sata_print_link_status()
3188 struct ata_link *link = adev->link; in ata_dev_pair()
3216 int sata_down_spd_limit(struct ata_link *link, u32 spd_limit) in sata_down_spd_limit()
[all …]
Dsata_svw.c106 static int k2_sata_scr_read(struct ata_link *link, in k2_sata_scr_read()
116 static int k2_sata_scr_write(struct ata_link *link, in k2_sata_scr_write()
125 static int k2_sata_softreset(struct ata_link *link, in k2_sata_softreset()
142 static int k2_sata_hardreset(struct ata_link *link, in k2_sata_hardreset()
Dahci_da850.c93 static int ahci_da850_softreset(struct ata_link *link, in ahci_da850_softreset()
115 static int ahci_da850_hardreset(struct ata_link *link, in ahci_da850_hardreset()
Dpata_pdc2027x.c56 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline);
62 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed);
238 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline) in pdc2027x_prereset()
384 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed) in pdc2027x_set_mode()
Dsata_promise.c137 static int pdc_sata_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
138 static int pdc_sata_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
153 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class,
155 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
461 static int pdc_sata_scr_read(struct ata_link *link, in pdc_sata_scr_read()
470 static int pdc_sata_scr_write(struct ata_link *link, in pdc_sata_scr_write()
764 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class, in pdc_pata_softreset()
802 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class, in pdc_sata_hardreset()
Dlibata-transport.c74 container_of((d), struct ata_link, tdev)
374 struct ata_link *link = transport_class_to_link(dev); \
422 void ata_tlink_delete(struct ata_link *link) in ata_tlink_delete()
446 int ata_tlink_add(struct ata_link *link) in ata_tlink_add()
703 struct ata_link *link = ata_dev->link; in ata_tdev_add()
Dlibata-sff.c187 static int ata_sff_check_ready(struct ata_link *link) in ata_sff_check_ready()
208 int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline) in ata_sff_wait_ready()
917 struct ata_link *link = qc->dev->link; in ata_sff_hsm_move()
1175 void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay) in ata_sff_queue_pio_task()
1213 struct ata_link *link = ap->sff_pio_task_link; in ata_sff_pio_task()
1284 struct ata_link *link = qc->dev->link; in ata_sff_qc_issue()
1652 int ata_sff_prereset(struct ata_link *link, unsigned long deadline) in ata_sff_prereset()
1815 int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask, in ata_sff_wait_after_reset()
1908 int ata_sff_softreset(struct ata_link *link, unsigned int *classes, in ata_sff_softreset()
1960 int sata_sff_hardreset(struct ata_link *link, unsigned int *class, in sata_sff_hardreset()
[all …]
/Linux-v6.6/include/linux/
Dlibata.h495 struct ata_link;
500 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
501 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
503 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
663 struct ata_link *link;
778 struct ata_link { struct
803 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
804 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
823 struct ata_link* sff_pio_task_link; /* link currently used */
840 struct ata_link link; /* host default link */
[all …]
/Linux-v6.6/include/trace/events/
Dlibata.h496 TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
518 TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
522 TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
527 TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
550 TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
554 TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
558 TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
563 TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
586 TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
590 TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
[all …]
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-ata37 Files under /sys/class/ata_link
40 Behind each port, there is a ata_link. If there is a SATA PM in the topology, 15
41 ata_link objects are created.
48 What: /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit
49 What: /sys/class/ata_link/linkX[.Y]/sata_spd_limit
50 What: /sys/class/ata_link/linkX[.Y]/sata_spd
/Linux-v6.6/include/scsi/
Dsas_ata.h38 int smp_ata_check_ready_type(struct ata_link *link);
109 static inline int smp_ata_check_ready_type(struct ata_link *link) in smp_ata_check_ready_type()
/Linux-v6.6/drivers/scsi/libsas/
Dsas_ata.c82 struct ata_link *link; in sas_ata_task_done()
301 int smp_ata_check_ready_type(struct ata_link *link) in smp_ata_check_ready_type()
326 static int smp_ata_check_ready(struct ata_link *link) in smp_ata_check_ready()
358 static int local_ata_check_ready(struct ata_link *link) in local_ata_check_ready()
400 int (*check_ready)(struct ata_link *link); in sas_ata_wait_after_reset()
402 struct ata_link *link = &ap->link; in sas_ata_wait_after_reset()
420 static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, in sas_ata_hard_reset()
547 static int sas_ata_prereset(struct ata_link *link, unsigned long deadline) in sas_ata_prereset()
945 struct ata_link *link = &ap->link; in sas_ata_device_link_abort()

1234