Searched refs:of_clk (Results 1 – 11 of 11) sorted by relevance
/linux/drivers/clocksource/ |
H A D | timer-of.c | 85 static __init void timer_of_clk_exit(struct of_timer_clk *of_clk) in timer_of_clk_exit() argument 87 of_clk->rate = 0; in timer_of_clk_exit() 88 clk_disable_unprepare(of_clk->clk); in timer_of_clk_exit() 89 clk_put(of_clk->clk); in timer_of_clk_exit() 102 struct of_timer_clk *of_clk) in timer_of_clk_init() argument 106 of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) : in timer_of_clk_init() 107 of_clk_get(np, of_clk->index); in timer_of_clk_init() 108 if (IS_ERR(of_clk->clk)) { in timer_of_clk_init() 109 ret = PTR_ERR(of_clk->clk); in timer_of_clk_init() 115 ret = clk_prepare_enable(of_clk->clk); in timer_of_clk_init() [all …]
|
H A D | timer-of.h | 39 struct of_timer_clk of_clk; member 60 return to->of_clk.rate; in timer_of_rate() 65 return to->of_clk.period; in timer_of_period()
|
H A D | timer-msc313e.c | 185 to->of_clk.rate = clk_get_rate(to->of_clk.clk) / MSC313E_CLK_DIVIDER; in msc313e_clkevt_init() 186 to->of_clk.period = DIV_ROUND_UP(to->of_clk.rate, HZ); in msc313e_clkevt_init()
|
H A D | timer-stm32.c | 227 to->of_clk.rate = DIV_ROUND_CLOSEST(to->of_clk.rate, prescaler); in stm32_timer_set_prescaler() 228 to->of_clk.period = DIV_ROUND_UP(to->of_clk.rate, HZ); in stm32_timer_set_prescaler()
|
H A D | timer-rtl-otto.c | 124 rttm_enable_timer(to->of_base.base, mode, to->of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_start_timer() 211 rcs->to.of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_enable_clocksource() 269 if (rttm_cs.to.of_base.base && rttm_cs.to.of_clk.rate) { in rttm_probe()
|
H A D | timer-npcm7xx.c | 200 npcm7xx_to.of_clk.rate = npcm7xx_to.of_clk.rate / in npcm7xx_timer_init()
|
H A D | timer-imx-sysctr.c | 131 .of_clk = { 154 to_sysctr.of_clk.rate /= SYS_CTR_CLK_DIV; in __sysctr_timer_init()
|
H A D | timer-imx-tpm.c | 150 .of_clk = {
|
H A D | timer-milbeaut.c | 92 mlb_evt_timer_register_count(to, to->of_clk.period); in mlb_set_state_periodic()
|
H A D | timer-mediatek.c | 188 mtk_gpt_clkevt_time_setup(to, to->of_clk.period, TIMER_CLK_EVT); in mtk_gpt_clkevt_set_periodic()
|
/linux/ |
H A D | MAINTAINERS | 5716 F: include/linux/of_clk.h
|