Lines Matching full:sclk
67 u32 sclk; in read_pll() local
75 sclk = device->crystal; in read_pll()
79 sclk = nvkm_clk_read(&clk->base, nv_clk_src_mpllsrc); in read_pll()
82 sclk = nvkm_clk_read(&clk->base, nv_clk_src_mpllsrcref); in read_pll()
88 sclk = read_div(clk, (pll & 0xff) / 0x20, 0x137120, 0x137140); in read_pll()
94 return sclk * N / M / P; in read_pll()
102 u32 sclk, sctl, sdiv = 2; in read_div() local
112 sclk = read_vco(clk, dsrc + (doff * 4)); in read_div()
126 return (sclk * 2) / sdiv; in read_div()
138 u32 sclk, sdiv; in read_clk() local
142 sclk = read_pll(clk, 0x137000 + (idx * 0x20)); in read_clk()
144 sclk = read_pll(clk, 0x1370e0); in read_clk()
147 sclk = read_div(clk, idx, 0x137160, 0x1371d0); in read_clk()
152 return (sclk * 2) / sdiv; in read_clk()
154 return sclk; in read_clk()
223 u32 sclk; in calc_src() local
243 sclk = read_vco(clk, 0x137160 + (idx * 4)); in calc_src()
245 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src()
246 return sclk; in calc_src()