Lines Matching refs:pll
402 struct aty128_pll pll; member
1285 static void aty128_set_pll(struct aty128_pll *pll, const struct aty128fb_par *par) in aty128_set_pll() argument
1306 div3 |= pll->feedback_divider; in aty128_set_pll()
1308 div3 |= post_conv[pll->post_divider] << 16; in aty128_set_pll()
1324 static int aty128_var_to_pll(u32 period_in_ps, struct aty128_pll *pll, in aty128_var_to_pll() argument
1346 pll->post_divider = post_dividers[i]; in aty128_var_to_pll()
1358 pll->feedback_divider = round_div(n, d); in aty128_var_to_pll()
1359 pll->vclk = vclk; in aty128_var_to_pll()
1362 "vclk_per: %d\n", pll->post_divider, in aty128_var_to_pll()
1363 pll->feedback_divider, vclk, output_freq, in aty128_var_to_pll()
1370 static int aty128_pll_to_var(const struct aty128_pll *pll, struct fb_var_screeninfo *var) in aty128_pll_to_var() argument
1372 var->pixclock = 100000000 / pll->vclk; in aty128_pll_to_var()
1387 const struct aty128_pll *pll, in aty128_ddafifo() argument
1402 d = pll->vclk * bpp; in aty128_ddafifo()
1475 aty128_set_pll(&par->pll, par); in aty128fb_set_par()
1520 struct aty128_pll pll; in aty128_decode_var() local
1526 if ((err = aty128_var_to_pll(var->pixclock, &pll, par))) in aty128_decode_var()
1529 if ((err = aty128_ddafifo(&fifo_reg, &pll, crtc.depth, par))) in aty128_decode_var()
1533 par->pll = pll; in aty128_decode_var()
1549 if ((err = aty128_pll_to_var(&par->pll, var))) in aty128_encode_var()