Lines Matching refs:pll_param
627 struct nau8822_pll *pll_param) in nau8822_calc_pll() argument
648 pll_param->mclk_scaler = scal_sel; in nau8822_calc_pll()
655 pll_param->pre_factor = 0; in nau8822_calc_pll()
658 pll_param->pre_factor = 1; in nau8822_calc_pll()
660 pll_param->pll_int = (pll_ratio >> 28) & 0xF; in nau8822_calc_pll()
661 pll_param->pll_frac = ((pll_ratio & 0xFFFFFFF) >> 4); in nau8822_calc_pll()
726 struct nau8822_pll *pll_param = &nau8822->pll; in nau8822_set_pll() local
729 if (freq_in == pll_param->freq_in && in nau8822_set_pll()
730 freq_out == pll_param->freq_out) in nau8822_set_pll()
742 ret = nau8822_calc_pll(freq_in, fs, pll_param); in nau8822_set_pll()
751 pll_param->pll_int, pll_param->pll_frac, in nau8822_set_pll()
752 pll_param->mclk_scaler, pll_param->pre_factor); in nau8822_set_pll()
758 (pll_param->pre_factor ? NAU8822_PLLMCLK_DIV2 : 0) | in nau8822_set_pll()
759 pll_param->pll_int); in nau8822_set_pll()
761 NAU8822_REG_PLL_K1, (pll_param->pll_frac >> NAU8822_PLLK1_SFT) & in nau8822_set_pll()
764 NAU8822_REG_PLL_K2, (pll_param->pll_frac >> NAU8822_PLLK2_SFT) & in nau8822_set_pll()
767 NAU8822_REG_PLL_K3, pll_param->pll_frac & NAU8822_PLLK3_MASK); in nau8822_set_pll()
770 pll_param->mclk_scaler << NAU8822_MCLKSEL_SFT); in nau8822_set_pll()
776 pll_param->freq_in = freq_in; in nau8822_set_pll()
777 pll_param->freq_out = freq_out; in nau8822_set_pll()