Searched refs:estar (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/cpufreq/ |
H A D | sparc-us2e-cpufreq.c | 117 static void us2e_transition(unsigned long estar, unsigned long new_bits, us2e_transition() argument 125 estar &= ~ESTAR_MODE_DIV_MASK; us2e_transition() 130 write_hbreg(HBIRD_ESTAR_MODE_ADDR, estar | new_bits); us2e_transition() 134 write_hbreg(HBIRD_ESTAR_MODE_ADDR, estar | new_bits); us2e_transition() 137 us2e_transition(estar, ESTAR_MODE_DIV_2, clock_tick, us2e_transition() 139 us2e_transition(estar, new_bits, clock_tick, us2e_transition() 142 us2e_transition(estar, ESTAR_MODE_DIV_2, clock_tick, us2e_transition() 144 us2e_transition(estar, new_bits, clock_tick, us2e_transition() 148 write_hbreg(HBIRD_ESTAR_MODE_ADDR, estar | new_bits); us2e_transition() 150 write_hbreg(HBIRD_ESTAR_MODE_ADDR, estar | new_bits); us2e_transition() 205 static unsigned long estar_to_divisor(unsigned long estar) estar_to_divisor() argument 209 switch (estar & ESTAR_MODE_DIV_MASK) { estar_to_divisor() 235 unsigned long clock_tick, estar; us2e_freq_get() local 241 estar = read_hbreg(HBIRD_ESTAR_MODE_ADDR); us2e_freq_get() 245 return clock_tick / estar_to_divisor(estar); us2e_freq_get() 252 unsigned long clock_tick, divisor, old_divisor, estar; us2e_freq_target() local 263 estar = read_hbreg(HBIRD_ESTAR_MODE_ADDR); us2e_freq_target() 265 old_divisor = estar_to_divisor(estar); us2e_freq_target() 268 us2e_transition(estar, new_bits, clock_tick * 1000, us2e_freq_target()
|
Completed in 131 milliseconds