Searched refs:clkidx (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/drivers/clk/renesas/ |
D | clk-mstp.c | 227 u32 clkidx; in cpg_mstp_clocks_init() local 237 ret = of_property_read_u32_index(np, idxname, i, &clkidx); in cpg_mstp_clocks_init() 241 if (clkidx >= MSTP_MAX_CLOCKS) { in cpg_mstp_clocks_init() 243 __func__, np->name, name, clkidx); in cpg_mstp_clocks_init() 247 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init() 248 clkidx, group); in cpg_mstp_clocks_init() 249 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init() 251 clkidx + 1); in cpg_mstp_clocks_init() 260 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init() 263 __func__, np->name, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init()
|
D | renesas-cpg-mssr.c | 223 unsigned int clkidx = clkspec->args[1]; in cpg_mssr_clk_src_twocell_get() local 233 if (clkidx > priv->last_dt_core_clk) { in cpg_mssr_clk_src_twocell_get() 235 clkidx); in cpg_mssr_clk_src_twocell_get() 238 clk = priv->clks[clkidx]; in cpg_mssr_clk_src_twocell_get() 243 idx = MOD_CLK_PACK(clkidx); in cpg_mssr_clk_src_twocell_get() 244 if (clkidx % 100 > 31 || idx >= priv->num_mod_clks) { in cpg_mssr_clk_src_twocell_get() 246 clkidx); in cpg_mssr_clk_src_twocell_get() 258 dev_err(dev, "Cannot get %s clock %u: %ld", type, clkidx, in cpg_mssr_clk_src_twocell_get()
|