Home
last modified time | relevance | path

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

/linux/drivers/clk/renesas/
H A 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 …]
H A Drcar-gen4-cpg.c281 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
285 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
286 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
289 32 * zclk->fixed_div); in cpg_z_clk_recalc_rate()
295 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_determine_rate() local
300 if (rate <= zclk->max_rate) { in cpg_z_clk_determine_rate()
302 prate = zclk->max_rate; in cpg_z_clk_determine_rate()
308 prate * zclk->fixed_div); in cpg_z_clk_determine_rate()
310 prate = req->best_parent_rate / zclk->fixed_div; in cpg_z_clk_determine_rate()
326 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
[all …]
H A 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/drivers/crypto/marvell/cesa/
H A 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()
H A Dcesa.h460 struct clk *zclk; member