Lines Matching refs:cluster_index
232 int ret, nclusters = 0, cluster_index = 0; in ap_cpu_clock_probe() local
299 cluster_index = cpu & APN806_CLUSTER_NUM_MASK; in ap_cpu_clock_probe()
300 cluster_index >>= APN806_CLUSTER_NUM_OFFSET; in ap_cpu_clock_probe()
303 if (ap_cpu_data->hws[cluster_index]) in ap_cpu_clock_probe()
306 parent = of_clk_get(np, cluster_index); in ap_cpu_clock_probe()
313 clk_name[12] += cluster_index; in ap_cpu_clock_probe()
314 ap_cpu_clk[cluster_index].clk_name = in ap_cpu_clock_probe()
316 ap_cpu_clk[cluster_index].cluster = cluster_index; in ap_cpu_clock_probe()
317 ap_cpu_clk[cluster_index].pll_cr_base = regmap; in ap_cpu_clock_probe()
318 ap_cpu_clk[cluster_index].hw.init = &init; in ap_cpu_clock_probe()
319 ap_cpu_clk[cluster_index].dev = dev; in ap_cpu_clock_probe()
320 ap_cpu_clk[cluster_index].pll_regs = of_device_get_match_data(&pdev->dev); in ap_cpu_clock_probe()
322 init.name = ap_cpu_clk[cluster_index].clk_name; in ap_cpu_clock_probe()
327 ret = devm_clk_hw_register(dev, &ap_cpu_clk[cluster_index].hw); in ap_cpu_clock_probe()
332 ap_cpu_data->hws[cluster_index] = &ap_cpu_clk[cluster_index].hw; in ap_cpu_clock_probe()
335 ap_cpu_data->num = cluster_index + 1; in ap_cpu_clock_probe()