Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clocksource/
H A Dtimer-loongson1-pwm.c33 struct ls1x_clocksource { struct
39 static inline struct ls1x_clocksource *to_ls1x_clksrc(struct clocksource *c) in to_ls1x_clksrc() argument
41 return container_of(c, struct ls1x_clocksource, clksrc); in to_ls1x_clksrc()
160 struct ls1x_clocksource *ls1x_cs = to_ls1x_clksrc(cs); in ls1x_clocksource_read()
206 static struct ls1x_clocksource ls1x_clocksource = { variable
228 ls1x_clocksource.reg_base = timer_of_base(to); in ls1x_pwm_clocksource_init()
229 ls1x_clocksource.ticks_per_jiffy = timer_of_period(to); in ls1x_pwm_clocksource_init()
231 return clocksource_register_hz(&ls1x_clocksource.clksrc, in ls1x_pwm_clocksource_init()