Lines Matching refs:sdm
32 unsigned int sdm, in rate_from_params() argument
35 unsigned long divisor = (SDM_DEN * n2) + sdm; in rate_from_params()
45 unsigned int *sdm, in params_from_rate() argument
55 *sdm = DIV_ROUND_CLOSEST_ULL(frac, requested_rate); in params_from_rate()
57 *sdm = DIV_ROUND_UP_ULL(frac, requested_rate); in params_from_rate()
59 if (*sdm == SDM_DEN) { in params_from_rate()
60 *sdm = 0; in params_from_rate()
66 *sdm = 0; in params_from_rate()
69 *sdm = SDM_DEN - 1; in params_from_rate()
80 unsigned int sdm, n2; in mpll_recalc_rate() local
83 sdm = meson_parm_read(clk->map, &mpll->sdm); in mpll_recalc_rate()
86 rate = rate_from_params(parent_rate, sdm, n2); in mpll_recalc_rate()
96 unsigned int sdm, n2; in mpll_round_rate() local
98 params_from_rate(rate, *parent_rate, &sdm, &n2, mpll->flags); in mpll_round_rate()
99 return rate_from_params(*parent_rate, sdm, n2); in mpll_round_rate()
108 unsigned int sdm, n2; in mpll_set_rate() local
111 params_from_rate(rate, parent_rate, &sdm, &n2, mpll->flags); in mpll_set_rate()
119 meson_parm_write(clk->map, &mpll->sdm, sdm); in mpll_set_rate()