Home
last modified time | relevance | path

Searched refs:ata_port (Results 1 – 25 of 102) sorted by relevance

12345

/drivers/ata/
Dlibata.h63 extern void ata_force_cbl(struct ata_port *ap);
100 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
104 extern struct ata_port *ata_port_alloc(struct ata_host *host);
106 extern int ata_port_probe(struct ata_port *ap);
107 extern void __ata_port_probe(struct ata_port *ap);
109 #define to_ata_port(d) container_of(d, struct ata_port, tdev)
115 extern int ata_acpi_on_suspend(struct ata_port *ap);
116 extern void ata_acpi_on_resume(struct ata_port *ap);
119 extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state);
120 extern void ata_acpi_bind_port(struct ata_port *ap);
[all …]
Dsata_promise.c156 static int pdc_common_port_start(struct ata_port *ap);
157 static int pdc_sata_port_start(struct ata_port *ap);
159 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
160 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
163 static void pdc_irq_clear(struct ata_port *ap);
165 static void pdc_freeze(struct ata_port *ap);
166 static void pdc_sata_freeze(struct ata_port *ap);
167 static void pdc_thaw(struct ata_port *ap);
168 static void pdc_sata_thaw(struct ata_port *ap);
173 static void pdc_error_handler(struct ata_port *ap);
[all …]
Dlibata-sff.c84 u8 ata_sff_check_status(struct ata_port *ap) in ata_sff_check_status()
103 static u8 ata_sff_altstatus(struct ata_port *ap) in ata_sff_altstatus()
123 static u8 ata_sff_irq_status(struct ata_port *ap) in ata_sff_irq_status()
150 static void ata_sff_sync(struct ata_port *ap) in ata_sff_sync()
170 void ata_sff_pause(struct ata_port *ap) in ata_sff_pause()
185 void ata_sff_dma_pause(struct ata_port *ap) in ata_sff_dma_pause()
215 int ata_sff_busy_sleep(struct ata_port *ap, in ata_sff_busy_sleep()
296 static void ata_sff_set_devctl(struct ata_port *ap, u8 ctl) in ata_sff_set_devctl()
318 void ata_sff_dev_select(struct ata_port *ap, unsigned int device) in ata_sff_dev_select()
350 static void ata_dev_select(struct ata_port *ap, unsigned int device, in ata_dev_select()
[all …]
Dlibahci.c61 static ssize_t ahci_led_show(struct ata_port *ap, char *buf);
62 static ssize_t ahci_led_store(struct ata_port *ap, const char *buf,
64 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state,
72 static int ahci_port_start(struct ata_port *ap);
73 static void ahci_port_stop(struct ata_port *ap);
76 static void ahci_freeze(struct ata_port *ap);
77 static void ahci_thaw(struct ata_port *ap);
78 static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep);
79 static void ahci_enable_fbs(struct ata_port *ap);
80 static void ahci_disable_fbs(struct ata_port *ap);
[all …]
Dpata_amd.c42 static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offset, int speed, int c… in timing_setup()
138 struct ata_port *ap = link->ap; in amd_pre_reset()
154 static int amd_cable_detect(struct ata_port *ap) in amd_cable_detect()
177 static void amd_fifo_setup(struct ata_port *ap) in amd_fifo_setup()
208 static void amd33_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd33_set_piomode()
214 static void amd66_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd66_set_piomode()
220 static void amd100_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd100_set_piomode()
226 static void amd133_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd133_set_piomode()
241 static void amd33_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd33_set_dmamode()
246 static void amd66_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd66_set_dmamode()
[all …]
Dsata_nv.c310 static void nv_nf2_freeze(struct ata_port *ap);
311 static void nv_nf2_thaw(struct ata_port *ap);
312 static void nv_ck804_freeze(struct ata_port *ap);
313 static void nv_ck804_thaw(struct ata_port *ap);
319 static void nv_adma_irq_clear(struct ata_port *ap);
320 static int nv_adma_port_start(struct ata_port *ap);
321 static void nv_adma_port_stop(struct ata_port *ap);
323 static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg);
324 static int nv_adma_port_resume(struct ata_port *ap);
326 static void nv_adma_freeze(struct ata_port *ap);
[all …]
Dsata_sil24.c342 static void sil24_pmp_attach(struct ata_port *ap);
343 static void sil24_pmp_detach(struct ata_port *ap);
344 static void sil24_freeze(struct ata_port *ap);
345 static void sil24_thaw(struct ata_port *ap);
352 static void sil24_error_handler(struct ata_port *ap);
354 static int sil24_port_start(struct ata_port *ap);
360 static int sil24_port_resume(struct ata_port *ap);
469 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset()
474 static void __iomem *sil24_port_base(struct ata_port *ap) in sil24_port_base()
489 static void sil24_read_tf(struct ata_port *ap, int tag, struct ata_taskfile *tf) in sil24_read_tf()
[all …]
Dpata_sl82c105.c57 struct ata_port *ap = link->ap; in sl82c105_pre_reset()
77 static void sl82c105_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in sl82c105_configure_piomode()
100 static void sl82c105_set_piomode(struct ata_port *ap, struct ata_device *adev) in sl82c105_set_piomode()
114 static void sl82c105_configure_dmamode(struct ata_port *ap, struct ata_device *adev) in sl82c105_configure_dmamode()
139 static void sl82c105_reset_engine(struct ata_port *ap) in sl82c105_reset_engine()
162 struct ata_port *ap = qc->ap; in sl82c105_bmdma_start()
191 struct ata_port *ap = qc->ap; in sl82c105_bmdma_stop()
215 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sl82c105_qc_defer()
230 static bool sl82c105_sff_irq_check(struct ata_port *ap) in sl82c105_sff_irq_check()
Dpata_hpt3x2n.c103 static u32 hpt3x2n_find_mode(struct ata_port *ap, int speed) in hpt3x2n_find_mode()
139 static int hpt3x2n_cable_detect(struct ata_port *ap) in hpt3x2n_cable_detect()
171 struct ata_port *ap = link->ap; in hpt3x2n_pre_reset()
181 static void hpt3x2n_set_mode(struct ata_port *ap, struct ata_device *adev, in hpt3x2n_set_mode()
220 static void hpt3x2n_set_piomode(struct ata_port *ap, struct ata_device *adev) in hpt3x2n_set_piomode()
233 static void hpt3x2n_set_dmamode(struct ata_port *ap, struct ata_device *adev) in hpt3x2n_set_dmamode()
247 struct ata_port *ap = qc->ap; in hpt3x2n_bmdma_stop()
275 static void hpt3x2n_set_clock(struct ata_port *ap, int source) in hpt3x2n_set_clock()
299 static int hpt3x2n_use_dpll(struct ata_port *ap, int writing) in hpt3x2n_use_dpll()
313 struct ata_port *ap = qc->ap; in hpt3x2n_qc_defer()
[all …]
Dsata_qstor.c117 static int qs_port_start(struct ata_port *ap);
122 static void qs_freeze(struct ata_port *ap);
123 static void qs_thaw(struct ata_port *ap);
125 static void qs_error_handler(struct ata_port *ap);
187 static inline void qs_enter_reg_mode(struct ata_port *ap) in qs_enter_reg_mode()
197 static inline void qs_reset_channel_logic(struct ata_port *ap) in qs_reset_channel_logic()
206 static void qs_freeze(struct ata_port *ap) in qs_freeze()
214 static void qs_thaw(struct ata_port *ap) in qs_thaw()
224 struct ata_port *ap = link->ap; in qs_prereset()
238 static void qs_error_handler(struct ata_port *ap) in qs_error_handler()
[all …]
Dpata_optidma.c56 struct ata_port *ap = link->ap; in optidma_pre_reset()
76 static void optidma_unlock(struct ata_port *ap) in optidma_unlock()
93 static void optidma_lock(struct ata_port *ap) in optidma_lock()
115 static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optidma_mode_setup()
200 static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optiplus_mode_setup()
238 static void optidma_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_pio_mode()
253 static void optidma_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_dma_mode()
268 static void optiplus_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_pio_mode()
283 static void optiplus_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_dma_mode()
319 struct ata_port *ap = link->ap; in optidma_set_mode()
Dsata_rcar.c223 static void sata_rcar_freeze(struct ata_port *ap) in sata_rcar_freeze()
233 static void sata_rcar_thaw(struct ata_port *ap) in sata_rcar_thaw()
266 static u8 sata_rcar_check_status(struct ata_port *ap) in sata_rcar_check_status()
271 static u8 sata_rcar_check_altstatus(struct ata_port *ap) in sata_rcar_check_altstatus()
276 static void sata_rcar_set_devctl(struct ata_port *ap, u8 ctl) in sata_rcar_set_devctl()
281 static void sata_rcar_dev_select(struct ata_port *ap, unsigned int device) in sata_rcar_dev_select()
287 static unsigned int sata_rcar_ata_devchk(struct ata_port *ap, in sata_rcar_ata_devchk()
316 struct ata_port *ap = link->ap; in sata_rcar_wait_after_reset()
323 static int sata_rcar_bus_softreset(struct ata_port *ap, unsigned long deadline) in sata_rcar_bus_softreset()
344 struct ata_port *ap = link->ap; in sata_rcar_softreset()
[all …]
Dahci.h354 void (*start_engine)(struct ata_port *ap);
378 unsigned int ahci_dev_classify(struct ata_port *ap);
391 int ahci_stop_engine(struct ata_port *ap);
392 void ahci_start_fis_rx(struct ata_port *ap);
393 void ahci_start_engine(struct ata_port *ap);
395 int ahci_kick_engine(struct ata_port *ap);
396 int ahci_port_resume(struct ata_port *ap);
402 void ahci_error_handler(struct ata_port *ap);
413 static inline void __iomem *ahci_port_base(struct ata_port *ap) in ahci_port_base()
Dpdc_adma.c133 static int adma_port_start(struct ata_port *ap);
134 static void adma_port_stop(struct ata_port *ap);
138 static void adma_freeze(struct ata_port *ap);
139 static void adma_thaw(struct ata_port *ap);
193 static void adma_reset_engine(struct ata_port *ap) in adma_reset_engine()
204 static void adma_reinit_engine(struct ata_port *ap) in adma_reinit_engine()
232 static inline void adma_enter_reg_mode(struct ata_port *ap) in adma_enter_reg_mode()
240 static void adma_freeze(struct ata_port *ap) in adma_freeze()
255 static void adma_thaw(struct ata_port *ap) in adma_thaw()
262 struct ata_port *ap = link->ap; in adma_prereset()
[all …]
Dpata_pdc202xx_old.c26 static int pdc2026x_cable_detect(struct ata_port *ap) in pdc2026x_cable_detect()
37 static void pdc202xx_exec_command(struct ata_port *ap, in pdc202xx_exec_command()
46 static bool pdc202xx_irq_check(struct ata_port *ap) in pdc202xx_irq_check()
78 static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in pdc202xx_configure_piomode()
111 static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_piomode()
125 static void pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_dmamode()
178 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_start()
228 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_stop()
264 static int pdc2026x_port_start(struct ata_port *ap) in pdc2026x_port_start()
Dsata_via.c81 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf);
82 static void svia_noop_freeze(struct ata_port *ap);
85 static int vt6421_pata_cable_detect(struct ata_port *ap);
86 static void vt6421_set_pio_mode(struct ata_port *ap, struct ata_device *adev);
87 static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev);
291 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in svia_tf_load()
303 static void svia_noop_freeze(struct ata_port *ap) in svia_noop_freeze()
334 struct ata_port *ap = link->ap; in vt6420_prereset()
384 struct ata_port *ap = qc->ap; in vt6420_bmdma_start()
393 static int vt6421_pata_cable_detect(struct ata_port *ap) in vt6421_pata_cable_detect()
[all …]
Dpata_artop.c56 struct ata_port *ap = link->ap; in artop62x0_pre_reset()
74 static int artop6260_cable_detect(struct ata_port *ap) in artop6260_cable_detect()
98 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode()
125 static void artop6210_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6210_set_piomode()
152 static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6260_load_piomode()
179 static void artop6260_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6260_set_piomode()
203 static void artop6210_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6210_set_dmamode()
243 static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6260_set_dmamode()
279 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in artop6210_qc_defer()
Dlibata-acpi.c44 struct ata_port *ap;
66 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device()
99 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug()
147 static void ata_acpi_uevent(struct ata_port *ap, struct ata_device *dev, in ata_acpi_uevent()
178 void ata_acpi_bind_port(struct ata_port *ap) in ata_acpi_bind_port()
207 struct ata_port *ap = dev->link->ap; in ata_acpi_bind_dev()
265 struct ata_port *ap = host->ports[i]; in ata_acpi_dissociate()
286 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm) in ata_acpi_gtm()
346 int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm) in ata_acpi_stm()
404 struct ata_port *ap = dev->link->ap; in ata_dev_get_GTF()
[all …]
Dsata_sx4.c217 static void pdc_error_handler(struct ata_port *ap);
218 static void pdc_freeze(struct ata_port *ap);
219 static void pdc_thaw(struct ata_port *ap);
220 static int pdc_port_start(struct ata_port *ap);
222 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
223 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
236 static void pdc20621_irq_clear(struct ata_port *ap);
299 static int pdc_port_start(struct ata_port *ap) in pdc_port_start()
456 struct ata_port *ap = qc->ap; in pdc20621_dma_prep()
516 struct ata_port *ap = qc->ap; in pdc20621_nodata_prep()
[all …]
Dpata_acpi.c38 struct ata_port *ap = link->ap; in pacpi_pre_reset()
53 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect()
72 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes()
111 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode()
134 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode()
168 struct ata_port *ap = qc->ap; in pacpi_qc_issue()
191 static int pacpi_port_start(struct ata_port *ap) in pacpi_port_start()
Dpata_sis.c100 struct ata_port *ap = adev->link->ap; in sis_port_base()
122 static int sis_133_cable_detect(struct ata_port *ap) in sis_133_cable_detect()
142 static int sis_66_cable_detect(struct ata_port *ap) in sis_66_cable_detect()
171 struct ata_port *ap = link->ap; in sis_pre_reset()
194 static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev) in sis_set_fifo()
226 static void sis_old_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_piomode()
263 static void sis_100_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_100_set_piomode()
288 static void sis_133_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_133_set_piomode()
336 static void sis_old_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_dmamode()
375 static void sis_66_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_66_set_dmamode()
[all …]
Dpata_bf54x.c289 static void bfin_set_piomode(struct ata_port *ap, struct ata_device *adev) in bfin_set_piomode()
368 static void bfin_set_dmamode(struct ata_port *ap, struct ata_device *adev) in bfin_set_dmamode()
669 static void bfin_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in bfin_tf_load()
726 static u8 bfin_check_status(struct ata_port *ap) in bfin_check_status()
740 static void bfin_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in bfin_tf_read()
770 static void bfin_exec_command(struct ata_port *ap, in bfin_exec_command()
785 static u8 bfin_check_altstatus(struct ata_port *ap) in bfin_check_altstatus()
799 static void bfin_dev_select(struct ata_port *ap, unsigned int device) in bfin_dev_select()
819 static void bfin_set_devctl(struct ata_port *ap, u8 ctl) in bfin_set_devctl()
834 struct ata_port *ap = qc->ap; in bfin_bmdma_setup()
[all …]
Dpata_atiixp.c48 static int atiixp_cable_detect(struct ata_port *ap) in atiixp_cable_detect()
82 struct ata_port *ap = link->ap; in atiixp_prereset()
101 static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) in atiixp_set_pio_timing()
131 static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_piomode()
148 static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_dmamode()
212 struct ata_port *ap = qc->ap; in atiixp_bmdma_start()
241 struct ata_port *ap = qc->ap; in atiixp_bmdma_stop()
Dsata_sil.c126 static void sil_freeze(struct ata_port *ap);
127 static void sil_thaw(struct ata_port *ap);
269 struct ata_port *ap = qc->ap; in sil_bmdma_stop()
282 struct ata_port *ap = qc->ap; in sil_bmdma_setup()
295 struct ata_port *ap = qc->ap; in sil_bmdma_start()
312 struct ata_port *ap = qc->ap; in sil_fill_sg()
364 struct ata_port *ap = link->ap; in sil_set_mode()
394 static inline void __iomem *sil_scr_addr(struct ata_port *ap, in sil_scr_addr()
436 static void sil_host_intr(struct ata_port *ap, u32 bmdma2) in sil_host_intr()
533 struct ata_port *ap = host->ports[i]; in sil_interrupt()
[all …]
Dlibata-scsi.c64 static struct ata_device *__ata_scsi_find_dev(struct ata_port *ap,
66 static struct ata_device *ata_scsi_find_dev(struct ata_port *ap,
119 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_store()
158 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_show()
174 struct ata_port *ap; in ata_scsi_park_show()
214 struct ata_port *ap; in ata_scsi_park_store()
285 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_store()
296 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_show()
311 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_type_show()
324 struct ata_port *ap = ata_shost_to_port(sdev->host); in ata_scsi_activity_show()
[all …]

12345