Lines Matching refs:clks
180 struct clk **clks; in cpg_mstp_clocks_init() local
184 clks = kmalloc_array(MSTP_MAX_CLOCKS, sizeof(*clks), GFP_KERNEL); in cpg_mstp_clocks_init()
185 if (group == NULL || clks == NULL) { in cpg_mstp_clocks_init()
187 kfree(clks); in cpg_mstp_clocks_init()
193 group->data.clks = clks; in cpg_mstp_clocks_init()
201 kfree(clks); in cpg_mstp_clocks_init()
209 clks[i] = ERR_PTR(-ENOENT); in cpg_mstp_clocks_init()
239 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init()
241 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init()
252 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init()
255 __func__, np->name, name, PTR_ERR(clks[clkidx])); in cpg_mstp_clocks_init()