Lines Matching refs:hwif

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