• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

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;
319 ide_hwif_t *hwif = drive->hwif;
320 struct pci_dev *dev = to_pci_dev(hwif->dev);
321 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
322 u8 unit = drive->dn & 1, channel = hwif->channel, conf;
350 ide_hwif_t *hwif = drive->hwif;
351 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
372 ide_hwif_t *hwif = drive->hwif;
373 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
384 * @hwif: port
390 static void it821x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
407 * @hwif: interface to check
414 static u8 it821x_cable_detect(ide_hwif_t *hwif)
423 struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif);
502 * init_hwif_it821x - set up hwif structs
503 * @hwif: interface to set up
510 static void __devinit init_hwif_it821x(ide_hwif_t *hwif)
512 struct pci_dev *dev = to_pci_dev(hwif->dev);
515 struct it821x_dev *idev = itdevs + hwif->channel;
518 ide_set_hwifdata(hwif, idev);
523 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
526 hwif->rqsize = 256;
530 if (conf & (1 << (1 + hwif->channel)))
545 hwif->host_flags |= IDE_HFLAG_NO_ATAPI_DMA;
553 hwif->dma_ops = &it821x_pass_through_dma_ops;
555 hwif->host_flags |= IDE_HFLAG_NO_SET_MODE;
557 if (hwif->dma_base == 0)
560 hwif->ultra_mask = ATA_UDMA6;
561 hwif->mwdma_mask = ATA_MWDMA2;
566 hwif->ultra_mask = 0;