Lines Matching refs:base_clock
165 int base_clock = AR7_REF_CLOCK; in tnetd7300_get_clock() local
175 base_clock = bus_clock; in tnetd7300_get_clock()
178 base_clock = AR7_REF_CLOCK; in tnetd7300_get_clock()
181 base_clock = AR7_XTAL_CLOCK; in tnetd7300_get_clock()
184 base_clock = cpu_clk.rate; in tnetd7300_get_clock()
189 return base_clock / divisor; in tnetd7300_get_clock()
192 return (base_clock >> (mul / 16 + 1)) / divisor; in tnetd7300_get_clock()
196 (base_clock * mul) >> 1 : in tnetd7300_get_clock()
197 (base_clock * (mul - 1)) >> 2; in tnetd7300_get_clock()
202 return base_clock / divisor; in tnetd7300_get_clock()
204 return base_clock * mul / divisor; in tnetd7300_get_clock()
211 int base_clock = bus_clk.rate; in tnetd7300_set_clock() local
215 base_clock = bus_clk.rate; in tnetd7300_set_clock()
218 base_clock = AR7_REF_CLOCK; in tnetd7300_set_clock()
221 base_clock = AR7_XTAL_CLOCK; in tnetd7300_set_clock()
224 base_clock = cpu_clk.rate; in tnetd7300_set_clock()
228 calculate(base_clock, frequency, &prediv, &postdiv, &mul); in tnetd7300_set_clock()