/linux/include/linux/ |
H A D | libata.h | 535 struct ata_port; 632 struct ata_port *ports[]; 636 struct ata_port *ap; 838 struct ata_port *ap; 865 struct ata_port { struct 968 void (*freeze)(struct ata_port *ap); 969 void (*thaw)(struct ata_port *ap); 981 void (*sched_eh)(struct ata_port *ap); 982 void (*end_eh)(struct ata_port *ap); 1307 struct ata_port *ap); [all …]
|
/linux/include/trace/events/ |
H A D | libata.h | 189 __field( unsigned int, ata_port ) 256 __field( unsigned int, ata_port ) 325 __field( unsigned int, ata_port ) 342 __entry->ata_port = ap->print_id; 360 __entry->ata_port, 378 __field( unsigned int, ata_port ) 387 __entry->ata_port = ap->print_id; 436 __entry->ata_port, 607 TP_PROTO(struct ata_port *ap), 724 TP_PROTO(struct ata_port *ap), [all …]
|
/linux/drivers/ata/ |
H A D | libata.h | 48 extern void ata_force_cbl(struct ata_port *ap); 50 static inline void ata_force_cbl(struct ata_port *ap) { } in ata_force_cbl() 116 extern void ata_acpi_on_resume(struct ata_port *ap); 120 extern void ata_acpi_bind_port(struct ata_port *ap); 160 extern void ata_eh_acquire(struct ata_port *ap); 161 extern void ata_eh_release(struct ata_port *ap); 171 extern void ata_eh_autopsy(struct ata_port *ap); 173 extern void ata_eh_report(struct ata_port *ap); 182 extern void ata_eh_finish(struct ata_port *ap); 223 extern void ata_sff_flush_pio_task(struct ata_port *ap); [all …]
|
H A D | sata_promise.c | 147 static void pdc_irq_clear(struct ata_port *ap); 149 static void pdc_freeze(struct ata_port *ap); 151 static void pdc_thaw(struct ata_port *ap); 481 struct ata_port *ap = qc->ap; in pdc_atapi_pkt() 569 struct ata_port *ap = qc->ap; in pdc_fill_sg() 694 static void pdc_freeze(struct ata_port *ap) in pdc_freeze() 729 static void pdc_thaw(struct ata_port *ap) in pdc_thaw() 828 struct ata_port *ap = qc->ap; in pdc_post_internal_cmd() 914 struct ata_port *ap; in pdc_interrupt() 988 struct ata_port *ap = qc->ap; in pdc_packet_start() [all …]
|
H A D | libahci.c | 810 struct ata_port *ap = link->ap; in ahci_set_lpm() 1022 struct ata_port *ap = link->ap; in ahci_sw_activity() 1038 struct ata_port *ap = link->ap; in ahci_sw_activity_blink() 1080 struct ata_port *ap = link->ap; in ahci_init_sw_activity() 1218 struct ata_port *ap = link->ap; in ahci_activity_store() 1249 struct ata_port *ap = link->ap; in ahci_activity_show() 1673 struct ata_port *ap = qc->ap; in ahci_pmp_qc_defer() 1684 struct ata_port *ap = qc->ap; in ahci_qc_prep() 1983 struct ata_port *ap; in ahci_handle_port_intr() 2044 struct ata_port *ap = qc->ap; in ahci_qc_issue() [all …]
|
H A D | pata_amd.c | 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() 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() 273 struct ata_port *ap = dev->link->ap; in nv_mode_filter() [all …]
|
H A D | libata-sff.c | 602 struct ata_port *ap = qc->ap; in ata_pio_sector() 731 struct ata_port *ap = qc->ap; in __atapi_pio_bytes() 799 struct ata_port *ap = qc->ap; in atapi_pio_bytes() 883 struct ata_port *ap = qc->ap; in ata_hsm_qc_complete() 1210 struct ata_port *ap = in ata_sff_pio_task() 1282 struct ata_port *ap = qc->ap; in ata_sff_qc_issue() 2023 struct ata_port *ap; in ata_sff_drain_fifo() 2498 struct ata_port *ap = qc->ap; in ata_bmdma_fill_sg() 2548 struct ata_port *ap = qc->ap; in ata_bmdma_fill_sg_dumb() 2648 struct ata_port *ap = qc->ap; in ata_bmdma_qc_issue() [all …]
|
H A D | sata_nv.c | 295 static void nv_nf2_freeze(struct ata_port *ap); 296 static void nv_nf2_thaw(struct ata_port *ap); 298 static void nv_ck804_thaw(struct ata_port *ap); 313 static void nv_adma_thaw(struct ata_port *ap); 636 static void nv_adma_mode(struct ata_port *ap) in nv_adma_mode() 888 struct ata_port *ap = host->ports[i]; in nv_adma_interrupt() 1444 struct ata_port *ap = host->ports[i]; in nv_generic_interrupt() 1565 static void nv_nf2_thaw(struct ata_port *ap) in nv_nf2_thaw() 1967 struct ata_port *ap = qc->ap; in nv_swncq_fill_sg() 2025 struct ata_port *ap = qc->ap; in nv_swncq_qc_issue() [all …]
|
H A D | sata_sil24.c | 334 static void sil24_freeze(struct ata_port *ap); 335 static void sil24_thaw(struct ata_port *ap); 652 struct ata_port *ap = link->ap; in sil24_softreset() 693 struct ata_port *ap = link->ap; in sil24_hardreset() 791 struct ata_port *ap = link->ap; in sil24_qc_defer() 835 struct ata_port *ap = qc->ap; in sil24_qc_prep() 883 struct ata_port *ap = qc->ap; in sil24_qc_issue() 946 static void sil24_freeze(struct ata_port *ap) in sil24_freeze() 956 static void sil24_thaw(struct ata_port *ap) in sil24_thaw() 1184 struct ata_port *ap = qc->ap; in sil24_post_internal_cmd() [all …]
|
H A D | pata_sl82c105.c | 58 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() 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()
|
H A D | sata_qstor.c | 101 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); 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() 239 struct ata_port *ap = qc->ap; in qs_fill_sg() 299 struct ata_port *ap = qc->ap; in qs_packet_start() 337 struct ata_port *ap = qc->ap; in qs_do_or_die() 397 struct ata_port *ap = host->ports[port_no]; in qs_intr_mmio() [all …]
|
H A D | pata_hpt3x2n.c | 95 static u32 hpt3x2n_find_mode(struct ata_port *ap, int speed) in hpt3x2n_find_mode() 131 static int hpt3x2n_cable_detect(struct ata_port *ap) in hpt3x2n_cable_detect() 163 struct ata_port *ap = link->ap; in hpt3x2n_pre_reset() 186 static void hpt3x2n_set_mode(struct ata_port *ap, struct ata_device *adev, in hpt3x2n_set_mode() 216 static void hpt3x2n_set_piomode(struct ata_port *ap, struct ata_device *adev) in hpt3x2n_set_piomode() 243 struct ata_port *ap = qc->ap; in hpt3x2n_bmdma_stop() 271 static void hpt3x2n_set_clock(struct ata_port *ap, int source) in hpt3x2n_set_clock() 295 static int hpt3x2n_use_dpll(struct ata_port *ap, int writing) in hpt3x2n_use_dpll() 309 struct ata_port *ap = qc->ap; in hpt3x2n_qc_defer() 310 struct ata_port *alt = ap->host->ports[ap->port_no ^ 1]; in hpt3x2n_qc_defer() [all …]
|
H A D | pata_optidma.c | 57 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() 321 struct ata_port *ap = link->ap; in optidma_set_mode()
|
H A D | pdc_adma.c | 117 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); 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() 259 struct ata_port *ap = qc->ap; in adma_fill_sg() 358 struct ata_port *ap = qc->ap; in adma_packet_start() 392 struct ata_port *ap = host->ports[port_no]; in adma_intr_pkt() [all …]
|
H A D | sata_rcar.c | 228 static void sata_rcar_thaw(struct ata_port *ap) in sata_rcar_thaw() 310 struct ata_port *ap = link->ap; in sata_rcar_wait_after_reset() 336 struct ata_port *ap = link->ap; in sata_rcar_softreset() 428 struct ata_port *ap = qc->dev->link->ap; in sata_rcar_data_xfer() 465 struct ata_port *ap; in sata_rcar_drain_fifo() 503 struct ata_port *ap = qc->ap; in sata_rcar_bmdma_fill_sg() 538 struct ata_port *ap = qc->ap; in sata_rcar_bmdma_setup() 565 struct ata_port *ap = qc->ap; in sata_rcar_bmdma_start() 579 struct ata_port *ap = qc->ap; in sata_rcar_bmdma_stop() 701 struct ata_port *ap; in sata_rcar_interrupt() [all …]
|
H A D | ahci.h | 367 void (*start_engine)(struct ata_port *ap); 373 int (*stop_engine)(struct ata_port *ap); 406 unsigned int ahci_dev_classify(struct ata_port *ap); 422 int ahci_stop_engine(struct ata_port *ap); 423 void ahci_start_fis_rx(struct ata_port *ap); 424 void ahci_start_engine(struct ata_port *ap); 426 int ahci_kick_engine(struct ata_port *ap); 427 int ahci_port_resume(struct ata_port *ap); 433 void ahci_error_handler(struct ata_port *ap); 444 static inline void __iomem *ahci_port_base(struct ata_port *ap) in ahci_port_base()
|
H A D | pata_pdc202xx_old.c | 27 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() 45 static bool pdc202xx_irq_check(struct ata_port *ap) in pdc202xx_irq_check() 77 static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in pdc202xx_configure_piomode() 110 static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_piomode() 124 static void pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_dmamode() 177 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_start() 227 struct ata_port *ap = qc->ap; in pdc2026x_bmdma_stop() 263 static int pdc2026x_port_start(struct ata_port *ap) in pdc2026x_port_start()
|
H A D | pata_artop.c | 57 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()
|
H A D | pata_acpi.c | 39 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()
|
H A D | sata_via.c | 77 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); 84 static void vt6421_error_handler(struct ata_port *ap); 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() 391 static int vt6421_pata_cable_detect(struct ata_port *ap) in vt6421_pata_cable_detect() 436 static void vt6421_init_addrs(struct ata_port *ap) in vt6421_init_addrs() [all …]
|
H A D | pata_atiixp.c | 49 static int atiixp_cable_detect(struct ata_port *ap) in atiixp_cable_detect() 83 struct ata_port *ap = link->ap; in atiixp_prereset() 103 static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) in atiixp_set_pio_timing() 133 static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_piomode() 150 static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_dmamode() 214 struct ata_port *ap = qc->ap; in atiixp_bmdma_start() 243 struct ata_port *ap = qc->ap; in atiixp_bmdma_stop()
|
H A D | pata_sis.c | 101 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 …]
|
H A D | sata_sx4.c | 206 static void pdc_thaw(struct ata_port *ap); 417 struct ata_port *ap = qc->ap; in pdc20621_dma_prep() 476 struct ata_port *ap = qc->ap; in pdc20621_nodata_prep() 527 struct ata_port *ap = qc->ap; in __pdc20621_push_hdma() 545 struct ata_port *ap = qc->ap; in pdc20621_push_hdma() 563 struct ata_port *ap = qc->ap; in pdc20621_pop_hdma() 580 struct ata_port *ap = qc->ap; in pdc20621_dump_hdma() 594 struct ata_port *ap = qc->ap; in pdc20621_packet_start() 743 struct ata_port *ap; in pdc20621_interrupt() 865 struct ata_port *ap = qc->ap; in pdc_post_internal_cmd() [all …]
|
H A D | libata-sata.c | 43 struct ata_port *ap = link->ap; in sata_scr_valid() 845 int ata_slave_link_init(struct ata_port *ap) in ata_slave_link_init() 908 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_store() 947 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_show() 1160 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_store() 1171 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_show() 1186 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_type_show() 1327 struct ata_port *ap) in ata_sas_device_configure() 1372 int sata_async_notification(struct ata_port *ap) in sata_async_notification() 1507 struct ata_port *ap = dev->link->ap; in ata_eh_get_ncq_success_sense() [all …]
|
H A D | pata_it821x.c | 126 static void it821x_program(struct ata_port *ap, struct ata_device *adev, u16 timing) in it821x_program() 185 static void it821x_clock_strategy(struct ata_port *ap, struct ata_device *adev) in it821x_clock_strategy() 347 struct ata_port *ap = qc->ap; in it821x_passthru_bmdma_start() 370 struct ata_port *ap = qc->ap; in it821x_passthru_bmdma_stop() 389 static void it821x_passthru_dev_select(struct ata_port *ap, in it821x_passthru_dev_select() 579 struct ata_port *ap = qc->ap; in it821x_check_atapi_dma() 606 static void it821x_display_disk(struct ata_port *ap, int n, u8 *buf) in it821x_display_disk() 659 static u8 *it821x_firmware_command(struct ata_port *ap, u8 cmd, int len) in it821x_firmware_command() 704 static void it821x_probe_firmware(struct ata_port *ap) in it821x_probe_firmware() 738 static int it821x_port_start(struct ata_port *ap) in it821x_port_start() [all …]
|