Home
last modified time | relevance | path

Searched refs:mode_wanted (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/drivers/ata/
Dpata_it821x.c264 int mode_wanted = adev->pio_mode - XFER_PIO_0; in it821x_passthru_set_piomode() local
267 itdev->want[unit][1] = pio_want[mode_wanted]; in it821x_passthru_set_piomode()
269 itdev->pio[unit] = pio[mode_wanted]; in it821x_passthru_set_piomode()
300 int mode_wanted = adev->dma_mode - XFER_UDMA_0; in it821x_passthru_set_dmamode() local
302 itdev->want[unit][1] = udma_want[mode_wanted]; in it821x_passthru_set_dmamode()
305 itdev->udma[unit] = udma[mode_wanted]; in it821x_passthru_set_dmamode()
306 if (mode_wanted >= 5) in it821x_passthru_set_dmamode()
319 int mode_wanted = adev->dma_mode - XFER_MW_DMA_0; in it821x_passthru_set_dmamode() local
321 itdev->want[unit][1] = mwdma_want[mode_wanted]; in it821x_passthru_set_dmamode()
323 itdev->mwdma[unit] = dma[mode_wanted]; in it821x_passthru_set_dmamode()
/linux-2.6.39/drivers/ide/
Dit821x.c281 static void it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_mwdma() argument
291 itdev->want[unit][1] = mwdma_want[mode_wanted]; in it821x_tune_mwdma()
293 itdev->mwdma[unit] = dma[mode_wanted]; in it821x_tune_mwdma()
318 static void it821x_tune_udma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_udma() argument
328 itdev->want[unit][1] = udma_want[mode_wanted]; in it821x_tune_udma()
331 itdev->udma[unit] = udma[mode_wanted]; in it821x_tune_udma()
332 if(mode_wanted >= 5) in it821x_tune_udma()
Dide-xfer-mode.c61 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() argument
66 if (mode_wanted != 255) in ide_get_best_pio_mode()
67 return min_t(u8, mode_wanted, max_mode); in ide_get_best_pio_mode()