Lines Matching refs:ndiv

54 	void (*set_cpu_ndiv)(struct cpufreq_policy *policy, u64 ndiv);
56 int (*get_cpu_ndiv)(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv);
91 static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra234_get_cpu_ndiv() argument
101 *ndiv = readl(freq_core_reg) & NDIV_MASK; in tegra234_get_cpu_ndiv()
106 static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) in tegra234_set_cpu_ndiv() argument
120 writel(ndiv, freq_core_reg); in tegra234_set_cpu_ndiv()
202 *nltbl, u16 ndiv) in map_ndiv_to_freq() argument
204 return nltbl->ref_clk_hz / KHZ * ndiv / (nltbl->pdiv * nltbl->mdiv); in map_ndiv_to_freq()
306 static void tegra194_get_cpu_ndiv_sysreg(void *ndiv) in tegra194_get_cpu_ndiv_sysreg() argument
312 *(u64 *)ndiv = ndiv_val; in tegra194_get_cpu_ndiv_sysreg()
315 static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra194_get_cpu_ndiv() argument
317 return smp_call_function_single(cpu, tegra194_get_cpu_ndiv_sysreg, &ndiv, true); in tegra194_get_cpu_ndiv()
327 static void tegra194_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) in tegra194_set_cpu_ndiv() argument
329 on_each_cpu_mask(policy->cpus, tegra194_set_cpu_ndiv_sysreg, &ndiv, true); in tegra194_set_cpu_ndiv()
338 u64 ndiv; in tegra194_get_speed() local
347 ret = data->soc->ops->get_cpu_ndiv(cpu, cpuid, clusterid, &ndiv); in tegra194_get_speed()
358 if (pos->driver_data != ndiv) in tegra194_get_speed()
363 cpu, rate, pos->frequency, ndiv); in tegra194_get_speed()
447 unsigned int num_freqs, ndiv, delta_ndiv; in init_freq_table() local
499 for (index = 0, ndiv = resp.ndiv_min; in init_freq_table()
500 ndiv < resp.ndiv_max; in init_freq_table()
501 index++, ndiv += freq_table_step_size) { in init_freq_table()
502 freq_table[index].driver_data = ndiv; in init_freq_table()
503 freq_table[index].frequency = map_ndiv_to_freq(&resp, ndiv); in init_freq_table()