Lines Matching refs:adev
62 static void winbond_set_piomode(struct ata_port *ap, struct ata_device *adev)
68 int timing = 0x88 + (ap->port_no * 4) + (adev->devno * 2);
74 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000);
76 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000);
86 if (adev->class != ATA_DEV_ATA)
88 if (!ata_pio_need_iordy(adev))
95 static void winbond_data_xfer(struct ata_device *adev, unsigned char *buf, unsigned int buflen, int write_data)
97 struct ata_port *ap = adev->ap;
100 if (ata_id_has_dword_io(adev->id)) {
119 ata_data_xfer(adev, buf, buflen, write_data);