• 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

32 	const struct ide_port_ops *port_ops = drive->hwif->port_ops;
42 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR);
108 ide_hwif_t *hwif = drive->hwif;
109 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
115 stat = tp_ops->read_status(hwif);
121 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) {
128 stat = tp_ops->read_status(hwif);
148 stat = tp_ops->read_status(hwif);
230 ide_hwif_t *hwif = drive->hwif;
234 if (hwif->cbl == ATA_CBL_SATA || hwif->cbl == ATA_CBL_PATA40_SHORT)
244 if (hwif->cbl != ATA_CBL_PATA80 && !ivb)
258 if (hwif->cbl == ATA_CBL_PATA80)
273 hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host");
338 ide_hwif_t *hwif = drive->hwif;
339 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
346 if (hwif->dma_ops) /* check if host supports DMA */
347 hwif->dma_ops->dma_host_set(drive, 0);
365 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS);
373 tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES);
376 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS);
401 hwif->dma_ops->dma_host_set(drive, 1);
402 else if (hwif->dma_ops) /* check if host supports DMA */
441 ide_hwif_t *hwif = drive->hwif;
443 BUG_ON(hwif->handler);
444 hwif->handler = handler;
445 hwif->timer.expires = jiffies + timeout;
446 hwif->req_gen_timer = hwif->req_gen;
447 add_timer(&hwif->timer);
453 ide_hwif_t *hwif = drive->hwif;
456 spin_lock_irqsave(&hwif->lock, flags);
458 spin_unlock_irqrestore(&hwif->lock, flags);
478 ide_hwif_t *hwif = drive->hwif;
481 spin_lock_irqsave(&hwif->lock, flags);
486 hwif->tp_ops->exec_command(hwif, cmd->tf.command);
488 spin_unlock_irqrestore(&hwif->lock, flags);
492 * ide_wait_not_busy() waits for the currently selected device on the hwif
495 int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout)
505 stat = hwif->tp_ops->read_status(hwif);