Lines Matching full:pio
74 * efar_set_piomode - Initialize host controller PATA PIO timings
78 * Set PIO mode for device, in host controller PCI config space.
86 unsigned int pio = adev->pio_mode - XFER_PIO_0; in efar_set_piomode() local
106 if (pio > 1) in efar_set_piomode()
108 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */ in efar_set_piomode()
122 master_data |= (timings[pio][0] << 12) | in efar_set_piomode()
123 (timings[pio][1] << 8); in efar_set_piomode()
134 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << shift; in efar_set_piomode()
193 * MWDMA is driven by the PIO timings. We must also enable in efar_set_dmamode()
195 * been set when the PIO timing was set. in efar_set_dmamode()
203 int pio = needed_pio[mwdma] - XFER_PIO_0; in efar_set_dmamode() local
207 /* If the drive MWDMA is faster than it can do PIO then in efar_set_dmamode()
208 we must force PIO into PIO0 */ in efar_set_dmamode()
212 control |= 8; /* PIO cycles in PIO0 */ in efar_set_dmamode()
220 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in efar_set_dmamode()
227 (timings[pio][0] << 12) | in efar_set_dmamode()
228 (timings[pio][1] << 8); in efar_set_dmamode()