Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/clk/renesas/
Drcar-gen4-cpg.c51 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
55 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
56 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
59 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()
65 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local
70 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()
72 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
78 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()
80 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
96 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-v6.1/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