Home
last modified time | relevance | path

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

123

/drivers/ata/
Dlibata.h39 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));
65 extern int sata_down_spd_limit(struct ata_link *link, u32 spd_limit);
74 extern bool ata_phys_link_online(struct ata_link *link);
75 extern bool ata_phys_link_offline(struct ata_link *link);
77 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
78 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_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()
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()
Dahci.h297 struct ata_link *link;
301 struct ata_link *active_link;
402 int ahci_do_softreset(struct ata_link *link, unsigned int *class,
404 int (*check_ready)(struct ata_link *link));
406 int ahci_do_hardreset(struct ata_link *link, unsigned int *class,
413 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()
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);
593 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in ahci_scr_read()
605 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in ahci_scr_write()
[all …]
Dlibata-transport.h8 int ata_tlink_add(struct ata_link *link);
9 void ata_tlink_delete(struct ata_link *link);
Dlibata-eh.c425 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action()
488 struct ata_link *link; in ata_eh_unload()
656 struct ata_link *link; in ata_scsi_port_error_handler()
977 static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link) in ata_do_link_abort()
1014 int ata_link_abort(struct ata_link *link) in ata_link_abort()
1141 struct ata_link *link; in sata_async_notification()
1304 struct ata_link *link = dev->link; in ata_eh_detach_dev()
1342 void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, in ata_eh_about_to_do()
1375 void ata_eh_done(struct ata_link *link, struct ata_device *dev, in ata_eh_done()
1622 static void ata_eh_analyze_serror(struct ata_link *link) in ata_eh_analyze_serror()
[all …]
Dlibata-core.c181 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()
295 struct ata_link *ata_dev_phys_link(struct ata_device *dev) in ata_dev_phys_link()
354 static void ata_force_link_limits(struct ata_link *link) in ata_force_link_limits()
1552 struct ata_link *link = dev->link; in ata_exec_internal_sg()
2132 struct ata_link *plink = ata_dev_phys_link(dev); in ata_do_link_spd_horkage()
2983 static void sata_print_link_status(struct ata_link *link) in sata_print_link_status()
3011 struct ata_link *link = adev->link; in ata_dev_pair()
3038 int sata_down_spd_limit(struct ata_link *link, u32 spd_limit) in sata_down_spd_limit()
3098 static int __sata_set_spd_needed(struct ata_link *link, u32 *scontrol) in __sata_set_spd_needed()
[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()
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);
344 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed) in sil_set_mode()
396 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sil_scr_read()
407 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sil_scr_write()
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()
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_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,
467 static int pdc_sata_scr_read(struct ata_link *link, in pdc_sata_scr_read()
476 static int pdc_sata_scr_write(struct ata_link *link, in pdc_sata_scr_write()
770 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class, in pdc_pata_softreset()
808 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class, in pdc_sata_hardreset()
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()
Dlibata-sff.c240 static int ata_sff_check_ready(struct ata_link *link) in ata_sff_check_ready()
261 int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline) in ata_sff_wait_ready()
975 struct ata_link *link = qc->dev->link; in ata_sff_hsm_move()
1235 void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay) in ata_sff_queue_pio_task()
1276 struct ata_link *link = ap->sff_pio_task_link; in ata_sff_pio_task()
1347 struct ata_link *link = qc->dev->link; in ata_sff_qc_issue()
1721 int ata_sff_prereset(struct ata_link *link, unsigned long deadline) in ata_sff_prereset()
1879 int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask, in ata_sff_wait_after_reset()
1974 int ata_sff_softreset(struct ata_link *link, unsigned int *classes, in ata_sff_softreset()
2030 int sata_sff_hardreset(struct ata_link *link, unsigned int *class, in sata_sff_hardreset()
[all …]
Dsata_mv.c588 static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
589 static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val);
590 static int mv5_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
591 static int mv5_scr_write(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,
1345 static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val) in mv_scr_read()
1356 static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val) in mv_scr_write()
1424 struct ata_link *link = qc->dev->link; in mv_qc_defer()
[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()
Dahci_xgene.c350 static int xgene_ahci_do_hardreset(struct ata_link *link, in xgene_ahci_do_hardreset()
390 static int xgene_ahci_hardreset(struct ata_link *link, unsigned int *class, in xgene_ahci_hardreset()
451 static int xgene_ahci_pmp_softreset(struct ata_link *link, unsigned int *class, in xgene_ahci_pmp_softreset()
495 static int xgene_ahci_softreset(struct ata_link *link, unsigned int *class, in xgene_ahci_softreset()
Dsata_inic162x.c291 static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in inic_scr_read()
306 static int inic_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in inic_scr_write()
607 static int inic_check_ready(struct ata_link *link) in inic_check_ready()
618 static int inic_hardreset(struct ata_link *link, unsigned int *class, in inic_hardreset()
Data_piix.c537 static int piix_pata_prereset(struct ata_link *link, unsigned long deadline) in piix_pata_prereset()
776 static void piix_sidpr_sel(struct ata_link *link, unsigned int reg) in piix_sidpr_sel()
785 static int piix_sidpr_scr_read(struct ata_link *link, in piix_sidpr_scr_read()
798 static int piix_sidpr_scr_write(struct ata_link *link, in piix_sidpr_scr_write()
811 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, in piix_sidpr_set_lpm()
1438 struct ata_link *link0 = &host->ports[0]->link; in piix_init_sidpr()
/drivers/scsi/libsas/
Dsas_ata.c90 struct ata_link *link; in sas_ata_task_done()
300 static int smp_ata_check_ready(struct ata_link *link) in smp_ata_check_ready()
332 static int local_ata_check_ready(struct ata_link *link) in local_ata_check_ready()
371 static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, in sas_ata_hard_reset()
377 int (*check_ready)(struct ata_link *link); in sas_ata_hard_reset()

123