Lines Matching refs:hwif

71 	if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0)  in ide_get_best_pio_mode()
117 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy()
125 ide_hwif_t *hwif = drive->hwif; in ide_set_pio_mode() local
126 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio_mode()
128 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_pio_mode()
140 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
144 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_pio_mode()
148 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
152 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
159 ide_hwif_t *hwif = drive->hwif; in ide_set_dma_mode() local
160 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_dma_mode()
162 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_dma_mode()
168 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_dma_mode()
172 port_ops->set_dma_mode(hwif, drive); in ide_set_dma_mode()
176 port_ops->set_dma_mode(hwif, drive); in ide_set_dma_mode()
185 ide_hwif_t *hwif = drive->hwif; in ide_set_pio() local
186 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio()
190 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in ide_set_pio()
193 BUG_ON(hwif->pio_mask == 0x00); in ide_set_pio()
195 host_pio = fls(hwif->pio_mask) - 1; in ide_set_pio()
225 ide_hwif_t *hwif = drive->hwif; in ide_rate_filter() local
229 if (hwif->pio_mask) in ide_rate_filter()
230 mode = fls(hwif->pio_mask) - 1 + XFER_PIO_0; in ide_rate_filter()
252 ide_hwif_t *hwif = drive->hwif; in ide_set_xfer_rate() local
253 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_xfer_rate()
256 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in ide_set_xfer_rate()