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