Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/clk/renesas/
Dclk-mstp.c222 u32 clkidx; in cpg_mstp_clocks_init() local
232 ret = of_property_read_u32_index(np, idxname, i, &clkidx); in cpg_mstp_clocks_init()
236 if (clkidx >= MSTP_MAX_CLOCKS) { in cpg_mstp_clocks_init()
238 __func__, np, name, clkidx); in cpg_mstp_clocks_init()
242 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init()
243 clkidx, group); in cpg_mstp_clocks_init()
244 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init()
246 clkidx + 1); in cpg_mstp_clocks_init()
255 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init()
258 __func__, np, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init()
Drenesas-cpg-mssr.c280 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get() local
291 if (clkidx > priv->last_dt_core_clk) { in cpg_mssr_clk_src_twocell_get()
293 clkidx); in cpg_mssr_clk_src_twocell_get()
296 clk = priv->clks[clkidx]; in cpg_mssr_clk_src_twocell_get()
302 idx = MOD_CLK_PACK_10(clkidx); in cpg_mssr_clk_src_twocell_get()
303 range_check = 7 - (clkidx % 10); in cpg_mssr_clk_src_twocell_get()
305 idx = MOD_CLK_PACK(clkidx); in cpg_mssr_clk_src_twocell_get()
306 range_check = 31 - (clkidx % 100); in cpg_mssr_clk_src_twocell_get()
310 clkidx); in cpg_mssr_clk_src_twocell_get()
322 dev_err(dev, "Cannot get %s clock %u: %ld", type, clkidx, in cpg_mssr_clk_src_twocell_get()
Drzg2l-cpg.c762 unsigned int clkidx = clkspec->args[1]; in rzg2l_cpg_clk_src_twocell_get() local
771 if (clkidx > priv->last_dt_core_clk) { in rzg2l_cpg_clk_src_twocell_get()
772 dev_err(dev, "Invalid %s clock index %u\n", type, clkidx); in rzg2l_cpg_clk_src_twocell_get()
775 clk = priv->clks[clkidx]; in rzg2l_cpg_clk_src_twocell_get()
780 if (clkidx >= priv->num_mod_clks) { in rzg2l_cpg_clk_src_twocell_get()
782 clkidx); in rzg2l_cpg_clk_src_twocell_get()
785 clk = priv->clks[priv->num_core_clks + clkidx]; in rzg2l_cpg_clk_src_twocell_get()
794 dev_err(dev, "Cannot get %s clock %u: %ld", type, clkidx, in rzg2l_cpg_clk_src_twocell_get()
/Linux-v6.1/kernel/time/
Dposix-cpu-timers.c420 int clkidx = CPUCLOCK_WHICH(timer->it_clock); in timer_base() local
423 return tsk->posix_cputimers.bases + clkidx; in timer_base()
425 return tsk->signal->posix_cputimers.bases + clkidx; in timer_base()