Home
last modified time | relevance | path

Searched refs:timer_freq (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/arch/mips/ralink/
Dtimer.c33 unsigned long timer_freq; member
51 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq()
73 if (rt->timer_freq < divisor) in rt_timer_config()
74 rt->timer_div = rt->timer_freq; in rt_timer_config()
78 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_config()
87 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_enable()
122 rt->timer_freq = clk_get_rate(clk) / TMR0CTL_PRESCALE_DIV; in rt_timer_probe()
123 if (!rt->timer_freq) in rt_timer_probe()
133 dev_info(&pdev->dev, "maximum frequency is %luHz\n", rt->timer_freq); in rt_timer_probe()
/linux-5.19.10/drivers/clocksource/
Dtimer-ixp4xx.c164 unsigned int timer_freq) in ixp4xx_timer_register() argument
180 tmr->latch = DIV_ROUND_CLOSEST(timer_freq, in ixp4xx_timer_register()
196 clocksource_mmio_init(NULL, "OSTS", timer_freq, 200, 32, in ixp4xx_timer_register()
215 clockevents_config_and_register(&tmr->clkevt, timer_freq, in ixp4xx_timer_register()
218 sched_clock_register(ixp4xx_read_sched_clock, 32, timer_freq); in ixp4xx_timer_register()
223 tmr->delay_timer.freq = timer_freq; in ixp4xx_timer_register()
/linux-5.19.10/drivers/net/wan/
Dixp4xx_hss.c1231 static u32 check_clock(u32 timer_freq, u32 rate, u32 a, u32 b, u32 c, in check_clock() argument
1238 new_rate = timer_freq * (u64)(c + 1); in check_clock()
1250 static void find_best_clock(u32 timer_freq, u32 rate, u32 *best, u32 *reg) in find_best_clock() argument
1254 a = timer_freq / rate; in find_best_clock()
1257 check_clock(timer_freq, rate, 0x3FF, 1, 1, best, &diff, reg); in find_best_clock()
1262 rate = timer_freq; in find_best_clock()
1265 if (rate * a == timer_freq) { /* don't divide by 0 later */ in find_best_clock()
1266 check_clock(timer_freq, rate, a - 1, 1, 1, best, &diff, reg); in find_best_clock()
1273 do_div(c, timer_freq - rate * a); in find_best_clock()
1277 !check_clock(timer_freq, rate, a - 1, 1, 1, best, in find_best_clock()
[all …]
/linux-5.19.10/arch/alpha/kernel/
Dsetup.c1147 unsigned long timer_freq; in show_cpuinfo() local
1160 timer_freq = (100UL * hwrpb->intr_freq) / 4096; in show_cpuinfo()
1162 timer_freq = 100UL * CONFIG_HZ; in show_cpuinfo()
1190 timer_freq / 100, timer_freq % 100, in show_cpuinfo()