/linux-3.4.99/include/linux/ |
D | libata.h | 492 struct ata_port; 552 struct ata_port *simplex_claimed; /* channel owning the DMA */ 553 struct ata_port *ports[0]; 557 struct ata_port *ap; 707 struct ata_port *ap; 732 struct ata_port { struct 829 int (*cable_detect)(struct ata_port *ap); argument 831 void (*set_piomode)(struct ata_port *ap, struct ata_device *dev); 832 void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev); 838 void (*freeze)(struct ata_port *ap); [all …]
|
/linux-3.4.99/drivers/ata/ |
D | libata.h | 63 extern void ata_force_cbl(struct ata_port *ap); 101 extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp); 105 extern struct ata_port *ata_port_alloc(struct ata_host *host); 107 extern int ata_port_probe(struct ata_port *ap); 108 extern void __ata_port_probe(struct ata_port *ap); 114 extern void ata_acpi_associate_sata_port(struct ata_port *ap); 117 extern int ata_acpi_on_suspend(struct ata_port *ap); 118 extern void ata_acpi_on_resume(struct ata_port *ap); 121 extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); 123 static inline void ata_acpi_associate_sata_port(struct ata_port *ap) { } in ata_acpi_associate_sata_port() [all …]
|
D | sata_promise.c | 157 static int pdc_common_port_start(struct ata_port *ap); 158 static int pdc_sata_port_start(struct ata_port *ap); 160 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 161 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 164 static void pdc_irq_clear(struct ata_port *ap); 166 static void pdc_freeze(struct ata_port *ap); 167 static void pdc_sata_freeze(struct ata_port *ap); 168 static void pdc_thaw(struct ata_port *ap); 169 static void pdc_sata_thaw(struct ata_port *ap); 174 static void pdc_error_handler(struct ata_port *ap); [all …]
|
D | libahci.c | 61 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, 73 static int ahci_port_start(struct ata_port *ap); 74 static void ahci_port_stop(struct ata_port *ap); 77 static void ahci_freeze(struct ata_port *ap); 78 static void ahci_thaw(struct ata_port *ap); 79 static void ahci_enable_fbs(struct ata_port *ap); 80 static void ahci_disable_fbs(struct ata_port *ap); 81 static void ahci_pmp_attach(struct ata_port *ap); [all …]
|
D | pata_amd.c | 43 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 …]
|
D | libata-sff.c | 84 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 …]
|
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() 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()
|
D | pata_hpt3x2n.c | 104 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 …]
|
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() 320 struct ata_port *ap = link->ap; in optidma_set_mode()
|
D | sata_nv.c | 311 static void nv_nf2_freeze(struct ata_port *ap); 312 static void nv_nf2_thaw(struct ata_port *ap); 313 static void nv_ck804_freeze(struct ata_port *ap); 314 static void nv_ck804_thaw(struct ata_port *ap); 320 static void nv_adma_irq_clear(struct ata_port *ap); 321 static int nv_adma_port_start(struct ata_port *ap); 322 static void nv_adma_port_stop(struct ata_port *ap); 324 static int nv_adma_port_suspend(struct ata_port *ap, pm_message_t mesg); 325 static int nv_adma_port_resume(struct ata_port *ap); 327 static void nv_adma_freeze(struct ata_port *ap); [all …]
|
D | sata_sil24.c | 342 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); 358 static int sil24_port_resume(struct ata_port *ap); 466 static unsigned long sil24_port_offset(struct ata_port *ap) in sil24_port_offset() 471 static void __iomem *sil24_port_base(struct ata_port *ap) in sil24_port_base() 486 static void sil24_read_tf(struct ata_port *ap, int tag, struct ata_taskfile *tf) in sil24_read_tf() [all …]
|
D | sata_qstor.c | 118 static int qs_port_start(struct ata_port *ap); 123 static void qs_freeze(struct ata_port *ap); 124 static void qs_thaw(struct ata_port *ap); 126 static void qs_error_handler(struct ata_port *ap); 188 static inline void qs_enter_reg_mode(struct ata_port *ap) in qs_enter_reg_mode() 198 static inline void qs_reset_channel_logic(struct ata_port *ap) in qs_reset_channel_logic() 207 static void qs_freeze(struct ata_port *ap) in qs_freeze() 215 static void qs_thaw(struct ata_port *ap) in qs_thaw() 225 struct ata_port *ap = link->ap; in qs_prereset() 239 static void qs_error_handler(struct ata_port *ap) in qs_error_handler() [all …]
|
D | pdc_adma.c | 134 static int adma_port_start(struct ata_port *ap); 135 static void adma_port_stop(struct ata_port *ap); 139 static void adma_freeze(struct ata_port *ap); 140 static void adma_thaw(struct ata_port *ap); 194 static void adma_reset_engine(struct ata_port *ap) in adma_reset_engine() 205 static void adma_reinit_engine(struct ata_port *ap) in adma_reinit_engine() 233 static inline void adma_enter_reg_mode(struct ata_port *ap) in adma_enter_reg_mode() 241 static void adma_freeze(struct ata_port *ap) in adma_freeze() 256 static void adma_thaw(struct ata_port *ap) in adma_thaw() 263 struct ata_port *ap = link->ap; in adma_prereset() [all …]
|
D | pata_scc.c | 186 static void scc_set_piomode (struct ata_port *ap, struct ata_device *adev) in scc_set_piomode() 219 static void scc_set_dmamode (struct ata_port *ap, struct ata_device *adev) in scc_set_dmamode() 278 static void scc_tf_load (struct ata_port *ap, const struct ata_taskfile *tf) in scc_tf_load() 332 static u8 scc_check_status (struct ata_port *ap) in scc_check_status() 345 static void scc_tf_read (struct ata_port *ap, struct ata_taskfile *tf) in scc_tf_read() 377 static void scc_exec_command (struct ata_port *ap, in scc_exec_command() 391 static u8 scc_check_altstatus (struct ata_port *ap) in scc_check_altstatus() 404 static void scc_dev_select (struct ata_port *ap, unsigned int device) in scc_dev_select() 423 static void scc_set_devctl(struct ata_port *ap, u8 ctl) in scc_set_devctl() 437 struct ata_port *ap = qc->ap; in scc_bmdma_setup() [all …]
|
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() 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()
|
D | pata_acpi.c | 40 struct ata_port *ap = link->ap; in pacpi_pre_reset() 55 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect() 74 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes() 113 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode() 136 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode() 170 struct ata_port *ap = qc->ap; in pacpi_qc_issue() 193 static int pacpi_port_start(struct ata_port *ap) in pacpi_port_start()
|
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()
|
D | libata-acpi.c | 63 void ata_acpi_associate_sata_port(struct ata_port *ap) in ata_acpi_associate_sata_port() 86 static void ata_acpi_associate_ide_port(struct ata_port *ap) in ata_acpi_associate_ide_port() 109 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device() 142 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug() 186 struct ata_port *ap = data; in ata_acpi_ap_notify_dock() 191 static void ata_acpi_uevent(struct ata_port *ap, struct ata_device *dev, in ata_acpi_uevent() 256 struct ata_port *ap = host->ports[i]; in ata_acpi_associate() 299 struct ata_port *ap = host->ports[i]; in ata_acpi_dissociate() 320 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm) in ata_acpi_gtm() 376 int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm) in ata_acpi_stm() [all …]
|
D | pata_atiixp.c | 36 static int atiixp_cable_detect(struct ata_port *ap) in atiixp_cable_detect() 67 struct ata_port *ap = link->ap; in atiixp_prereset() 86 static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio) in atiixp_set_pio_timing() 116 static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_piomode() 133 static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev) in atiixp_set_dmamode() 197 struct ata_port *ap = qc->ap; in atiixp_bmdma_start() 226 struct ata_port *ap = qc->ap; in atiixp_bmdma_stop()
|
D | pata_octeon_cf.c | 43 struct ata_port *ap; 93 static void octeon_cf_set_piomode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_piomode() 175 static void octeon_cf_set_dmamode(struct ata_port *ap, struct ata_device *dev) in octeon_cf_set_dmamode() 254 struct ata_port *ap = dev->link->ap; in octeon_cf_data_xfer8() 293 struct ata_port *ap = dev->link->ap; in octeon_cf_data_xfer16() 338 static void octeon_cf_tf_read16(struct ata_port *ap, struct ata_taskfile *tf) in octeon_cf_tf_read16() 382 static u8 octeon_cf_check_status16(struct ata_port *ap) in octeon_cf_check_status16() 394 struct ata_port *ap = link->ap; in octeon_cf_softreset16() 422 static void octeon_cf_tf_load16(struct ata_port *ap, in octeon_cf_tf_load16() 460 static void octeon_cf_dev_select(struct ata_port *ap, unsigned int device) in octeon_cf_dev_select() [all …]
|
D | sata_via.c | 82 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf); 83 static void svia_noop_freeze(struct ata_port *ap); 86 static int vt6421_pata_cable_detect(struct ata_port *ap); 87 static void vt6421_set_pio_mode(struct ata_port *ap, struct ata_device *adev); 88 static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev); 292 static void svia_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) in svia_tf_load() 304 static void svia_noop_freeze(struct ata_port *ap) in svia_noop_freeze() 335 struct ata_port *ap = link->ap; in vt6420_prereset() 385 struct ata_port *ap = qc->ap; in vt6420_bmdma_start() 394 static int vt6421_pata_cable_detect(struct ata_port *ap) in vt6421_pata_cable_detect() [all …]
|
D | sata_sx4.c | 218 static void pdc_error_handler(struct ata_port *ap); 219 static void pdc_freeze(struct ata_port *ap); 220 static void pdc_thaw(struct ata_port *ap); 221 static int pdc_port_start(struct ata_port *ap); 223 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 224 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf); 237 static void pdc20621_irq_clear(struct ata_port *ap); 300 static int pdc_port_start(struct ata_port *ap) in pdc_port_start() 459 struct ata_port *ap = qc->ap; in pdc20621_dma_prep() 519 struct ata_port *ap = qc->ap; in pdc20621_nodata_prep() [all …]
|
D | libata-scsi.c | 64 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() 146 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_lpm_show() 162 struct ata_port *ap; in ata_scsi_park_show() 202 struct ata_port *ap; in ata_scsi_park_store() 270 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_store() 281 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_show() 296 struct ata_port *ap = ata_shost_to_port(shost); in ata_scsi_em_message_type_show() 309 struct ata_port *ap = ata_shost_to_port(sdev->host); in ata_scsi_activity_show() [all …]
|
D | pata_sis.c | 101 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 …]
|
D | sata_sil.c | 127 static void sil_freeze(struct ata_port *ap); 128 static void sil_thaw(struct ata_port *ap); 270 struct ata_port *ap = qc->ap; in sil_bmdma_stop() 283 struct ata_port *ap = qc->ap; in sil_bmdma_setup() 296 struct ata_port *ap = qc->ap; in sil_bmdma_start() 313 struct ata_port *ap = qc->ap; in sil_fill_sg() 363 struct ata_port *ap = link->ap; in sil_set_mode() 393 static inline void __iomem *sil_scr_addr(struct ata_port *ap, in sil_scr_addr() 435 static void sil_host_intr(struct ata_port *ap, u32 bmdma2) in sil_host_intr() 532 struct ata_port *ap = host->ports[i]; in sil_interrupt() [all …]
|