Lines Matching refs:adev
67 * @adev: Device whose timings we are configuring
75 static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev)
77 unsigned int pio = adev->pio_mode - XFER_PIO_0;
97 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */
100 if (adev->class != ATA_DEV_ATA)
106 if (adev->devno == 0) {
131 * @adev: Device to program
140 static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev)
144 u8 speed = adev->dma_mode;
145 int devid = adev->devno;
159 unsigned int udma = adev->dma_mode - XFER_UDMA_0;
192 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0;
205 if (adev->pio_mode < needed_pio[mwdma])