Home
last modified time | relevance | path

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

/drivers/ata/
Dpata_it821x.c263 int mode_wanted = adev->pio_mode - XFER_PIO_0; in it821x_passthru_set_piomode() local
266 itdev->want[unit][1] = pio_want[mode_wanted]; in it821x_passthru_set_piomode()
268 itdev->pio[unit] = pio[mode_wanted]; in it821x_passthru_set_piomode()
299 int mode_wanted = adev->dma_mode - XFER_UDMA_0; in it821x_passthru_set_dmamode() local
301 itdev->want[unit][1] = udma_want[mode_wanted]; in it821x_passthru_set_dmamode()
304 itdev->udma[unit] = udma[mode_wanted]; in it821x_passthru_set_dmamode()
305 if (mode_wanted >= 5) in it821x_passthru_set_dmamode()
318 int mode_wanted = adev->dma_mode - XFER_MW_DMA_0; in it821x_passthru_set_dmamode() local
320 itdev->want[unit][1] = mwdma_want[mode_wanted]; in it821x_passthru_set_dmamode()
322 itdev->mwdma[unit] = dma[mode_wanted]; in it821x_passthru_set_dmamode()
/drivers/ide/
Dit821x.c280 static void it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_mwdma() argument
290 itdev->want[unit][1] = mwdma_want[mode_wanted]; in it821x_tune_mwdma()
292 itdev->mwdma[unit] = dma[mode_wanted]; in it821x_tune_mwdma()
317 static void it821x_tune_udma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_udma() argument
327 itdev->want[unit][1] = udma_want[mode_wanted]; in it821x_tune_udma()
330 itdev->udma[unit] = udma[mode_wanted]; in it821x_tune_udma()
331 if(mode_wanted >= 5) in it821x_tune_udma()
Dide-lib.c89 u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() argument
94 if (mode_wanted != 255) in ide_get_best_pio_mode()
95 return min_t(u8, mode_wanted, max_mode); in ide_get_best_pio_mode()