Searched refs:ddiv (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/clk/x86/ |
D | clk-cgu.c | 421 struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw); in lgm_clk_ddiv_recalc_rate() local 425 div0 = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 426 ddiv->shift0, ddiv->width0) + 1; in lgm_clk_ddiv_recalc_rate() 427 div1 = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 428 ddiv->shift1, ddiv->width1) + 1; in lgm_clk_ddiv_recalc_rate() 429 exdiv = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 430 ddiv->shift2, ddiv->width2); in lgm_clk_ddiv_recalc_rate() 436 do_div(prate, ddiv->div); in lgm_clk_ddiv_recalc_rate() 437 prate *= ddiv->mult; in lgm_clk_ddiv_recalc_rate() 445 struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw); in lgm_clk_ddiv_enable() local [all …]
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gf100.c | 37 u32 ddiv; member 210 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument 216 *ddiv = div - 2; in calc_div() 221 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() argument 226 *ddiv = 0x00000000; in calc_src() 245 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src() 302 info->ddiv |= 0x80000000; in calc_clk() 303 info->ddiv |= div0 << 8; in calc_clk() 304 info->ddiv |= div0; in calc_clk() 349 nvkm_mask(device, 0x1371d0 + (idx * 0x04), 0x80003f3f, info->ddiv); in gf100_clk_prog_0()
|
D | gk104.c | 37 u32 ddiv; member 223 calc_div(struct gk104_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() argument 229 *ddiv = div - 2; in calc_div() 234 calc_src(struct gk104_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() argument 239 *ddiv = 0x00000000; in calc_src() 258 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src() 316 info->ddiv |= 0x80000000; in calc_clk() 317 info->ddiv |= div0; in calc_clk() 362 nvkm_mask(device, 0x1371d0 + (idx * 0x04), 0x8000003f, info->ddiv); in gk104_clk_prog_0()
|