Lines Matching refs:hwif

555 	ide_hwif_t *hwif	= drive->hwif;  in hpt3xx_udma_filter()  local
556 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_udma_filter()
557 u8 mask = hwif->ultra_mask; in hpt3xx_udma_filter()
595 ide_hwif_t *hwif = drive->hwif; in hpt3xx_mdma_filter() local
596 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_mdma_filter()
628 static void hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_mode() argument
630 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_set_mode()
631 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_set_mode()
652 static void hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in hpt3xx_set_pio_mode() argument
655 hpt3xx_set_mode(hwif, drive); in hpt3xx_set_pio_mode()
660 ide_hwif_t *hwif = drive->hwif; in hpt3xx_maskproc() local
661 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_maskproc()
662 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_maskproc()
679 disable_irq(hwif->irq); in hpt3xx_maskproc()
681 enable_irq(hwif->irq); in hpt3xx_maskproc()
690 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in hpt366_dma_lost_irq()
705 ide_hwif_t *hwif = drive->hwif; in hpt370_clear_engine() local
706 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt370_clear_engine()
708 pci_write_config_byte(dev, hwif->select_data, 0x37); in hpt370_clear_engine()
714 ide_hwif_t *hwif = drive->hwif; in hpt370_irq_timeout() local
715 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt370_irq_timeout()
719 pci_read_config_word(dev, hwif->select_data + 2, &bfifo); in hpt370_irq_timeout()
723 dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD); in hpt370_irq_timeout()
725 outb(dma_cmd & ~ATA_DMA_START, hwif->dma_base + ATA_DMA_CMD); in hpt370_irq_timeout()
739 ide_hwif_t *hwif = drive->hwif; in hpt370_dma_end() local
740 u8 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt370_dma_end()
745 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt370_dma_end()
755 ide_hwif_t *hwif = drive->hwif; in hpt374_dma_test_irq() local
756 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt374_dma_test_irq()
760 pci_read_config_word(dev, hwif->select_data + 2, &bfifo); in hpt374_dma_test_irq()
766 dma_stat = inb(hwif->dma_base + ATA_DMA_STATUS); in hpt374_dma_test_irq()
776 ide_hwif_t *hwif = drive->hwif; in hpt374_dma_end() local
777 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt374_dma_end()
778 u8 mcr = 0, mcr_addr = hwif->select_data; in hpt374_dma_end()
779 u8 bwsr = 0, mask = hwif->channel ? 0x02 : 0x01; in hpt374_dma_end()
796 static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) in hpt3xxn_set_clock() argument
798 unsigned long base = hwif->extra_base; in hpt3xxn_set_clock()
838 hpt3xxn_set_clock(drive->hwif, rq_data_dir(rq) ? 0x21 : 0x23); in hpt3xxn_rw_disk()
1151 static u8 hpt3xx_cable_detect(ide_hwif_t *hwif) in hpt3xx_cable_detect() argument
1153 struct pci_dev *dev = to_pci_dev(hwif->dev); in hpt3xx_cable_detect()
1154 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in hpt3xx_cable_detect()
1156 u8 scr1 = 0, ata66 = hwif->channel ? 0x01 : 0x02; in hpt3xx_cable_detect()
1169 u8 mcr_addr = hwif->select_data + 2; in hpt3xx_cable_detect()
1197 static void init_hwif_hpt366(ide_hwif_t *hwif) in init_hwif_hpt366() argument
1199 struct hpt_info *info = hpt3xx_get_info(hwif->dev); in init_hwif_hpt366()
1203 hwif->select_data = hwif->channel ? 0x54 : 0x50; in init_hwif_hpt366()
1216 hwif->host->host_flags |= IDE_HFLAG_SERIALIZE; in init_hwif_hpt366()
1217 hwif->rw_disk = &hpt3xxn_rw_disk; in init_hwif_hpt366()
1221 static int init_dma_hpt366(ide_hwif_t *hwif, in init_dma_hpt366() argument
1224 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_dma_hpt366()
1225 unsigned long flags, base = ide_pci_dma_base(hwif, d); in init_dma_hpt366()
1231 hwif->dma_base = base; in init_dma_hpt366()
1233 if (ide_pci_check_simplex(hwif, d) < 0) in init_dma_hpt366()
1244 pci_read_config_byte(dev, hwif->channel ? 0x4b : 0x43, &masterdma); in init_dma_hpt366()
1245 pci_read_config_byte(dev, hwif->channel ? 0x4f : 0x47, &slavedma); in init_dma_hpt366()
1255 hwif->name, base, base + 7); in init_dma_hpt366()
1257 hwif->extra_base = base + (hwif->channel ? 8 : 16); in init_dma_hpt366()
1259 if (ide_allocate_dma_engine(hwif)) in init_dma_hpt366()