Lines Matching defs:unit

159 	int unit = adev->devno;
168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf);
189 u8 unit = adev->devno;
232 if (pair && itdev->udma[1-unit] != UDMA_OFF) {
233 it821x_program_udma(ap, pair, itdev->udma[1-unit]);
234 it821x_program(ap, pair, itdev->pio[1-unit]);
240 if (itdev->udma[unit] != UDMA_OFF) {
241 it821x_program_udma(ap, adev, itdev->udma[unit]);
242 it821x_program(ap, adev, itdev->pio[unit]);
262 int unit = adev->devno;
266 itdev->want[unit][1] = pio_want[mode_wanted];
267 itdev->want[unit][0] = 1; /* PIO is lowest priority */
268 itdev->pio[unit] = pio[mode_wanted];
270 it821x_program(ap, adev, itdev->pio[unit]);
295 int unit = adev->devno;
301 itdev->want[unit][1] = udma_want[mode_wanted];
302 itdev->want[unit][0] = 3; /* UDMA is high priority */
303 itdev->mwdma[unit] = MWDMA_OFF;
304 itdev->udma[unit] = udma[mode_wanted];
306 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */
313 conf &= ~ (1 << (3 + 2 * channel + unit));
316 it821x_program_udma(ap, adev, itdev->udma[unit]);
320 itdev->want[unit][1] = mwdma_want[mode_wanted];
321 itdev->want[unit][0] = 2; /* MWDMA is low priority */
322 itdev->mwdma[unit] = dma[mode_wanted];
323 itdev->udma[unit] = UDMA_OFF;
330 conf |= 1 << (3 + 2 * channel + unit);
350 int unit = adev->devno;
352 if (itdev->mwdma[unit] != MWDMA_OFF)
353 it821x_program(ap, adev, itdev->mwdma[unit]);
354 else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10)
355 it821x_program_udma(ap, adev, itdev->udma[unit]);
373 int unit = adev->devno;
376 if (itdev->mwdma[unit] != MWDMA_OFF)
377 it821x_program(ap, adev, itdev->pio[unit]);