Lines Matching refs:hwif

554 	ide_hwif_t *hwif	= drive->hwif;  in hpt3xx_udma_filter()  local
555 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_udma_filter()
556 u8 mask = hwif->ultra_mask; in hpt3xx_udma_filter()
594 ide_hwif_t *hwif = drive->hwif; in hpt3xx_mdma_filter() local
595 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_mdma_filter()
627 static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_mode() argument
629 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_set_mode()
630 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_set_mode()
651 static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_pio_mode() argument
654 hpt3xx_set_mode(hwif, drive); in hpt3xx_set_pio_mode()
659 ide_hwif_t *hwif = drive->hwif; in hpt3xx_maskproc() local
660 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_maskproc()
661 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_maskproc()
678 disable_irq(hwif->irq); in hpt3xx_maskproc()
680 enable_irq(hwif->irq); in hpt3xx_maskproc()
689 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in hpt366_dma_lost_irq()
704 ide_hwif_t *hwif = drive->hwif; in hpt370_clear_engine() local
705 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt370_clear_engine()
707 pci_write_config_byte(dev, hwif->select_data, 0x37); in hpt370_clear_engine()
713 ide_hwif_t *hwif = drive->hwif; in hpt370_irq_timeout() local
714 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt370_irq_timeout()
718 pci_read_config_word(dev, hwif->select_data + 2, &bfifo); in hpt370_irq_timeout()
722 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in hpt370_irq_timeout()
724 outb(dma_cmd & ~ATA_DMA_START, hwif->dma_base + ATA_DMA_CMD); in hpt370_irq_timeout()
738 ide_hwif_t *hwif = drive->hwif; in hpt370_dma_end() local
739 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt370_dma_end()
744 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt370_dma_end()
754 ide_hwif_t *hwif = drive->hwif; in hpt374_dma_test_irq() local
755 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt374_dma_test_irq()
759 pci_read_config_word(dev, hwif->select_data + 2, &bfifo); in hpt374_dma_test_irq()
765 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt374_dma_test_irq()
775 ide_hwif_t *hwif = drive->hwif; in hpt374_dma_end() local
776 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt374_dma_end()
777 u8 mcr = 0, mcr_addr = hwif->select_data; in hpt374_dma_end()
778 u8 bwsr = 0, mask = hwif->channel ? 0x02 : 0x01; in hpt374_dma_end()
795 static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) in hpt3xxn_set_clock() argument
797 unsigned long base = hwif->extra_base; in hpt3xxn_set_clock()
837 hpt3xxn_set_clock(drive->hwif, rq_data_dir(rq) ? 0x21 : 0x23); in hpt3xxn_rw_disk()
1150 static u8 hpt3xx_cable_detect(ide_hwif_t *hwif) in hpt3xx_cable_detect() argument
1152 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_cable_detect()
1153 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_cable_detect()
1155 u8 scr1 = 0, ata66 = hwif->channel ? 0x01 : 0x02; in hpt3xx_cable_detect()
1168 u8 mcr_addr = hwif->select_data + 2; in hpt3xx_cable_detect()
1196 static void init_hwif_hpt366(ide_hwif_t *hwif) in init_hwif_hpt366() argument
1198 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in init_hwif_hpt366()
1202 hwif->select_data = hwif->channel ? 0x54 : 0x50; in init_hwif_hpt366()
1215 hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; in init_hwif_hpt366()
1216 hwif->rw_disk = &hpt3xxn_rw_disk; in init_hwif_hpt366()
1220 static int init_dma_hpt366(ide_hwif_t *hwif, in init_dma_hpt366() argument
1223 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_dma_hpt366()
1224 unsigned long flags, base = ide_pci_dma_base(hwif, d); in init_dma_hpt366()
1230 hwif->dma_base = base; in init_dma_hpt366()
1232 if (ide_pci_check_simplex(hwif, d) < 0) in init_dma_hpt366()
1243 pci_read_config_byte(dev, hwif->channel ? 0x4b : 0x43, &masterdma); in init_dma_hpt366()
1244 pci_read_config_byte(dev, hwif->channel ? 0x4f : 0x47, &slavedma); in init_dma_hpt366()
1254 hwif->name, base, base + 7); in init_dma_hpt366()
1256 hwif->extra_base = base + (hwif->channel ? 8 : 16); in init_dma_hpt366()
1258 if (ide_allocate_dma_engine(hwif)) in init_dma_hpt366()