Lines Matching defs:ap_cpu_clk
75 #define to_ap_cpu_clk(_hw) container_of(_hw, struct ap_cpu_clk, hw)
135 struct ap_cpu_clk {
147 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw);
163 struct ap_cpu_clk *clk = to_ap_cpu_clk(hw);
236 struct ap_cpu_clk *ap_cpu_clk;
275 ap_cpu_clk = devm_kcalloc(dev, nclusters, sizeof(*ap_cpu_clk),
277 if (!ap_cpu_clk)
314 ap_cpu_clk[cluster_index].clk_name =
316 ap_cpu_clk[cluster_index].cluster = cluster_index;
317 ap_cpu_clk[cluster_index].pll_cr_base = regmap;
318 ap_cpu_clk[cluster_index].hw.init = &init;
319 ap_cpu_clk[cluster_index].dev = dev;
320 ap_cpu_clk[cluster_index].pll_regs = of_device_get_match_data(&pdev->dev);
322 init.name = ap_cpu_clk[cluster_index].clk_name;
327 ret = devm_clk_hw_register(dev, &ap_cpu_clk[cluster_index].hw);
332 ap_cpu_data->hws[cluster_index] = &ap_cpu_clk[cluster_index].hw;