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