Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/ata/
Dlibata.h39 extern struct ata_link *ata_dev_phys_link(struct ata_device *dev);
61 extern int ata_wait_ready(struct ata_link *link, unsigned long deadline,
62 int (*check_ready)(struct ata_link *link));
69 extern int sata_down_spd_limit(struct ata_link *link, u32 spd_limit);
78 extern bool ata_phys_link_online(struct ata_link *link);
79 extern bool ata_phys_link_offline(struct ata_link *link);
81 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
82 extern int sata_link_init_spd(struct ata_link *link);
164 extern void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
166 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.c39 int sata_scr_valid(struct ata_link *link) in sata_scr_valid()
63 int sata_scr_read(struct ata_link *link, int reg, u32 *val) in sata_scr_read()
91 int sata_scr_write(struct ata_link *link, int reg, u32 val) in sata_scr_write()
118 int sata_scr_write_flush(struct ata_link *link, int reg, u32 val) in sata_scr_write_flush()
233 int sata_link_debounce(struct ata_link *link, const unsigned long *params, in sata_link_debounce()
296 int sata_link_resume(struct ata_link *link, const unsigned long *params, in sata_link_resume()
367 int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy, in sata_link_scr_lpm()
424 static int __sata_set_spd_needed(struct ata_link *link, u32 *scontrol) in __sata_set_spd_needed()
426 struct ata_link *host_link = &link->ap->link; in __sata_set_spd_needed()
464 static int sata_set_spd_needed(struct ata_link *link) in sata_set_spd_needed()
[all …]
Dahci.h300 struct ata_link *link;
304 struct ata_link *active_link;
406 int ahci_do_softreset(struct ata_link *link, unsigned int *class,
408 int (*check_ready)(struct ata_link *link));
410 int ahci_do_hardreset(struct ata_link *link, unsigned int *class,
417 int ahci_check_ready(struct ata_link *link);
Dlibata-transport.h8 int ata_tlink_add(struct ata_link *link);
9 void ata_tlink_delete(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()
Dlibahci.c45 static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
55 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
56 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
69 static int ahci_softreset(struct ata_link *link, unsigned int *class,
71 static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
73 static int ahci_hardreset(struct ata_link *link, unsigned int *class,
75 static void ahci_postreset(struct ata_link *link, unsigned int *class);
84 static void ahci_init_sw_activity(struct ata_link *link);
598 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in ahci_scr_read()
610 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in ahci_scr_write()
[all …]
Dlibata-eh.c432 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action()
495 struct ata_link *link; in ata_eh_unload()
663 struct ata_link *link; in ata_scsi_port_error_handler()
985 static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link) in ata_do_link_abort()
1022 int ata_link_abort(struct ata_link *link) in ata_link_abort()
1244 struct ata_link *link = dev->link; in ata_eh_detach_dev()
1282 void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, in ata_eh_about_to_do()
1315 void ata_eh_done(struct ata_link *link, struct ata_device *dev, in ata_eh_done()
1506 static void ata_eh_analyze_serror(struct ata_link *link) in ata_eh_analyze_serror()
1802 struct ata_link *link = ata_dev_phys_link(dev); in ata_eh_speed_down()
[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,
497 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in sil24_scr_read()
508 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in sil24_scr_write()
646 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()
Dlibata-core.c180 struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, in ata_link_next()
240 struct ata_device *ata_dev_next(struct ata_device *dev, struct ata_link *link, in ata_dev_next()
296 struct ata_link *ata_dev_phys_link(struct ata_device *dev) in ata_dev_phys_link()
356 static void ata_force_link_limits(struct ata_link *link) in ata_force_link_limits()
489 static inline void ata_force_link_limits(struct ata_link *link) { } in ata_force_link_limits()
1496 struct ata_link *link = dev->link; in ata_exec_internal_sg()
2078 struct ata_link *plink = ata_dev_phys_link(dev); in ata_do_link_spd_horkage()
2962 static void sata_print_link_status(struct ata_link *link) in sata_print_link_status()
2990 struct ata_link *link = adev->link; in ata_dev_pair()
3018 int sata_down_spd_limit(struct ata_link *link, u32 spd_limit) in sata_down_spd_limit()
[all …]
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);
346 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed) in sil_set_mode()
398 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sil_scr_read()
409 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sil_scr_write()
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()
Dsata_svw.c105 static int k2_sata_scr_read(struct ata_link *link, in k2_sata_scr_read()
115 static int k2_sata_scr_write(struct ata_link *link, in k2_sata_scr_write()
124 static int k2_sata_softreset(struct ata_link *link, in k2_sata_softreset()
141 static int k2_sata_hardreset(struct ata_link *link, in k2_sata_hardreset()
Dlibata-transport.c74 container_of((d), struct ata_link, tdev)
335 struct ata_link *link = transport_class_to_link(dev); \
383 void ata_tlink_delete(struct ata_link *link) in ata_tlink_delete()
407 int ata_tlink_add(struct ata_link *link) in ata_tlink_add()
661 struct ata_link *link = ata_dev->link; in ata_tdev_add()
Dpata_pdc2027x.c63 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline);
69 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed);
245 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline) in pdc2027x_prereset()
396 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()
766 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class, in pdc_pata_softreset()
804 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class, in pdc_sata_hardreset()
Dlibata-sff.c236 static int ata_sff_check_ready(struct ata_link *link) in ata_sff_check_ready()
257 int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline) in ata_sff_wait_ready()
990 struct ata_link *link = qc->dev->link; in ata_sff_hsm_move()
1250 void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay) in ata_sff_queue_pio_task()
1291 struct ata_link *link = ap->sff_pio_task_link; in ata_sff_pio_task()
1362 struct ata_link *link = qc->dev->link; in ata_sff_qc_issue()
1736 int ata_sff_prereset(struct ata_link *link, unsigned long deadline) in ata_sff_prereset()
1894 int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask, in ata_sff_wait_after_reset()
1989 int ata_sff_softreset(struct ata_link *link, unsigned int *classes, in ata_sff_softreset()
2045 int sata_sff_hardreset(struct ata_link *link, unsigned int *class, in sata_sff_hardreset()
[all …]
Dpata_pcmcia.c43 static int pcmcia_set_mode(struct ata_link *link, struct ata_device **r_failed_dev) in pcmcia_set_mode()
72 static int pcmcia_set_mode_8bit(struct ata_link *link, in pcmcia_set_mode_8bit()
Dpata_optidma.c55 static int optidma_pre_reset(struct ata_link *link, unsigned long deadline) in optidma_pre_reset()
318 static int optidma_set_mode(struct ata_link *link, struct ata_device **r_failed) in optidma_set_mode()
/kernel/linux/linux-5.10/include/linux/
Dlibata.h526 struct ata_link;
531 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
532 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
534 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
675 struct ata_link *link;
784 struct ata_link { struct
809 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
810 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
829 struct ata_link* sff_pio_task_link; /* link currently used */
848 struct ata_link link; /* host default link */
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_ata.c90 struct ata_link *link; in sas_ata_task_done()
303 static int smp_ata_check_ready(struct ata_link *link) in smp_ata_check_ready()
335 static int local_ata_check_ready(struct ata_link *link) in local_ata_check_ready()
374 static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, in sas_ata_hard_reset()
380 int (*check_ready)(struct ata_link *link); in sas_ata_hard_reset()
512 static int sas_ata_prereset(struct ata_link *link, unsigned long deadline) in sas_ata_prereset()

1234