Home
last modified time | relevance | path

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

123

/linux-3.4.99/drivers/ata/
Dlibata.h62 extern struct ata_link *ata_dev_phys_link(struct ata_device *dev);
80 extern int ata_wait_ready(struct ata_link *link, unsigned long deadline,
81 int (*check_ready)(struct ata_link *link));
88 extern int sata_down_spd_limit(struct ata_link *link, u32 spd_limit);
98 extern bool ata_phys_link_online(struct ata_link *link);
99 extern bool ata_phys_link_offline(struct ata_link *link);
101 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
102 extern int sata_link_init_spd(struct ata_link *link);
159 extern void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
161 extern void ata_eh_done(struct ata_link *link, struct ata_device *dev,
[all …]
Dlibata-pmp.c39 static unsigned int sata_pmp_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_read()
76 static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val) in sata_pmp_write()
112 struct ata_link *link = qc->dev->link; in sata_pmp_qc_defer_cmd_switch()
142 int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_scr_read()
173 int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val) in sata_pmp_scr_write()
204 int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, in sata_pmp_set_lpm()
339 struct ata_link *pmp_link = ap->pmp_link; in sata_pmp_init_links()
362 struct ata_link *link = &pmp_link[i]; in sata_pmp_init_links()
384 struct ata_link *link; in sata_pmp_quirks()
481 struct ata_link *link = dev->link; in sata_pmp_attach()
[all …]
Dsata_sis.c67 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
68 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
112 static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg) in get_scr_cfg_addr()
141 static u32 sis_scr_cfg_read(struct ata_link *link, in sis_scr_cfg_read()
154 static int sis_scr_cfg_write(struct ata_link *link, in sis_scr_cfg_write()
164 static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sis_scr_read()
179 static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sis_scr_write()
Dsata_uli.c61 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
62 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
110 static u32 uli_scr_cfg_read(struct ata_link *link, unsigned int sc_reg) in uli_scr_cfg_read()
120 static void uli_scr_cfg_write(struct ata_link *link, unsigned int scr, u32 val) in uli_scr_cfg_write()
128 static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in uli_scr_read()
137 static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in uli_scr_write()
Dsata_via.c78 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
79 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
80 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val);
81 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val);
84 static int vt6420_prereset(struct ata_link *link, unsigned long deadline);
188 static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in svia_scr_read()
196 static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in svia_scr_write()
204 static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val) in vt8251_scr_read()
253 static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val) in vt8251_scr_write()
333 static int vt6420_prereset(struct ata_link *link, unsigned long deadline) in vt6420_prereset()
Dlibata-transport.h7 int ata_tlink_add(struct ata_link *link);
8 void ata_tlink_delete(struct ata_link *link);
Dahci.h274 struct ata_link *active_link;
332 int ahci_do_softreset(struct ata_link *link, unsigned int *class,
334 int (*check_ready)(struct ata_link *link));
338 int ahci_check_ready(struct ata_link *link);
Dlibahci.c59 static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
69 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
70 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
83 static int ahci_softreset(struct ata_link *link, unsigned int *class,
85 static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
87 static int ahci_hardreset(struct ata_link *link, unsigned int *class,
89 static void ahci_postreset(struct ata_link *link, unsigned int *class);
99 static void ahci_init_sw_activity(struct ata_link *link);
537 static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in ahci_scr_read()
549 static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in ahci_scr_write()
[all …]
Dlibata-eh.c440 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action()
553 struct ata_link *link; in ata_eh_unload()
724 struct ata_link *link; in ata_scsi_port_error_handler()
1011 static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link) in ata_do_link_abort()
1048 int ata_link_abort(struct ata_link *link) in ata_link_abort()
1175 struct ata_link *link; in sata_async_notification()
1338 struct ata_link *link = dev->link; in ata_eh_detach_dev()
1376 void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev, in ata_eh_about_to_do()
1409 void ata_eh_done(struct ata_link *link, struct ata_device *dev, in ata_eh_done()
1639 static void ata_eh_analyze_serror(struct ata_link *link) in ata_eh_analyze_serror()
[all …]
Dlibata-core.c187 struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap, in ata_link_next()
246 struct ata_device *ata_dev_next(struct ata_device *dev, struct ata_link *link, in ata_dev_next()
301 struct ata_link *ata_dev_phys_link(struct ata_device *dev) in ata_dev_phys_link()
360 static void ata_force_link_limits(struct ata_link *link) in ata_force_link_limits()
1546 struct ata_link *link = dev->link; in ata_exec_internal_sg()
2055 struct ata_link *plink = ata_dev_phys_link(dev); in ata_do_link_spd_horkage()
2659 static void sata_print_link_status(struct ata_link *link) in sata_print_link_status()
2687 struct ata_link *link = adev->link; in ata_dev_pair()
2714 int sata_down_spd_limit(struct ata_link *link, u32 spd_limit) in sata_down_spd_limit()
2768 static int __sata_set_spd_needed(struct ata_link *link, u32 *scontrol) in __sata_set_spd_needed()
[all …]
Dsata_sil24.c336 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val);
337 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val);
346 static int sil24_softreset(struct ata_link *link, unsigned int *class,
348 static int sil24_hardreset(struct ata_link *link, unsigned int *class,
350 static int sil24_pmp_hardreset(struct ata_link *link, unsigned int *class,
504 static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val) in sil24_scr_read()
517 static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val) in sil24_scr_write()
657 static int sil24_softreset(struct ata_link *link, unsigned int *class, in sil24_softreset()
701 static int sil24_hardreset(struct ata_link *link, unsigned int *class, in sil24_hardreset()
801 struct ata_link *link = qc->dev->link; in sil24_qc_defer()
[all …]
Dsata_qstor.c115 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
116 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
125 static int qs_prereset(struct ata_link *link, unsigned long deadline);
223 static int qs_prereset(struct ata_link *link, unsigned long deadline) in qs_prereset()
231 static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in qs_scr_read()
245 static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in qs_scr_write()
Dsata_sil.c120 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
121 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
122 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed);
361 static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed) in sil_set_mode()
413 static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val) in sil_scr_read()
424 static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val) in sil_scr_write()
Data_piix.c172 static int piix_pata_prereset(struct ata_link *link, unsigned long deadline);
178 static int piix_sidpr_scr_read(struct ata_link *link,
180 static int piix_sidpr_scr_write(struct ata_link *link,
182 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
785 static int piix_pata_prereset(struct ata_link *link, unsigned long deadline) in piix_pata_prereset()
1024 static void piix_sidpr_sel(struct ata_link *link, unsigned int reg) in piix_sidpr_sel()
1033 static int piix_sidpr_scr_read(struct ata_link *link, in piix_sidpr_scr_read()
1046 static int piix_sidpr_scr_write(struct ata_link *link, in piix_sidpr_scr_write()
1059 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, in piix_sidpr_set_lpm()
1478 struct ata_link *link0 = &host->ports[0]->link; in piix_init_sidpr()
Dsata_svw.c126 static int k2_sata_scr_read(struct ata_link *link, in k2_sata_scr_read()
136 static int k2_sata_scr_write(struct ata_link *link, in k2_sata_scr_write()
145 static int k2_sata_softreset(struct ata_link *link, in k2_sata_softreset()
162 static int k2_sata_hardreset(struct ata_link *link, in k2_sata_hardreset()
Dlibata-transport.c74 container_of((d), struct ata_link, tdev)
329 struct ata_link *link = transport_class_to_link(dev); \
378 void ata_tlink_delete(struct ata_link *link) in ata_tlink_delete()
402 int ata_tlink_add(struct ata_link *link) in ata_tlink_add()
633 struct ata_link *link = ata_dev->link; in ata_tdev_add()
Dpata_pdc2027x.c67 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline);
73 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed);
249 static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline) in pdc2027x_prereset()
400 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed) in pdc2027x_set_mode()
Dsata_promise.c154 static int pdc_sata_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
155 static int pdc_sata_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
170 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class,
172 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
484 static int pdc_sata_scr_read(struct ata_link *link, in pdc_sata_scr_read()
493 static int pdc_sata_scr_write(struct ata_link *link, in pdc_sata_scr_write()
787 static int pdc_pata_softreset(struct ata_link *link, unsigned int *class, in pdc_pata_softreset()
825 static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class, in pdc_sata_hardreset()
Dlibata-sff.c256 static int ata_sff_check_ready(struct ata_link *link) in ata_sff_check_ready()
277 int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline) in ata_sff_wait_ready()
1049 struct ata_link *link = qc->dev->link; in ata_sff_hsm_move()
1318 void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay) in ata_sff_queue_pio_task()
1347 struct ata_link *link = ap->sff_pio_task_link; in ata_sff_pio_task()
1411 struct ata_link *link = qc->dev->link; in ata_sff_qc_issue()
1786 int ata_sff_prereset(struct ata_link *link, unsigned long deadline) in ata_sff_prereset()
1944 int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask, in ata_sff_wait_after_reset()
2037 int ata_sff_softreset(struct ata_link *link, unsigned int *classes, in ata_sff_softreset()
2093 int sata_sff_hardreset(struct ata_link *link, unsigned int *class, in sata_sff_hardreset()
[all …]
Dpata_pcmcia.c57 static int pcmcia_set_mode(struct ata_link *link, struct ata_device **r_failed_dev) in pcmcia_set_mode()
86 static int pcmcia_set_mode_8bit(struct ata_link *link, in pcmcia_set_mode_8bit()
Dsata_mv.c579 static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
580 static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val);
581 static int mv5_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
582 static int mv5_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val);
589 static int mv_hardreset(struct ata_link *link, unsigned int *class,
632 static int mv_pmp_hardreset(struct ata_link *link, unsigned int *class,
634 static int mv_softreset(struct ata_link *link, unsigned int *class,
1334 static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val) in mv_scr_read()
1345 static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val) in mv_scr_write()
1393 struct ata_link *link = qc->dev->link; in mv_qc_defer()
[all …]
/linux-3.4.99/include/linux/
Dlibata.h493 struct ata_link;
498 typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
499 typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
501 typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
612 struct ata_link *link;
706 struct ata_link { struct
729 #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) argument
730 #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0])
748 struct ata_link* sff_pio_task_link; /* link currently used */
767 struct ata_link link; /* host default link */
[all …]
/linux-3.4.99/Documentation/ABI/testing/
Dsysfs-ata23 Files under /sys/class/ata_link
26 Behind each port, there is a ata_link. If there is a SATA PM in the
27 topology, 15 ata_link objects are created.
/linux-3.4.99/drivers/scsi/libsas/
Dsas_ata.c104 struct ata_link *link; in sas_ata_task_done()
330 static int smp_ata_check_ready(struct ata_link *link) in smp_ata_check_ready()
361 static int local_ata_check_ready(struct ata_link *link) in local_ata_check_ready()
400 static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, in sas_ata_hard_reset()
406 int (*check_ready)(struct ata_link *link); in sas_ata_hard_reset()
/linux-3.4.99/drivers/staging/phison/
Dphison.c31 static int phison_pre_reset(struct ata_link *link, unsigned long deadline) in phison_pre_reset()

123