Lines Matching refs:fspi
195 unsigned int fspi, unsigned int max, unsigned int *fres) in spi_imx_clkdiv_1() argument
200 if (fspi * mxc_clkdivs[i] >= fin) in spi_imx_clkdiv_1()
209 unsigned int fspi, unsigned int *fres) in spi_imx_clkdiv_2() argument
214 if (fspi * div >= fin) in spi_imx_clkdiv_2()
438 unsigned int fspi, unsigned int *fres) in mx51_ecspi_clkdiv() argument
447 fspi = min(fspi, fin); in mx51_ecspi_clkdiv()
449 post = fls(fin) - fls(fspi); in mx51_ecspi_clkdiv()
450 if (fin > fspi << post) in mx51_ecspi_clkdiv()
458 fspi, fin); in mx51_ecspi_clkdiv()
462 pre = DIV_ROUND_UP(fin, fspi << post) - 1; in mx51_ecspi_clkdiv()
465 __func__, fin, fspi, post, pre); in mx51_ecspi_clkdiv()