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)
264 if (hwif->cbl == ATA_CBL_PATA80)
279 hwif->cbl == ATA_CBL_PATA80 ? "drive" : "host");
344 ide_hwif_t *hwif = drive->hwif;
345 const struct ide_tp_ops *tp_ops = hwif->tp_ops;
352 if (hwif->dma_ops) /* check if host supports DMA */
353 hwif->dma_ops->dma_host_set(drive, 0);
371 tp_ops->write_devctl(hwif, ATA_NIEN | ATA_DEVCTL_OBS);
379 tp_ops->exec_command(hwif, ATA_CMD_SET_FEATURES);
382 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS);
407 hwif->dma_ops->dma_host_set(drive, 1);
408 else if (hwif->dma_ops) /* check if host supports DMA */
447 ide_hwif_t *hwif = drive->hwif;
449 BUG_ON(hwif->handler);
450 hwif->handler = handler;
451 hwif->timer.expires = jiffies + timeout;
452 hwif->req_gen_timer = hwif->req_gen;
453 add_timer(&hwif->timer);
459 ide_hwif_t *hwif = drive->hwif;
462 spin_lock_irqsave(&hwif->lock, flags);
464 spin_unlock_irqrestore(&hwif->lock, flags);
484 ide_hwif_t *hwif = drive->hwif;
487 spin_lock_irqsave(&hwif->lock, flags);
492 hwif->tp_ops->exec_command(hwif, cmd->tf.command);
500 spin_unlock_irqrestore(&hwif->lock, flags);
504 * ide_wait_not_busy() waits for the currently selected device on the hwif
507 int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout)
517 stat = hwif->tp_ops->read_status(hwif);