Lines Matching refs:hwif
105 #define TX4939IDE_BASE(hwif) ((void __iomem *)(hwif)->extra_base) argument
107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_pio_mode() argument
124 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_pio_mode()
128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_dma_mode() argument
145 hwif->select_data = (hwif->select_data & ~mask) | val; in tx4939ide_set_dma_mode()
149 static u16 tx4939ide_check_error_ints(ide_hwif_t *hwif) in tx4939ide_check_error_ints() argument
151 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_check_error_ints()
166 hwif->name, ctl, in tx4939ide_check_error_ints()
175 ide_hwif_t *hwif; in tx4939ide_clear_irq() local
185 hwif = drive->hwif; in tx4939ide_clear_irq()
186 base = TX4939IDE_BASE(hwif); in tx4939ide_clear_irq()
187 ctl = tx4939ide_check_error_ints(hwif); in tx4939ide_clear_irq()
191 static u8 tx4939ide_cable_detect(ide_hwif_t *hwif) in tx4939ide_cable_detect() argument
193 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_cable_detect()
202 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_host_set() local
204 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_host_set()
236 ide_hwif_t *hwif = drive->hwif; in tx4939ide_build_dmatable() local
237 u32 *table = (u32 *)hwif->dmatable_cpu; in tx4939ide_build_dmatable()
242 for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { in tx4939ide_build_dmatable()
289 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_setup() local
290 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_setup()
298 tx4939ide_writel(hwif->dmatable_dma, base, TX4939IDE_PRD_Ptr); in tx4939ide_dma_setup()
316 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_end() local
318 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_end()
344 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_test_irq() local
345 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_test_irq()
350 ctl = tx4939ide_check_error_ints(hwif); in tx4939ide_dma_test_irq()
368 hwif->name, dma_stat, ctl); in tx4939ide_dma_test_irq()
382 static u8 tx4939ide_dma_sff_read_status(ide_hwif_t *hwif) in tx4939ide_dma_sff_read_status() argument
384 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_sff_read_status()
392 static void tx4939ide_init_hwif(ide_hwif_t *hwif) in tx4939ide_init_hwif() argument
394 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_init_hwif()
409 static int tx4939ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) in tx4939ide_init_dma() argument
411 hwif->dma_base = in tx4939ide_init_dma()
412 hwif->extra_base + tx4939ide_swizzleb(TX4939IDE_DMA_Cmd); in tx4939ide_init_dma()
417 return ide_allocate_dma_engine(hwif); in tx4939ide_init_dma()
422 ide_hwif_t *hwif = drive->hwif; in tx4939ide_tf_load_fixup() local
423 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_tf_load_fixup()
424 u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0); in tx4939ide_tf_load_fixup()
450 unsigned long port = drive->hwif->io_ports.data_addr; in tx4939ide_input_data_swap()
462 unsigned long port = drive->hwif->io_ports.data_addr; in tx4939ide_output_data_swap()
607 ide_hwif_t *hwif = host->ports[0]; in tx4939ide_resume() local
609 tx4939ide_init_hwif(hwif); in tx4939ide_resume()