Searched refs:mode_wanted (Results 1 – 3 of 3) sorted by relevance
263 int mode_wanted = adev->pio_mode - XFER_PIO_0; in it821x_passthru_set_piomode() local266 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() local301 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() local320 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()
280 static void it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) in it821x_tune_mwdma() argument290 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() argument327 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()
89 u8 ide_get_best_pio_mode(ide_drive_t *drive, u8 mode_wanted, u8 max_mode) in ide_get_best_pio_mode() argument94 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()