Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/drivers/ata/
Dlibata.h41 extern void ata_force_cbl(struct ata_port *ap);
43 static inline void ata_force_cbl(struct ata_port *ap) { } in ata_force_cbl()
81 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
85 extern struct ata_port *ata_port_alloc(struct ata_host *host);
87 extern int ata_port_probe(struct ata_port *ap);
88 extern void __ata_port_probe(struct ata_port *ap);
92 #define to_ata_port(d) container_of(d, struct ata_port, tdev)
96 int ata_sas_allocate_tag(struct ata_port *ap);
97 void ata_sas_free_tag(unsigned int tag, struct ata_port *ap);
99 static inline int ata_sas_allocate_tag(struct ata_port *ap) in ata_sas_allocate_tag()
[all …]
Dsata_promise.c140 static int pdc_common_port_start(struct ata_port *ap);
141 static int pdc_sata_port_start(struct ata_port *ap);
143 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
144 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
147 static void pdc_irq_clear(struct ata_port *ap);
149 static void pdc_freeze(struct ata_port *ap);
150 static void pdc_sata_freeze(struct ata_port *ap);
151 static void pdc_thaw(struct ata_port *ap);
152 static void pdc_sata_thaw(struct ata_port *ap);
157 static void pdc_error_handler(struct ata_port *ap);
[all …]
Dlibata-sata.c41 struct ata_port *ap = link->ap; in sata_scr_valid()
638 int ata_qc_complete_multiple(struct ata_port *ap, u64 qc_active) in ata_qc_complete_multiple()
723 int ata_slave_link_init(struct ata_port *ap) in ata_slave_link_init()
786 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_store()
825 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_show()
842 struct ata_port *ap; in ata_ncq_prio_enable_show()
869 struct ata_port *ap; in ata_ncq_prio_enable_store()
926 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_store()
937 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_show()
952 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_type_show()
[all …]
Dpata_amd.c43 static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offset, int speed, int c… in timing_setup()
139 struct ata_port *ap = link->ap; in amd_pre_reset()
155 static int amd_cable_detect(struct ata_port *ap) in amd_cable_detect()
178 static void amd_fifo_setup(struct ata_port *ap) in amd_fifo_setup()
209 static void amd33_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd33_set_piomode()
215 static void amd66_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd66_set_piomode()
221 static void amd100_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd100_set_piomode()
227 static void amd133_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd133_set_piomode()
242 static void amd33_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd33_set_dmamode()
247 static void amd66_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd66_set_dmamode()
[all …]
Dlibahci.c47 static ssize_t ahci_led_show(struct ata_port *ap, char *buf);
48 static ssize_t ahci_led_store(struct ata_port *ap, const char *buf,
50 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state,
58 static int ahci_port_start(struct ata_port *ap);
59 static void ahci_port_stop(struct ata_port *ap);
62 static void ahci_freeze(struct ata_port *ap);
63 static void ahci_thaw(struct ata_port *ap);
64 static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep);
65 static void ahci_enable_fbs(struct ata_port *ap);
66 static void ahci_disable_fbs(struct ata_port *ap);
[all …]
Dlibata-sff.c64 u8 ata_sff_check_status(struct ata_port *ap) in ata_sff_check_status()
83 static u8 ata_sff_altstatus(struct ata_port *ap) in ata_sff_altstatus()
103 static u8 ata_sff_irq_status(struct ata_port *ap) in ata_sff_irq_status()
130 static void ata_sff_sync(struct ata_port *ap) in ata_sff_sync()
150 void ata_sff_pause(struct ata_port *ap) in ata_sff_pause()
165 void ata_sff_dma_pause(struct ata_port *ap) in ata_sff_dma_pause()
195 int ata_sff_busy_sleep(struct ata_port *ap, in ata_sff_busy_sleep()
276 static void ata_sff_set_devctl(struct ata_port *ap, u8 ctl) in ata_sff_set_devctl()
298 void ata_sff_dev_select(struct ata_port *ap, unsigned int device) in ata_sff_dev_select()
330 static void ata_dev_select(struct ata_port *ap, unsigned int device, in ata_dev_select()
[all …]
Dsata_nv.c294 static void nv_nf2_freeze(struct ata_port *ap);
295 static void nv_nf2_thaw(struct ata_port *ap);
296 static void nv_ck804_freeze(struct ata_port *ap);
297 static void nv_ck804_thaw(struct ata_port *ap);
303 static void nv_adma_irq_clear(struct ata_port *ap);
304 static int nv_adma_port_start(struct ata_port *ap);
305 static void nv_adma_port_stop(struct ata_port *ap);
307 static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg);
308 static int nv_adma_port_resume(struct ata_port *ap);
310 static void nv_adma_freeze(struct ata_port *ap);
[all …]
Dpata_sl82c105.c58 struct ata_port *ap = link->ap; in sl82c105_pre_reset()
78 static void sl82c105_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in sl82c105_configure_piomode()
101 static void sl82c105_set_piomode(struct ata_port *ap, struct ata_device *adev) in sl82c105_set_piomode()
115 static void sl82c105_configure_dmamode(struct ata_port *ap, struct ata_device *adev) in sl82c105_configure_dmamode()
140 static void sl82c105_reset_engine(struct ata_port *ap) in sl82c105_reset_engine()
163 struct ata_port *ap = qc->ap; in sl82c105_bmdma_start()
192 struct ata_port *ap = qc->ap; in sl82c105_bmdma_stop()
216 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sl82c105_qc_defer()
231 static bool sl82c105_sff_irq_check(struct ata_port *ap) in sl82c105_sff_irq_check()
Dsata_sil24.c332 static void sil24_pmp_attach(struct ata_port *ap);
333 static void sil24_pmp_detach(struct ata_port *ap);
334 static void sil24_freeze(struct ata_port *ap);
335 static void sil24_thaw(struct ata_port *ap);
342 static void sil24_error_handler(struct ata_port *ap);
344 static int sil24_port_start(struct ata_port *ap);
350 static int sil24_port_resume(struct ata_port *ap);
459 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset()
464 static void __iomem *sil24_port_base(struct ata_port *ap) in sil24_port_base()
479 static void sil24_read_tf(struct ata_port *ap, int tag, struct ata_taskfile *tf) in sil24_read_tf()
[all …]
Dpata_hpt3x2n.c104 static u32 hpt3x2n_find_mode(struct ata_port *ap, int speed) in hpt3x2n_find_mode()
140 static int hpt3x2n_cable_detect(struct ata_port *ap) in hpt3x2n_cable_detect()
172 struct ata_port *ap = link->ap; in hpt3x2n_pre_reset()
182 static void hpt3x2n_set_mode(struct ata_port *ap, struct ata_device *adev, in hpt3x2n_set_mode()
221 static void hpt3x2n_set_piomode(struct ata_port *ap, struct ata_device *adev) in hpt3x2n_set_piomode()
234 static void hpt3x2n_set_dmamode(struct ata_port *ap, struct ata_device *adev) in hpt3x2n_set_dmamode()
248 struct ata_port *ap = qc->ap; in hpt3x2n_bmdma_stop()
276 static void hpt3x2n_set_clock(struct ata_port *ap, int source) in hpt3x2n_set_clock()
300 static int hpt3x2n_use_dpll(struct ata_port *ap, int writing) in hpt3x2n_use_dpll()
314 struct ata_port *ap = qc->ap; in hpt3x2n_qc_defer()
[all …]
Dahci.h362 void (*start_engine)(struct ata_port *ap);
368 int (*stop_engine)(struct ata_port *ap);
398 unsigned int ahci_dev_classify(struct ata_port *ap);
414 int ahci_stop_engine(struct ata_port *ap);
415 void ahci_start_fis_rx(struct ata_port *ap);
416 void ahci_start_engine(struct ata_port *ap);
418 int ahci_kick_engine(struct ata_port *ap);
419 int ahci_port_resume(struct ata_port *ap);
425 void ahci_error_handler(struct ata_port *ap);
437 static inline void __iomem *ahci_port_base(struct ata_port *ap) in ahci_port_base()
Dpata_optidma.c57 struct ata_port *ap = link->ap; in optidma_pre_reset()
77 static void optidma_unlock(struct ata_port *ap) in optidma_unlock()
94 static void optidma_lock(struct ata_port *ap) in optidma_lock()
116 static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optidma_mode_setup()
201 static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optiplus_mode_setup()
239 static void optidma_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_pio_mode()
254 static void optidma_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_dma_mode()
269 static void optiplus_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_pio_mode()
284 static void optiplus_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_dma_mode()
320 struct ata_port *ap = link->ap; in optidma_set_mode()
Dpdc_adma.c117 static int adma_port_start(struct ata_port *ap);
118 static void adma_port_stop(struct ata_port *ap);
122 static void adma_freeze(struct ata_port *ap);
123 static void adma_thaw(struct ata_port *ap);
177 static void adma_reset_engine(struct ata_port *ap) in adma_reset_engine()
188 static void adma_reinit_engine(struct ata_port *ap) in adma_reinit_engine()
216 static inline void adma_enter_reg_mode(struct ata_port *ap) in adma_enter_reg_mode()
224 static void adma_freeze(struct ata_port *ap) in adma_freeze()
239 static void adma_thaw(struct ata_port *ap) in adma_thaw()
246 struct ata_port *ap = link->ap; in adma_prereset()
[all …]
Dsata_qstor.c101 static int qs_port_start(struct ata_port *ap);
106 static void qs_freeze(struct ata_port *ap);
107 static void qs_thaw(struct ata_port *ap);
109 static void qs_error_handler(struct ata_port *ap);
171 static inline void qs_enter_reg_mode(struct ata_port *ap) in qs_enter_reg_mode()
181 static inline void qs_reset_channel_logic(struct ata_port *ap) in qs_reset_channel_logic()
190 static void qs_freeze(struct ata_port *ap) in qs_freeze()
198 static void qs_thaw(struct ata_port *ap) in qs_thaw()
208 struct ata_port *ap = link->ap; in qs_prereset()
222 static void qs_error_handler(struct ata_port *ap) in qs_error_handler()
[all …]
Dsata_rcar.c222 static void sata_rcar_freeze(struct ata_port *ap) in sata_rcar_freeze()
232 static void sata_rcar_thaw(struct ata_port *ap) in sata_rcar_thaw()
265 static u8 sata_rcar_check_status(struct ata_port *ap) in sata_rcar_check_status()
270 static u8 sata_rcar_check_altstatus(struct ata_port *ap) in sata_rcar_check_altstatus()
275 static void sata_rcar_set_devctl(struct ata_port *ap, u8 ctl) in sata_rcar_set_devctl()
280 static void sata_rcar_dev_select(struct ata_port *ap, unsigned int device) in sata_rcar_dev_select()
286 static unsigned int sata_rcar_ata_devchk(struct ata_port *ap, in sata_rcar_ata_devchk()
315 struct ata_port *ap = link->ap; in sata_rcar_wait_after_reset()
322 static int sata_rcar_bus_softreset(struct ata_port *ap, unsigned long deadline) in sata_rcar_bus_softreset()
343 struct ata_port *ap = link->ap; in sata_rcar_softreset()
[all …]
Dpata_pdc202xx_old.c27 static int pdc2026x_cable_detect(struct ata_port *ap) in pdc2026x_cable_detect()
38 static void pdc202xx_exec_command(struct ata_port *ap, in pdc202xx_exec_command()
47 static bool pdc202xx_irq_check(struct ata_port *ap) in pdc202xx_irq_check()
79 static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in pdc202xx_configure_piomode()
112 static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_piomode()
126 static void pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_dmamode()
179 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_start()
229 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_stop()
265 static int pdc2026x_port_start(struct ata_port *ap) in pdc2026x_port_start()
Dpata_artop.c57 struct ata_port *ap = link->ap; in artop62x0_pre_reset()
75 static int artop6260_cable_detect(struct ata_port *ap) in artop6260_cable_detect()
99 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode()
126 static void artop6210_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6210_set_piomode()
153 static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6260_load_piomode()
180 static void artop6260_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6260_set_piomode()
204 static void artop6210_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6210_set_dmamode()
244 static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6260_set_dmamode()
280 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in artop6210_qc_defer()
Dpata_acpi.c39 struct ata_port *ap = link->ap; in pacpi_pre_reset()
54 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect()
73 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes()
112 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode()
135 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode()
169 struct ata_port *ap = qc->ap; in pacpi_qc_issue()
192 static int pacpi_port_start(struct ata_port *ap) in pacpi_port_start()
Dsata_via.c77 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf);
78 static void svia_noop_freeze(struct ata_port *ap);
81 static int vt6421_pata_cable_detect(struct ata_port *ap);
82 static void vt6421_set_pio_mode(struct ata_port *ap, struct ata_device *adev);
83 static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev);
84 static void vt6421_error_handler(struct ata_port *ap);
289 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in svia_tf_load()
301 static void svia_noop_freeze(struct ata_port *ap) in svia_noop_freeze()
332 struct ata_port *ap = link->ap; in vt6420_prereset()
382 struct ata_port *ap = qc->ap; in vt6420_bmdma_start()
[all …]
Dpata_atiixp.c49 static int atiixp_cable_detect(struct ata_port *ap) in atiixp_cable_detect()
83 struct ata_port *ap = link->ap; in atiixp_prereset()
102 static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) in atiixp_set_pio_timing()
132 static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_piomode()
149 static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_dmamode()
213 struct ata_port *ap = qc->ap; in atiixp_bmdma_start()
242 struct ata_port *ap = qc->ap; in atiixp_bmdma_stop()
Dlibata-acpi.c45 struct ata_port *ap;
67 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device()
100 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug()
148 static void ata_acpi_uevent(struct ata_port *ap, struct ata_device *dev, in ata_acpi_uevent()
179 void ata_acpi_bind_port(struct ata_port *ap) in ata_acpi_bind_port()
208 struct ata_port *ap = dev->link->ap; in ata_acpi_bind_dev()
266 struct ata_port *ap = host->ports[i]; in ata_acpi_dissociate()
287 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm) in ata_acpi_gtm()
347 int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm) in ata_acpi_stm()
405 struct ata_port *ap = dev->link->ap; in ata_dev_get_GTF()
[all …]
Dpata_sis.c101 struct ata_port *ap = adev->link->ap; in sis_port_base()
123 static int sis_133_cable_detect(struct ata_port *ap) in sis_133_cable_detect()
143 static int sis_66_cable_detect(struct ata_port *ap) in sis_66_cable_detect()
172 struct ata_port *ap = link->ap; in sis_pre_reset()
195 static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev) in sis_set_fifo()
227 static void sis_old_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_piomode()
264 static void sis_100_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_100_set_piomode()
289 static void sis_133_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_133_set_piomode()
337 static void sis_old_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_dmamode()
376 static void sis_66_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_66_set_dmamode()
[all …]
Dsata_sx4.c201 static void pdc_error_handler(struct ata_port *ap);
202 static void pdc_freeze(struct ata_port *ap);
203 static void pdc_thaw(struct ata_port *ap);
204 static int pdc_port_start(struct ata_port *ap);
206 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
207 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
220 static void pdc20621_irq_clear(struct ata_port *ap);
283 static int pdc_port_start(struct ata_port *ap) in pdc_port_start()
440 struct ata_port *ap = qc->ap; in pdc20621_dma_prep()
500 struct ata_port *ap = qc->ap; in pdc20621_nodata_prep()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlibata.h525 struct ata_port;
614 struct ata_port *simplex_claimed; /* channel owning the DMA */
615 struct ata_port *ports[];
619 struct ata_port *ap;
785 struct ata_port *ap;
812 struct ata_port { struct
910 int (*cable_detect)(struct ata_port *ap); argument
912 void (*set_piomode)(struct ata_port *ap, struct ata_device *dev);
913 void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev);
919 void (*freeze)(struct ata_port *ap);
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dlibata.h158 __field( unsigned int, ata_port )
179 __entry->ata_port = qc->ap->print_id;
199 __entry->ata_port, __entry->ata_dev, __entry->tag,
217 __field( unsigned int, ata_port )
237 __entry->ata_port = qc->ap->print_id;
257 __entry->ata_port, __entry->ata_dev, __entry->tag,
286 __field( unsigned int, ata_port )
293 __entry->ata_port = dev->link->ap->print_id;
300 __entry->ata_port, __entry->ata_dev,
312 __field( unsigned int, ata_port )
[all …]

12345