Lines Matching refs:pll_param
617 struct nau8822_pll *pll_param) in nau8822_calc_pll() argument
638 pll_param->mclk_scaler = scal_sel; in nau8822_calc_pll()
645 pll_param->pre_factor = 0; in nau8822_calc_pll()
648 pll_param->pre_factor = 1; in nau8822_calc_pll()
650 pll_param->pll_int = (pll_ratio >> 28) & 0xF; in nau8822_calc_pll()
651 pll_param->pll_frac = ((pll_ratio & 0xFFFFFFF) >> 4); in nau8822_calc_pll()
716 struct nau8822_pll *pll_param = &nau8822->pll; in nau8822_set_pll() local
719 if (freq_in == pll_param->freq_in && in nau8822_set_pll()
720 freq_out == pll_param->freq_out) in nau8822_set_pll()
732 ret = nau8822_calc_pll(freq_in, fs, pll_param); in nau8822_set_pll()
741 pll_param->pll_int, pll_param->pll_frac, in nau8822_set_pll()
742 pll_param->mclk_scaler, pll_param->pre_factor); in nau8822_set_pll()
748 (pll_param->pre_factor ? NAU8822_PLLMCLK_DIV2 : 0) | in nau8822_set_pll()
749 pll_param->pll_int); in nau8822_set_pll()
751 NAU8822_REG_PLL_K1, (pll_param->pll_frac >> NAU8822_PLLK1_SFT) & in nau8822_set_pll()
754 NAU8822_REG_PLL_K2, (pll_param->pll_frac >> NAU8822_PLLK2_SFT) & in nau8822_set_pll()
757 NAU8822_REG_PLL_K3, pll_param->pll_frac & NAU8822_PLLK3_MASK); in nau8822_set_pll()
760 pll_param->mclk_scaler << NAU8822_MCLKSEL_SFT); in nau8822_set_pll()
766 pll_param->freq_in = freq_in; in nau8822_set_pll()
767 pll_param->freq_out = freq_out; in nau8822_set_pll()