Lines Matching refs:unit

144 	u8 unit = drive->dn & 1, conf;
153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf);
175 u8 unit = drive->dn & 1, v;
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) {
217 it821x_program_udma(pair, itdev->udma[1-unit]);
218 it821x_program(pair, itdev->pio[1-unit]);
224 if(itdev->udma[unit] != UDMA_OFF) {
225 it821x_program_udma(drive, itdev->udma[unit]);
226 it821x_program(drive, itdev->pio[unit]);
244 u8 unit = drive->dn & 1, set_pio = pio;
263 itdev->want[unit][1] = pio_want[set_pio];
264 itdev->want[unit][0] = 1; /* PIO is lowest priority */
265 itdev->pio[unit] = pio_timings[set_pio];
267 it821x_program(drive, itdev->pio[unit]);
286 u8 unit = drive->dn & 1, channel = hwif->channel, conf;
291 itdev->want[unit][1] = mwdma_want[mode_wanted];
292 itdev->want[unit][0] = 2; /* MWDMA is low priority */
293 itdev->mwdma[unit] = dma[mode_wanted];
294 itdev->udma[unit] = UDMA_OFF;
301 conf |= 1 << (3 + 2 * channel + unit);
306 /* it821x_program(drive, itdev->mwdma[unit]); */
323 u8 unit = drive->dn & 1, channel = hwif->channel, conf;
328 itdev->want[unit][1] = udma_want[mode_wanted];
329 itdev->want[unit][0] = 3; /* UDMA is high priority */
330 itdev->mwdma[unit] = MWDMA_OFF;
331 itdev->udma[unit] = udma[mode_wanted];
333 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */
340 conf &= ~ (1 << (3 + 2 * channel + unit));
344 it821x_program_udma(drive, itdev->udma[unit]);
365 u8 unit = drive->dn & 1;
367 if(itdev->mwdma[unit] != MWDMA_OFF)
368 it821x_program(drive, itdev->mwdma[unit]);
369 else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10)
370 it821x_program_udma(drive, itdev->udma[unit]);
388 u8 unit = drive->dn & 1;
390 if(itdev->mwdma[unit] != MWDMA_OFF)
391 it821x_program(drive, itdev->pio[unit]);