Searched refs:ddiv (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/clk/x86/ |
H A D | clk-cgu.c | 394 struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw); in lgm_clk_ddiv_recalc_rate() local 398 div0 = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 399 ddiv->shift0, ddiv->width0) + 1; in lgm_clk_ddiv_recalc_rate() 400 div1 = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 401 ddiv->shift1, ddiv->width1) + 1; in lgm_clk_ddiv_recalc_rate() 402 exdiv = lgm_get_clk_val(ddiv->membase, ddiv->reg, in lgm_clk_ddiv_recalc_rate() 403 ddiv->shift2, ddiv->width2); in lgm_clk_ddiv_recalc_rate() 409 do_div(prate, ddiv->div); in lgm_clk_ddiv_recalc_rate() 410 prate *= ddiv->mult; in lgm_clk_ddiv_recalc_rate() 418 struct lgm_clk_ddiv *ddiv = to_lgm_clk_ddiv(hw); in lgm_clk_ddiv_enable() local [all …]
|
/linux/drivers/clk/renesas/ |
H A D | rzv2h-cpg.h | 19 struct ddiv { struct 27 ((struct ddiv){ \ argument 55 struct ddiv ddiv; member 87 .cfg.ddiv = _ddiv_packed, \
|
H A D | rzv2h-cpg.c | 240 struct ddiv_clk *ddiv = to_ddiv_clock(divider); in rzv2h_ddiv_set_rate() local 241 struct rzv2h_cpg_priv *priv = ddiv->priv; in rzv2h_ddiv_set_rate() 254 ret = rzv2h_cpg_wait_ddiv_clk_update_done(priv->base, ddiv->mon); in rzv2h_ddiv_set_rate() 263 ret = rzv2h_cpg_wait_ddiv_clk_update_done(priv->base, ddiv->mon); in rzv2h_ddiv_set_rate() 287 struct ddiv cfg_ddiv = core->cfg.ddiv; in rzv2h_cpg_ddiv_clk_register() 295 struct ddiv_clk *ddiv; in rzv2h_cpg_ddiv_clk_register() local 307 ddiv = devm_kzalloc(priv->dev, sizeof(*ddiv), GFP_KERNEL); in rzv2h_cpg_ddiv_clk_register() 308 if (!ddiv) in rzv2h_cpg_ddiv_clk_register() 316 ddiv->priv = priv; in rzv2h_cpg_ddiv_clk_register() 317 ddiv->mon = cfg_ddiv.monbit; in rzv2h_cpg_ddiv_clk_register() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A 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()
|
H A 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()
|