Lines Matching refs:sci_clk
43 struct sci_clk **clocks;
56 struct sci_clk { struct
65 #define to_sci_clk(_hw) container_of(_hw, struct sci_clk, hw) argument
75 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_prepare()
94 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_unprepare()
114 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_is_prepared()
142 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_recalc_rate()
171 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_determine_rate()
206 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_set_rate()
220 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_get_parent()
245 struct sci_clk *clk = to_sci_clk(hw); in sci_clk_set_parent()
275 struct sci_clk *sci_clk) in _sci_clk_build() argument
284 sci_clk->dev_id, sci_clk->clk_id); in _sci_clk_build()
294 if (sci_clk->num_parents < 2) in _sci_clk_build()
295 sci_clk->num_parents = 0; in _sci_clk_build()
297 if (sci_clk->num_parents) { in _sci_clk_build()
298 parent_names = kcalloc(sci_clk->num_parents, sizeof(char *), in _sci_clk_build()
306 for (i = 0; i < sci_clk->num_parents; i++) { in _sci_clk_build()
311 sci_clk->dev_id, in _sci_clk_build()
312 sci_clk->clk_id + 1 + i); in _sci_clk_build()
323 init.num_parents = sci_clk->num_parents; in _sci_clk_build()
324 sci_clk->hw.init = &init; in _sci_clk_build()
326 ret = devm_clk_hw_register(provider->dev, &sci_clk->hw); in _sci_clk_build()
332 for (i = 0; i < sci_clk->num_parents; i++) in _sci_clk_build()
345 const struct sci_clk *ca = a; in _cmp_sci_clk()
346 const struct sci_clk *cb = *(struct sci_clk **)b; in _cmp_sci_clk()
369 struct sci_clk **clk; in sci_clk_get()
370 struct sci_clk key; in sci_clk_get()
425 struct sci_clk **clks = NULL; in ti_sci_clk_probe()
426 struct sci_clk **tmp_clks; in ti_sci_clk_probe()
427 struct sci_clk *sci_clk; in ti_sci_clk_probe() local
471 sizeof(sci_clk), in ti_sci_clk_probe()
473 memcpy(tmp_clks, clks, max_clks * sizeof(sci_clk)); in ti_sci_clk_probe()
480 sci_clk = devm_kzalloc(dev, sizeof(*sci_clk), GFP_KERNEL); in ti_sci_clk_probe()
481 if (!sci_clk) in ti_sci_clk_probe()
483 sci_clk->dev_id = dev_id; in ti_sci_clk_probe()
484 sci_clk->clk_id = clk_id; in ti_sci_clk_probe()
485 sci_clk->provider = provider; in ti_sci_clk_probe()
486 sci_clk->num_parents = num_parents; in ti_sci_clk_probe()
488 clks[num_clks] = sci_clk; in ti_sci_clk_probe()
494 provider->clocks = devm_kmalloc_array(dev, num_clks, sizeof(sci_clk), in ti_sci_clk_probe()
499 memcpy(provider->clocks, clks, num_clks * sizeof(sci_clk)); in ti_sci_clk_probe()