/linux/drivers/ata/ |
A D | libata.h | 39 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); 82 extern int sata_link_init_spd(struct ata_link *link); 166 extern void ata_eh_done(struct ata_link *link, struct ata_device *dev, 171 extern int ata_eh_reset(struct ata_link *link, int classify, 178 struct ata_link **r_failed_disk); [all …]
|
A D | libata-pmp.c | 111 struct ata_link *link = qc->dev->link; in sata_pmp_qc_defer_cmd_switch() 383 struct ata_link *link; in sata_pmp_quirks() 487 struct ata_link *link = dev->link; in sata_pmp_attach() 490 struct ata_link *tlink; in sata_pmp_attach() 561 struct ata_link *link = dev->link; in sata_pmp_detach() 563 struct ata_link *tlink; in sata_pmp_detach() 650 struct ata_link *link = dev->link; in sata_pmp_revalidate() 755 struct ata_link *link = &ap->link; in sata_pmp_eh_recover_pmp() 774 struct ata_link *tlink; in sata_pmp_eh_recover_pmp() 847 struct ata_link *link; in sata_pmp_eh_handle_disabled_links() [all …]
|
A D | sata_sis.c | 50 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()
|
A D | sata_uli.c | 44 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()
|
A D | libata-sata.c | 39 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() 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() 487 int sata_set_spd(struct ata_link *link) in sata_set_spd() 531 bool *online, int (*check_ready)(struct ata_link *)) in sata_link_hardreset() argument 725 struct ata_link *link; in ata_slave_link_init() 752 bool sata_lpm_ignore_phy_events(struct ata_link *link) in sata_lpm_ignore_phy_events() 787 struct ata_link *link; in ata_scsi_lpm_store() 1350 struct ata_link *link; in sata_async_notification() [all …]
|
A D | ahci.h | 300 struct ata_link *link; 304 struct ata_link *active_link; 409 int ahci_do_softreset(struct ata_link *link, unsigned int *class, 411 int (*check_ready)(struct ata_link *link)); 413 int ahci_do_hardreset(struct ata_link *link, unsigned int *class, 420 int ahci_check_ready(struct ata_link *link);
|
A D | sata_via.c | 73 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()
|
A D | libahci.c | 84 static void ahci_init_sw_activity(struct ata_link *link); 867 struct ata_link *link; in ahci_start_port() 982 static void ahci_sw_activity(struct ata_link *link) in ahci_sw_activity() 999 struct ata_link *link = emp->link; in ahci_sw_activity_blink() 1040 static void ahci_init_sw_activity(struct ata_link *link) in ahci_init_sw_activity() 1136 struct ata_link *link; in ahci_led_show() 1179 struct ata_link *link = dev->link; in ahci_activity_store() 1210 struct ata_link *link = dev->link; in ahci_activity_show() 1407 int (*check_ready)(struct ata_link *link)) in ahci_do_softreset() 1487 int ahci_check_ready(struct ata_link *link) in ahci_check_ready() [all …]
|
A D | libata-eh.c | 495 struct ata_link *link; in ata_eh_unload() 663 struct ata_link *link; in ata_scsi_port_error_handler() 1244 struct ata_link *link = dev->link; in ata_eh_detach_dev() 2054 struct ata_link *link; in ata_eh_autopsy() 2419 struct ata_link *link; in ata_eh_report() 2461 struct ata_link *failed_link; in ata_eh_reset() 2842 struct ata_link *link; in ata_eh_pull_park_action() 3162 struct ata_link *link = dev->link; in ata_eh_maybe_retry_flush() 3547 struct ata_link **r_failed_link) in ata_eh_recover() 3549 struct ata_link *link; in ata_eh_recover() [all …]
|
A D | libata-transport.h | 8 int ata_tlink_add(struct ata_link *link); 9 void ata_tlink_delete(struct ata_link *link);
|
A D | sata_sil24.c | 326 static int sil24_scr_read(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() 693 static int sil24_hardreset(struct ata_link *link, unsigned int *class, in sil24_hardreset() 793 struct ata_link *link = qc->dev->link; in sil24_qc_defer() 936 static int sil24_pmp_hardreset(struct ata_link *link, unsigned int *class, in sil24_pmp_hardreset() [all …]
|
A D | libata-core.c | 186 struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, in ata_link_next() 1499 struct ata_link *link = dev->link; in ata_exec_internal_sg() 3079 struct ata_link *link = adev->link; in ata_dev_pair() 4193 struct ata_link *link; in cable_is_40wire() 4243 struct ata_link *link = dev->link; in ata_dev_xfermask() 4485 struct ata_link *link = qc->dev->link; in ata_std_qc_defer() 4681 struct ata_link *link; in __ata_qc_complete() 4888 struct ata_link *link = qc->dev->link; in ata_qc_issue() 5055 struct ata_link *link; in ata_port_request_pm() 5168 struct ata_link *link; in ata_port_runtime_idle() [all …]
|
A D | sata_qstor.c | 98 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()
|
A D | sata_sil.c | 103 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()
|
A D | sata_svw.c | 105 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()
|
A D | libata-transport.c | 74 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()
|
A D | ahci_da850.c | 93 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()
|
A D | sata_promise.c | 137 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()
|
A D | pata_pdc2027x.c | 63 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()
|
A D | libata-sff.c | 236 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() 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() 2075 void ata_sff_postreset(struct ata_link *link, unsigned int *classes) in ata_sff_postreset() [all …]
|
A D | sata_mv.c | 588 static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val); 598 static int mv_hardreset(struct ata_link *link, unsigned int *class, 641 static int mv_pmp_hardreset(struct ata_link *link, unsigned int *class, 643 static int mv_softreset(struct ata_link *link, unsigned int *class, 1427 struct ata_link *link = qc->dev->link; in mv_qc_defer() 2291 struct ata_link *link = qc->dev->link; in mv_qc_issue_fis() 2455 struct ata_link *link = &ap->pmp_link[pmp]; in mv_pmp_error_handler() 2482 struct ata_link *link = &ap->pmp_link[pmp]; in mv_pmp_eh_prep() 3609 static int mv_pmp_hardreset(struct ata_link *link, unsigned int *class, in mv_pmp_hardreset() 3616 static int mv_softreset(struct ata_link *link, unsigned int *class, in mv_softreset() [all …]
|
A D | pata_pcmcia.c | 43 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()
|
/linux/include/linux/ |
A D | libata.h | 531 struct ata_link; 693 struct ata_link *link; 805 struct ata_link { struct 869 struct ata_link link; /* host default link */ 1094 int (*check_ready)(struct ata_link *link)); 1205 extern int sata_scr_valid(struct ata_link *link); 1209 extern int sata_set_spd(struct ata_link *link); 1240 int (*check_ready)(struct ata_link *)) in sata_link_hardreset() argument 1366 extern int ata_link_abort(struct ata_link *link); 1677 extern struct ata_link *ata_link_next(struct ata_link *link, [all …]
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-ata | 37 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/drivers/scsi/libsas/ |
A D | sas_ata.c | 84 struct ata_link *link; in sas_ata_task_done() 298 static int smp_ata_check_ready(struct ata_link *link) in smp_ata_check_ready() 330 static int local_ata_check_ready(struct ata_link *link) in local_ata_check_ready() 369 static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, in sas_ata_hard_reset() 375 int (*check_ready)(struct ata_link *link); in sas_ata_hard_reset() 507 static int sas_ata_prereset(struct ata_link *link, unsigned long deadline) in sas_ata_prereset()
|