Searched refs:log2P (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | nv40.c | 125 int *N1, int *M1, int *N2, int *M2, int *log2P) in nv40_clk_calc_pll() argument 138 ret = nv04_pll_calc(subdev, &pll, khz, N1, M1, N2, M2, log2P); in nv40_clk_calc_pll() 151 int N1, M1, N2, M2, log2P; in nv40_clk_calc() local 156 &N1, &M1, &N2, &M2, &log2P); in nv40_clk_calc() 161 clk->npll_ctrl = 0x80000100 | (log2P << 16); in nv40_clk_calc() 164 clk->npll_ctrl = 0xc0000000 | (log2P << 16); in nv40_clk_calc() 171 &N1, &M1, NULL, NULL, &log2P); in nv40_clk_calc() 175 clk->spll = 0xc0000000 | (log2P << 16) | (N1 << 8) | M1; in nv40_clk_calc()
|
H A D | pllnv04.c | 151 int M1, N1, M2, N2, log2P; in getMNP_double() local 157 for (log2P = 0; clk && log2P < maxlog2P && clk <= (vco2 >> log2P); log2P++) in getMNP_double() 159 clkP = clk << log2P; in getMNP_double() 203 calcclkout = calcclk2 >> log2P; in getMNP_double() 215 *pP = log2P; in getMNP_double()
|
H A D | nv04.c | 43 pv->log2P = P; in nv04_clk_pll_calc()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | ramnv40.c | 41 int log2P, ret; in nv40_ram_calc() local 49 ret = nv04_pll_calc(subdev, &pll, freq, &N1, &M1, &N2, &M2, &log2P); in nv40_ram_calc() 53 ram->ctrl = 0x80000000 | (log2P << 16); in nv40_ram_calc() 54 ram->ctrl |= min(pll.bias_p + log2P, (int)pll.max_p) << 20; in nv40_ram_calc()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv04.c | 150 uint32_t pll = (oldpll & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_single() 166 nvkm_wr32(device, reg, pv->log2P << 16 | (oldpll & 0xffff)); in setPLL_single() 207 uint32_t pll1 = (oldpll1 & 0xfff80000) | pv->log2P << 16 | pv->NM1; in setPLL_double_highregs() 292 0xc << 28 | pv->log2P << 16; in setPLL_double_lowregs() 313 Pval2 = pv->log2P + info.bias_p; in setPLL_double_lowregs() 379 pv.log2P = P; in nv04_devinit_pll_set()
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | pll.h | 18 int log2P; member
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A 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() 274 pv.log2P <= pll_lim.max_p) in nouveau_hw_fix_bad_vpll() 282 pv.log2P = pll_lim.max_p_usable; in nouveau_hw_fix_bad_vpll()
|
H A D | crtc.c | 166 pv->N1, pv->N2, pv->M1, pv->M2, pv->log2P); in nv_crtc_calc_state_ext() 169 pv->N1, pv->M1, pv->log2P); in nv_crtc_calc_state_ext()
|