Lines Matching refs:hwif
51 if (drive->hwif->dma_ops == NULL)
75 static int set_pio_mode_abuse(ide_hwif_t *hwif, u8 req_pio)
84 return (hwif->host_flags & IDE_HFLAG_ABUSE_DMA_MODES) ? 1 : 0;
87 return (hwif->host_flags & IDE_HFLAG_ABUSE_PREFETCH) ? 1 : 0;
90 return (hwif->host_flags & IDE_HFLAG_ABUSE_FAST_DEVSEL) ? 1 : 0;
98 ide_hwif_t *hwif = drive->hwif;
99 const struct ide_port_ops *port_ops = hwif->port_ops;
105 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE))
108 if (set_pio_mode_abuse(drive->hwif, arg)) {
115 spin_lock_irqsave(&hwif->lock, flags);
116 port_ops->set_pio_mode(hwif, drive);
117 spin_unlock_irqrestore(&hwif->lock, flags);
119 port_ops->set_pio_mode(hwif, drive);
125 if (hwif->host_flags & IDE_HFLAG_SET_PIO_MODE_KEEP_DMA) {