Home
last modified time | relevance | path

Searched refs:zclk (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/clk/renesas/
Drcar-gen2-cpg.c56 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
60 val = (readl(zclk->reg) & CPG_FRQCRC_ZFC_MASK) >> CPG_FRQCRC_ZFC_SHIFT; in cpg_z_clk_recalc_rate()
87 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
95 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
98 val = readl(zclk->reg); in cpg_z_clk_set_rate()
101 writel(val, zclk->reg); in cpg_z_clk_set_rate()
107 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()
109 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()
121 if (!(readl(zclk->kick_reg) & CPG_FRQCRB_KICK)) in cpg_z_clk_set_rate()
141 struct cpg_z_clk *zclk; in cpg_z_clk_register() local
[all …]
Drcar-gen3-cpg.c106 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
110 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
111 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
114 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()
120 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local
124 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
140 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
144 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
148 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
151 cpg_reg_modify(zclk->reg, zclk->mask, in cpg_z_clk_set_rate()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dcesa.c521 engine->zclk = devm_clk_get(dev, res_name); in mv_cesa_probe()
522 if (IS_ERR(engine->zclk)) in mv_cesa_probe()
523 engine->zclk = NULL; in mv_cesa_probe()
529 ret = clk_prepare_enable(engine->zclk); in mv_cesa_probe()
574 clk_disable_unprepare(cesa->engines[i].zclk); in mv_cesa_probe()
592 clk_disable_unprepare(cesa->engines[i].zclk); in mv_cesa_remove()
Dcesa.h456 struct clk *zclk; member