Searched refs:log2P (Results 1 – 8 of 8) sorted by relevance
/drivers/gpu/drm/nouveau/core/subdev/clock/ |
D | nv40.c | 131 int *N1, int *M1, int *N2, int *M2, int *log2P) in nv40_clock_calc_pll() argument 144 ret = nv04_pll_calc(nv_subdev(priv), &pll, clk, N1, M1, N2, M2, log2P); in nv40_clock_calc_pll() 156 int N1, M1, N2, M2, log2P; in nv40_clock_calc() local 161 &N1, &M1, &N2, &M2, &log2P); in nv40_clock_calc() 166 priv->npll_ctrl = 0x80000100 | (log2P << 16); in nv40_clock_calc() 169 priv->npll_ctrl = 0xc0000000 | (log2P << 16); in nv40_clock_calc() 176 &N1, &M1, NULL, NULL, &log2P); in nv40_clock_calc() 180 priv->spll = 0xc0000000 | (log2P << 16) | (N1 << 8) | M1; in nv40_clock_calc()
|
D | pllnv04.c | 152 int M1, N1, M2, N2, log2P; in getMNP_double() local 158 for (log2P = 0; clk && log2P < maxlog2P && clk <= (vco2 >> log2P); log2P++) in getMNP_double() 160 clkP = clk << log2P; in getMNP_double() 204 calcclkout = calcclk2 >> log2P; in getMNP_double() 216 *pP = log2P; in getMNP_double()
|
D | nv04.c | 48 pv->log2P = P; in nv04_clock_pll_calc()
|
/drivers/gpu/drm/nouveau/core/subdev/fb/ |
D | ramnv40.c | 44 int log2P, ret; in nv40_ram_calc() local 53 &N1, &M1, &N2, &M2, &log2P); in nv40_ram_calc() 57 ram->ctrl = 0x80000000 | (log2P << 16); in nv40_ram_calc() 58 ram->ctrl |= min(pll.bias_p + log2P, (int)pll.max_p) << 20; in nv40_ram_calc()
|
/drivers/gpu/drm/nouveau/core/subdev/devinit/ |
D | nv04.c | 145 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_single() 161 nv_wr32(devinit, reg, pv->log2P << 16 | (oldpll & 0xffff)); in setPLL_single() 201 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_double_highregs() 286 0xc << 28 | pv->log2P << 16; in setPLL_double_lowregs() 307 Pval2 = pv->log2P + info.bias_p; in setPLL_double_lowregs() 373 pv.log2P = P; in nv04_devinit_pll_set()
|
/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
D | pll.h | 18 int log2P; member
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | hw.c | 140 pllvals->log2P = (pll1 >> 16) & 0x7; in nouveau_hw_decode_pll() 211 return pv->N1 * pv->N2 * pv->refclk / (pv->M1 * pv->M2) >> pv->log2P; in nouveau_hw_pllvals_to_clk() 268 pv.log2P <= pll_lim.max_p) in nouveau_hw_fix_bad_vpll() 276 pv.log2P = pll_lim.max_p_usable; in nouveau_hw_fix_bad_vpll()
|
D | crtc.c | 159 pv->N1, pv->N2, pv->M1, pv->M2, pv->log2P); in nv_crtc_calc_state_ext() 162 pv->N1, pv->M1, pv->log2P); in nv_crtc_calc_state_ext()
|