Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/clk/renesas/
Drcar-gen4-cpg.c198 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
202 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
203 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
206 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()
212 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local
217 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()
219 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
225 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()
227 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
243 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
[all …]
Drcar-gen3-cpg.c178 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
182 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
183 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
186 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()
192 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local
197 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()
199 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
205 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()
207 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
223 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
[all …]
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 …]
/linux-6.6.21/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.h460 struct clk *zclk; member