Lines Matching refs:hwif

67 	ide_hwif_t			*hwif;  member
409 ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x)))
418 ide_hwif_t *hwif = drive->hwif; in pmac_ide_apply_timings() local
419 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_apply_timings()
435 ide_hwif_t *hwif = drive->hwif; in pmac_ide_kauai_apply_timings() local
436 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_kauai_apply_timings()
454 ide_hwif_t *hwif = drive->hwif; in pmac_ide_do_update_timings() local
455 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_do_update_timings()
470 (void __iomem *)drive->hwif->io_ports.device_addr); in pmac_dev_select()
478 (void __iomem *)drive->hwif->io_ports.device_addr); in pmac_kauai_dev_select()
481 static void pmac_exec_command(ide_hwif_t *hwif, u8 cmd) in pmac_exec_command() argument
483 writeb(cmd, (void __iomem *)hwif->io_ports.command_addr); in pmac_exec_command()
484 (void)readl((void __iomem *)(hwif->io_ports.data_addr in pmac_exec_command()
488 static void pmac_write_devctl(ide_hwif_t *hwif, u8 ctl) in pmac_write_devctl() argument
490 writeb(ctl, (void __iomem *)hwif->io_ports.ctl_addr); in pmac_write_devctl()
491 (void)readl((void __iomem *)(hwif->io_ports.data_addr in pmac_write_devctl()
498 static void pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pmac_ide_set_pio_mode() argument
500 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_pio_mode()
778 static void pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pmac_ide_set_dma_mode() argument
780 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_dma_mode()
915 static u8 pmac_ide_cable_detect(ide_hwif_t *hwif) in pmac_ide_cable_detect() argument
917 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_cable_detect()
947 ide_hwif_t *hwif = drive->hwif; in pmac_ide_init_dev() local
948 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_init_dev()
1026 ide_hwif_t *hwif; in pmac_ide_setup_device() local
1082 hwif = pmif->hwif = host->ports[0]; in pmac_ide_setup_device()
1110 pmif->hwif = NULL; in pmac_ide_setup_device()
1362 if (!pmif->hwif->present) in pmac_ide_macio_mb_event()
1363 ide_port_scan(pmif->hwif); in pmac_ide_macio_mb_event()
1366 if (pmif->hwif->present) in pmac_ide_macio_mb_event()
1367 ide_port_unregister_devices(pmif->hwif); in pmac_ide_macio_mb_event()
1459 ide_hwif_t *hwif = drive->hwif; in pmac_ide_build_dmatable() local
1460 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_build_dmatable()
1476 sg = hwif->sg_table; in pmac_ide_build_dmatable()
1521 writel(hwif->dmatable_dma, &dma->cmdptr); in pmac_ide_build_dmatable()
1536 ide_hwif_t *hwif = drive->hwif; in pmac_ide_dma_setup() local
1537 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_setup()
1561 ide_hwif_t *hwif = drive->hwif; in pmac_ide_dma_start() local
1562 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_start()
1578 ide_hwif_t *hwif = drive->hwif; in pmac_ide_dma_end() local
1579 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_end()
1602 ide_hwif_t *hwif = drive->hwif; in pmac_ide_dma_test_irq() local
1603 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_test_irq()
1642 hwif->index); in pmac_ide_dma_test_irq()
1656 ide_hwif_t *hwif = drive->hwif; in pmac_ide_dma_lost_irq() local
1657 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_lost_irq()
1677 static int pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d) in pmac_ide_init_dma() argument
1679 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_init_dma()
1680 struct pci_dev *dev = to_pci_dev(hwif->dev); in pmac_ide_init_dma()
1694 &hwif->dmatable_dma, GFP_KERNEL); in pmac_ide_init_dma()
1697 hwif->name); in pmac_ide_init_dma()
1701 hwif->sg_max_nents = MAX_DCMDS; in pmac_ide_init_dma()