Lines Matching refs:clusterid
56 void (*get_cpu_cluster_id)(u32 cpu, u32 *cpuid, u32 *clusterid);
57 int (*get_cpu_ndiv)(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv);
104 static void tegra234_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid) in tegra234_get_cpu_cluster_id() argument
112 if (clusterid) in tegra234_get_cpu_cluster_id()
113 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 2); in tegra234_get_cpu_cluster_id()
116 static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra234_get_cpu_ndiv() argument
123 mpidr_id = (clusterid * data->soc->maxcpus_per_cluster) + cpuid; in tegra234_get_cpu_ndiv()
135 u32 cpu, cpuid, clusterid; in tegra234_set_cpu_ndiv() local
139 data->soc->ops->get_cpu_cluster_id(cpu, &cpuid, &clusterid); in tegra234_set_cpu_ndiv()
142 mpidr_id = (clusterid * data->soc->maxcpus_per_cluster) + cpuid; in tegra234_set_cpu_ndiv()
160 u32 cpuid, clusterid; in tegra234_read_counters() local
163 data->soc->ops->get_cpu_cluster_id(c->cpu, &cpuid, &clusterid); in tegra234_read_counters()
164 actmon_reg = CORE_ACTMON_CNTR_REG(data, clusterid, cpuid); in tegra234_read_counters()
196 static void tegra194_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid) in tegra194_get_cpu_cluster_id() argument
204 if (clusterid) in tegra194_get_cpu_cluster_id()
205 *clusterid = MPIDR_AFFINITY_LEVEL(mpidr, 1); in tegra194_get_cpu_cluster_id()
340 static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra194_get_cpu_ndiv() argument
361 u32 cpuid, clusterid; in tegra194_get_speed() local
366 data->soc->ops->get_cpu_cluster_id(cpu, &cpuid, &clusterid); in tegra194_get_speed()
372 ret = data->soc->ops->get_cpu_ndiv(cpu, cpuid, clusterid, &ndiv); in tegra194_get_speed()
382 cpufreq_for_each_valid_entry(pos, data->bpmp_luts[clusterid]) { in tegra194_get_speed()
479 u32 clusterid; in tegra194_cpufreq_init() local
482 data->soc->ops->get_cpu_cluster_id(policy->cpu, NULL, &clusterid); in tegra194_cpufreq_init()
483 if (clusterid >= data->soc->num_clusters || !data->bpmp_luts[clusterid]) in tegra194_cpufreq_init()
494 bpmp_lut = data->bpmp_luts[clusterid]; in tegra194_cpufreq_init()