Lines Matching full:pio
78 * rdc_set_piomode - Initialize host controller PATA PIO timings
82 * Set PIO mode for device, in host controller PCI config space.
90 unsigned int pio = adev->pio_mode - XFER_PIO_0; in rdc_set_piomode() local
108 if (pio >= 2) in rdc_set_piomode()
118 /* PIO configuration clears DTE unconditionally. It will be in rdc_set_piomode()
133 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) in rdc_set_piomode()
142 (timings[pio][0] << 12) | in rdc_set_piomode()
143 (timings[pio][1] << 8); in rdc_set_piomode()
160 * rdc_set_dmamode - Initialize host controller PATA PIO timings
228 * MWDMA is driven by the PIO timings. We must also enable in rdc_set_dmamode()
230 * been set when the PIO timing was set. in rdc_set_dmamode()
238 int pio = needed_pio[mwdma] - XFER_PIO_0; in rdc_set_dmamode() local
242 /* If the drive MWDMA is faster than it can do PIO then in rdc_set_dmamode()
243 we must force PIO into PIO0 */ in rdc_set_dmamode()
247 control |= 8; /* PIO cycles in PIO0 */ in rdc_set_dmamode()
255 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in rdc_set_dmamode()
262 (timings[pio][0] << 12) | in rdc_set_dmamode()
263 (timings[pio][1] << 8); in rdc_set_dmamode()