Lines Matching refs:unit

160 	int unit = adev->devno;
169 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf);
190 u8 unit = adev->devno;
233 if (pair && itdev->udma[1-unit] != UDMA_OFF) {
234 it821x_program_udma(ap, pair, itdev->udma[1-unit]);
235 it821x_program(ap, pair, itdev->pio[1-unit]);
241 if (itdev->udma[unit] != UDMA_OFF) {
242 it821x_program_udma(ap, adev, itdev->udma[unit]);
243 it821x_program(ap, adev, itdev->pio[unit]);
263 int unit = adev->devno;
267 itdev->want[unit][1] = pio_want[mode_wanted];
268 itdev->want[unit][0] = 1; /* PIO is lowest priority */
269 itdev->pio[unit] = pio[mode_wanted];
271 it821x_program(ap, adev, itdev->pio[unit]);
296 int unit = adev->devno;
302 itdev->want[unit][1] = udma_want[mode_wanted];
303 itdev->want[unit][0] = 3; /* UDMA is high priority */
304 itdev->mwdma[unit] = MWDMA_OFF;
305 itdev->udma[unit] = udma[mode_wanted];
307 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */
314 conf &= ~ (1 << (3 + 2 * channel + unit));
317 it821x_program_udma(ap, adev, itdev->udma[unit]);
321 itdev->want[unit][1] = mwdma_want[mode_wanted];
322 itdev->want[unit][0] = 2; /* MWDMA is low priority */
323 itdev->mwdma[unit] = dma[mode_wanted];
324 itdev->udma[unit] = UDMA_OFF;
331 conf |= 1 << (3 + 2 * channel + unit);
351 int unit = adev->devno;
353 if (itdev->mwdma[unit] != MWDMA_OFF)
354 it821x_program(ap, adev, itdev->mwdma[unit]);
355 else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10)
356 it821x_program_udma(ap, adev, itdev->udma[unit]);
374 int unit = adev->devno;
377 if (itdev->mwdma[unit] != MWDMA_OFF)
378 it821x_program(ap, adev, itdev->pio[unit]);