Lines Matching refs:hwif

70 	if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_BLACKLIST) == 0)  in ide_get_best_pio_mode()
116 if (pio == 0 && (drive->hwif->port_flags & IDE_PFLAG_PROBING)) in ide_pio_need_iordy()
124 ide_hwif_t *hwif = drive->hwif; in ide_set_pio_mode() local
125 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio_mode()
127 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_pio_mode()
139 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
143 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_pio_mode()
147 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
151 port_ops->set_pio_mode(hwif, drive); in ide_set_pio_mode()
158 ide_hwif_t *hwif = drive->hwif; in ide_set_dma_mode() local
159 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_dma_mode()
161 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) in ide_set_dma_mode()
167 if (hwif->host_flags & IDE_HFLAG_POST_SET_MODE) { in ide_set_dma_mode()
171 port_ops->set_dma_mode(hwif, drive); in ide_set_dma_mode()
175 port_ops->set_dma_mode(hwif, drive); in ide_set_dma_mode()
184 ide_hwif_t *hwif = drive->hwif; in ide_set_pio() local
185 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_pio()
189 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in ide_set_pio()
192 BUG_ON(hwif->pio_mask == 0x00); in ide_set_pio()
194 host_pio = fls(hwif->pio_mask) - 1; in ide_set_pio()
224 ide_hwif_t *hwif = drive->hwif; in ide_rate_filter() local
228 if (hwif->pio_mask) in ide_rate_filter()
229 mode = fls(hwif->pio_mask) - 1 + XFER_PIO_0; in ide_rate_filter()
251 ide_hwif_t *hwif = drive->hwif; in ide_set_xfer_rate() local
252 const struct ide_port_ops *port_ops = hwif->port_ops; in ide_set_xfer_rate()
255 (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)) in ide_set_xfer_rate()