Lines Matching refs:hwif

114 	ide_hwif_t *hwif = drive->hwif;  in it821x_program()  local
115 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program()
116 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program()
117 int channel = hwif->channel; in it821x_program()
140 ide_hwif_t *hwif = drive->hwif; in it821x_program_udma() local
141 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_program_udma()
142 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program_udma()
143 int channel = hwif->channel; in it821x_program_udma()
170 ide_hwif_t *hwif = drive->hwif; in it821x_clock_strategy() local
171 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_clock_strategy()
172 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_clock_strategy()
208 v &= ~(1 << (1 + hwif->channel)); in it821x_clock_strategy()
209 v |= sel << (1 + hwif->channel); in it821x_clock_strategy()
239 static void it821x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it821x_set_pio_mode() argument
241 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_set_pio_mode()
283 ide_hwif_t *hwif = drive->hwif; in it821x_tune_mwdma() local
284 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_tune_mwdma()
285 struct it821x_dev *itdev = (void *)ide_get_hwifdata(hwif); in it821x_tune_mwdma()
286 u8 unit = drive->dn & 1, channel = hwif->channel, conf; in it821x_tune_mwdma()
320 ide_hwif_t *hwif = drive->hwif; in it821x_tune_udma() local
321 struct pci_dev *dev = to_pci_dev(hwif->dev); in it821x_tune_udma()
322 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_tune_udma()
323 u8 unit = drive->dn & 1, channel = hwif->channel, conf; in it821x_tune_udma()
363 ide_hwif_t *hwif = drive->hwif; in it821x_dma_start() local
364 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_dma_start()
385 ide_hwif_t *hwif = drive->hwif; in it821x_dma_end() local
386 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_dma_end()
403 static void it821x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it821x_set_dma_mode() argument
427 static u8 it821x_cable_detect(ide_hwif_t *hwif) in it821x_cable_detect() argument
444 struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif); in it821x_quirkproc()
531 static void init_hwif_it821x(ide_hwif_t *hwif) in init_hwif_it821x() argument
533 struct pci_dev *dev = to_pci_dev(hwif->dev); in init_hwif_it821x()
536 struct it821x_dev *idev = itdevs + hwif->channel; in init_hwif_it821x()
539 ide_set_hwifdata(hwif, idev); in init_hwif_it821x()
544 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; in init_hwif_it821x()
547 hwif->rqsize = 256; in init_hwif_it821x()
551 if (conf & (1 << (1 + hwif->channel))) in init_hwif_it821x()
566 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA; in init_hwif_it821x()
574 hwif->dma_ops = &it821x_pass_through_dma_ops; in init_hwif_it821x()
576 hwif->host_flags |= IDE_HFLAG_NO_SET_MODE; in init_hwif_it821x()
578 if (hwif->dma_base == 0) in init_hwif_it821x()
581 hwif->ultra_mask = ATA_UDMA6; in init_hwif_it821x()
582 hwif->mwdma_mask = ATA_MWDMA2; in init_hwif_it821x()
587 hwif->ultra_mask = 0; in init_hwif_it821x()