Searched refs:mode_wanted (Results 1 – 3 of 3) sorted by relevance
264 int mode_wanted = adev->pio_mode - XFER_PIO_0; in it821x_passthru_set_piomode() local267 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() local302 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() local321 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()
281 static void it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_mwdma() argument291 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() argument328 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()
61 static u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() argument66 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()