Lines Matching refs:div_nmp

256 #define divm_mask(p) mask(p->params->div_nmp->divm_width)
257 #define divn_mask(p) mask(p->params->div_nmp->divn_width)
259 mask(p->params->div_nmp->divp_width))
263 #define divm_shift(p) (p)->params->div_nmp->divm_shift
264 #define divn_shift(p) (p)->params->div_nmp->divn_shift
265 #define divp_shift(p) (p)->params->div_nmp->divp_shift
278 static struct div_nmp default_nmp = {
654 struct div_nmp *div_nmp = params->div_nmp; in _update_pll_mnp() local
660 val &= ~(divp_mask(pll) << div_nmp->override_divp_shift); in _update_pll_mnp()
661 val |= cfg->p << div_nmp->override_divp_shift; in _update_pll_mnp()
665 val &= ~((divm_mask(pll) << div_nmp->override_divm_shift) | in _update_pll_mnp()
666 (divn_mask(pll) << div_nmp->override_divn_shift)); in _update_pll_mnp()
667 val |= (cfg->m << div_nmp->override_divm_shift) | in _update_pll_mnp()
668 (cfg->n << div_nmp->override_divn_shift); in _update_pll_mnp()
691 struct div_nmp *div_nmp = params->div_nmp; in _get_pll_mnp() local
699 cfg->p = (val >> div_nmp->override_divp_shift) & divp_mask(pll); in _get_pll_mnp()
702 cfg->m = (val >> div_nmp->override_divm_shift) & divm_mask(pll); in _get_pll_mnp()
703 cfg->n = (val >> div_nmp->override_divn_shift) & divn_mask(pll); in _get_pll_mnp()
707 cfg->m = (val >> div_nmp->divm_shift) & divm_mask(pll); in _get_pll_mnp()
708 cfg->n = (val >> div_nmp->divn_shift) & divn_mask(pll); in _get_pll_mnp()
709 cfg->p = (val >> div_nmp->divp_shift) & divp_mask(pll); in _get_pll_mnp()
1003 divp = (val >> pll->params->div_nmp->divp_shift) & (divp_mask(pll)); in clk_plle_recalc_rate()
1004 divn = (val >> pll->params->div_nmp->divn_shift) & (divn_mask(pll)); in clk_plle_recalc_rate()
1005 divm = (val >> pll->params->div_nmp->divm_shift) & (divm_mask(pll)); in clk_plle_recalc_rate()
1816 if (!pll_params->div_nmp) in _tegra_init_pll()
1817 pll_params->div_nmp = &default_nmp; in _tegra_init_pll()
1873 static struct div_nmp pll_e_nmp = {
1892 if (!pll_params->div_nmp) in tegra_clk_register_plle()
1893 pll_params->div_nmp = &pll_e_nmp; in tegra_clk_register_plle()
2286 if (!pll_params->div_nmp) in tegra_clk_register_pllss()
2609 if (!pll_params->div_nmp) in tegra_clk_register_pllss_tegra210()