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()
167 hwif->name, ctl, in tx4939ide_check_error_ints()
176 ide_hwif_t *hwif; in tx4939ide_clear_irq() local
186 hwif = drive->hwif; in tx4939ide_clear_irq()
187 base = TX4939IDE_BASE(hwif); in tx4939ide_clear_irq()
188 ctl = tx4939ide_check_error_ints(hwif); in tx4939ide_clear_irq()
192 static u8 tx4939ide_cable_detect(ide_hwif_t *hwif) in tx4939ide_cable_detect() argument
194 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_cable_detect()
203 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_host_set() local
205 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_host_set()
237 ide_hwif_t *hwif = drive->hwif; in tx4939ide_build_dmatable() local
238 u32 *table = (u32 *)hwif->dmatable_cpu; in tx4939ide_build_dmatable()
243 for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) { in tx4939ide_build_dmatable()
290 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_setup() local
291 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_setup()
299 tx4939ide_writel(hwif->dmatable_dma, base, TX4939IDE_PRD_Ptr); in tx4939ide_dma_setup()
317 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_end() local
319 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_end()
345 ide_hwif_t *hwif = drive->hwif; in tx4939ide_dma_test_irq() local
346 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_test_irq()
351 ctl = tx4939ide_check_error_ints(hwif); in tx4939ide_dma_test_irq()
369 hwif->name, dma_stat, ctl); in tx4939ide_dma_test_irq()
383 static u8 tx4939ide_dma_sff_read_status(ide_hwif_t *hwif) in tx4939ide_dma_sff_read_status() argument
385 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_dma_sff_read_status()
393 static void tx4939ide_init_hwif(ide_hwif_t *hwif) in tx4939ide_init_hwif() argument
395 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_init_hwif()
411 static int tx4939ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) in tx4939ide_init_dma() argument
413 hwif->dma_base = in tx4939ide_init_dma()
414 hwif->extra_base + tx4939ide_swizzleb(TX4939IDE_DMA_Cmd); in tx4939ide_init_dma()
419 return ide_allocate_dma_engine(hwif); in tx4939ide_init_dma()
424 ide_hwif_t *hwif = drive->hwif; in tx4939ide_tf_load_fixup() local
425 void __iomem *base = TX4939IDE_BASE(hwif); in tx4939ide_tf_load_fixup()
426 u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0); in tx4939ide_tf_load_fixup()
452 unsigned long port = drive->hwif->io_ports.data_addr; in tx4939ide_input_data_swap()
464 unsigned long port = drive->hwif->io_ports.data_addr; in tx4939ide_output_data_swap()
609 ide_hwif_t *hwif = host->ports[0]; in tx4939ide_resume() local
611 tx4939ide_init_hwif(hwif); in tx4939ide_resume()