Lines Matching refs:div_nmp

197 #define divm_mask(p) mask(p->params->div_nmp->divm_width)
198 #define divn_mask(p) mask(p->params->div_nmp->divn_width)
200 mask(p->params->div_nmp->divp_width))
202 #define divm_shift(p) (p)->params->div_nmp->divm_shift
203 #define divn_shift(p) (p)->params->div_nmp->divn_shift
204 #define divp_shift(p) (p)->params->div_nmp->divp_shift
214 static struct div_nmp default_nmp = {
484 struct div_nmp *div_nmp = params->div_nmp; in _update_pll_mnp() local
490 val &= ~(divp_mask(pll) << div_nmp->override_divp_shift); in _update_pll_mnp()
491 val |= cfg->p << div_nmp->override_divp_shift; in _update_pll_mnp()
495 val &= ~(divm_mask(pll) << div_nmp->override_divm_shift) | in _update_pll_mnp()
496 ~(divn_mask(pll) << div_nmp->override_divn_shift); in _update_pll_mnp()
497 val |= (cfg->m << div_nmp->override_divm_shift) | in _update_pll_mnp()
498 (cfg->n << div_nmp->override_divn_shift); in _update_pll_mnp()
519 struct div_nmp *div_nmp = params->div_nmp; in _get_pll_mnp() local
525 cfg->p = (val >> div_nmp->override_divp_shift) & divp_mask(pll); in _get_pll_mnp()
528 cfg->m = (val >> div_nmp->override_divm_shift) & divm_mask(pll); in _get_pll_mnp()
529 cfg->n = (val >> div_nmp->override_divn_shift) & divn_mask(pll); in _get_pll_mnp()
533 cfg->m = (val >> div_nmp->divm_shift) & divm_mask(pll); in _get_pll_mnp()
534 cfg->n = (val >> div_nmp->divn_shift) & divn_mask(pll); in _get_pll_mnp()
535 cfg->p = (val >> div_nmp->divp_shift) & divp_mask(pll); in _get_pll_mnp()
793 divp = (val >> pll->params->div_nmp->divp_shift) & (divp_mask(pll)); in clk_plle_recalc_rate()
794 divn = (val >> pll->params->div_nmp->divn_shift) & (divn_mask(pll)); in clk_plle_recalc_rate()
795 divm = (val >> pll->params->div_nmp->divm_shift) & (divm_mask(pll)); in clk_plle_recalc_rate()
1430 if (!pll_params->div_nmp) in _tegra_init_pll()
1431 pll_params->div_nmp = &default_nmp; in _tegra_init_pll()
1476 static struct div_nmp pll_e_nmp = {
1496 if (!pll_params->div_nmp) in tegra_clk_register_plle()
1497 pll_params->div_nmp = &pll_e_nmp; in tegra_clk_register_plle()
1832 if (!pll_params->div_nmp) in tegra_clk_register_pllss()