Lines Matching refs:freq

191 	int m, n, freq;  in calculate_cpu_freq()  local
200 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq()
201 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq()
204 return freq; in calculate_cpu_freq()
221 int freq; in show_cpu_clock_sel() local
224 freq = calculate_cpu_freq(data); in show_cpu_clock_sel()
229 freq = fs_speeds[fid]; in show_cpu_clock_sel()
231 switch (freq) { in show_cpu_clock_sel()
233 freq = 160000; in show_cpu_clock_sel()
236 freq = 320000; in show_cpu_clock_sel()
242 return sprintf(buf, "%d\n", freq); in show_cpu_clock_sel()
248 int m, n, freq; in calculate_src_freq() local
257 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_src_freq()
258 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] & in calculate_src_freq()
261 return freq; in calculate_src_freq()
278 int freq; in show_src_clock_sel() local
281 freq = calculate_src_freq(data); in show_src_clock_sel()
286 freq = 96000; in show_src_clock_sel()
288 freq = 100000; in show_src_clock_sel()
290 return sprintf(buf, "%d\n", freq); in show_src_clock_sel()
296 int m, n, freq; in calculate_pci_freq() local
305 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_pci_freq()
306 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] >> in calculate_pci_freq()
309 return freq; in calculate_pci_freq()
326 int freq; in show_pci_clock_sel() local
329 freq = calculate_pci_freq(data); in show_pci_clock_sel()
331 freq = 33333; in show_pci_clock_sel()
333 return sprintf(buf, "%d\n", freq); in show_pci_clock_sel()