Lines Matching refs:ap_cpu_clk
74 #define to_ap_cpu_clk(_hw) container_of(_hw, struct ap_cpu_clk, hw)
134 struct ap_cpu_clk { struct
146 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw); in ap_cpu_clk_recalc_rate() argument
162 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw); in ap_cpu_clk_set_rate()
235 struct ap_cpu_clk *ap_cpu_clk; in ap_cpu_clock_probe() local
274 ap_cpu_clk = devm_kcalloc(dev, nclusters, sizeof(*ap_cpu_clk), in ap_cpu_clock_probe()
276 if (!ap_cpu_clk) in ap_cpu_clock_probe()
313 ap_cpu_clk[cluster_index].clk_name = in ap_cpu_clock_probe()
315 ap_cpu_clk[cluster_index].cluster = cluster_index; in ap_cpu_clock_probe()
316 ap_cpu_clk[cluster_index].pll_cr_base = regmap; in ap_cpu_clock_probe()
317 ap_cpu_clk[cluster_index].hw.init = &init; in ap_cpu_clock_probe()
318 ap_cpu_clk[cluster_index].dev = dev; in ap_cpu_clock_probe()
319 ap_cpu_clk[cluster_index].pll_regs = of_device_get_match_data(&pdev->dev); in ap_cpu_clock_probe()
321 init.name = ap_cpu_clk[cluster_index].clk_name; in ap_cpu_clock_probe()
326 ret = devm_clk_hw_register(dev, &ap_cpu_clk[cluster_index].hw); in ap_cpu_clock_probe()
331 ap_cpu_data->hws[cluster_index] = &ap_cpu_clk[cluster_index].hw; in ap_cpu_clock_probe()