Lines Matching refs:freq

179 	int m, n, freq;  in calculate_cpu_freq()  local
188 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq()
189 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq()
192 return freq; in calculate_cpu_freq()
209 int freq; in show_cpu_clock_sel() local
212 freq = calculate_cpu_freq(data); in show_cpu_clock_sel()
217 freq = fs_speeds[fid]; in show_cpu_clock_sel()
219 switch (freq) { in show_cpu_clock_sel()
221 freq = 160000; in show_cpu_clock_sel()
224 freq = 320000; in show_cpu_clock_sel()
230 return sprintf(buf, "%d\n", freq); in show_cpu_clock_sel()
236 int m, n, freq; in calculate_src_freq() local
245 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_src_freq()
246 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] & in calculate_src_freq()
249 return freq; in calculate_src_freq()
266 int freq; in show_src_clock_sel() local
269 freq = calculate_src_freq(data); in show_src_clock_sel()
274 freq = 96000; in show_src_clock_sel()
276 freq = 100000; in show_src_clock_sel()
278 return sprintf(buf, "%d\n", freq); in show_src_clock_sel()
284 int m, n, freq; in calculate_pci_freq() local
293 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_pci_freq()
294 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] >> in calculate_pci_freq()
297 return freq; in calculate_pci_freq()
314 int freq; in show_pci_clock_sel() local
317 freq = calculate_pci_freq(data); in show_pci_clock_sel()
319 freq = 33333; in show_pci_clock_sel()
321 return sprintf(buf, "%d\n", freq); in show_pci_clock_sel()