Searched refs:ttc (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/clocksource/
H A Dcadence_ttc_timer.c91 struct ttc_timer ttc; member in struct:ttc_timer_clocksource
99 struct ttc_timer ttc; member in struct:ttc_timer_clockevent
146 struct ttc_timer *timer = &ttce->ttc; ttc_clock_event_interrupt()
163 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; __ttc_clocksource_read()
186 struct ttc_timer *timer = &ttce->ttc; ttc_set_next_event()
200 struct ttc_timer *timer = &ttce->ttc; ttc_shutdown()
212 struct ttc_timer *timer = &ttce->ttc; ttc_set_periodic()
215 DIV_ROUND_CLOSEST(ttce->ttc.freq, PRESCALE * HZ)); ttc_set_periodic()
222 struct ttc_timer *timer = &ttce->ttc; ttc_resume()
235 struct ttc_timer *ttc = to_ttc_timer(nb); ttc_rate_change_clocksource_cb() local
236 struct ttc_timer_clocksource *ttccs = container_of(ttc, ttc_rate_change_clocksource_cb()
237 struct ttc_timer_clocksource, ttc); ttc_rate_change_clocksource_cb()
270 readl_relaxed(ttccs->ttc.base_addr + ttc_rate_change_clocksource_cb()
296 ttccs->ttc.base_addr + TTC_CLK_CNTRL_OFFSET); ttc_rate_change_clocksource_cb()
306 ttccs->ttc.base_addr + TTC_CLK_CNTRL_OFFSET); ttc_rate_change_clocksource_cb()
316 ttccs->ttc.base_addr + TTC_CLK_CNTRL_OFFSET); ttc_rate_change_clocksource_cb()
335 ttccs->ttc.clk = clk; ttc_setup_clocksource()
337 err = clk_prepare_enable(ttccs->ttc.clk); ttc_setup_clocksource()
343 ttccs->ttc.freq = clk_get_rate(ttccs->ttc.clk); ttc_setup_clocksource()
345 ttccs->ttc.clk_rate_change_nb.notifier_call = ttc_setup_clocksource()
347 ttccs->ttc.clk_rate_change_nb.next = NULL; ttc_setup_clocksource()
348 if (clk_notifier_register(ttccs->ttc.clk, ttc_setup_clocksource()
349 &ttccs->ttc.clk_rate_change_nb)) ttc_setup_clocksource()
352 ttccs->ttc.base_addr = base; ttc_setup_clocksource()
364 writel_relaxed(0x0, ttccs->ttc.base_addr + TTC_IER_OFFSET); ttc_setup_clocksource()
366 ttccs->ttc.base_addr + TTC_CLK_CNTRL_OFFSET); ttc_setup_clocksource()
368 ttccs->ttc.base_addr + TTC_CNT_CNTRL_OFFSET); ttc_setup_clocksource()
370 err = clocksource_register_hz(&ttccs->cs, ttccs->ttc.freq / PRESCALE); ttc_setup_clocksource()
378 ttccs->ttc.freq / PRESCALE); ttc_setup_clocksource()
385 struct ttc_timer *ttc = to_ttc_timer(nb); ttc_rate_change_clockevent_cb() local
386 struct ttc_timer_clockevent *ttcce = container_of(ttc, ttc_rate_change_clockevent_cb()
387 struct ttc_timer_clockevent, ttc); ttc_rate_change_clockevent_cb()
392 ttc->freq = ndata->new_rate; ttc_rate_change_clockevent_cb()
414 ttcce->ttc.clk = clk; ttc_setup_clockevent()
416 err = clk_prepare_enable(ttcce->ttc.clk); ttc_setup_clockevent()
422 ttcce->ttc.clk_rate_change_nb.notifier_call = ttc_setup_clockevent()
424 ttcce->ttc.clk_rate_change_nb.next = NULL; ttc_setup_clockevent()
425 if (clk_notifier_register(ttcce->ttc.clk, ttc_setup_clockevent()
426 &ttcce->ttc.clk_rate_change_nb)) ttc_setup_clockevent()
428 ttcce->ttc.freq = clk_get_rate(ttcce->ttc.clk); ttc_setup_clockevent()
430 ttcce->ttc.base_addr = base; ttc_setup_clockevent()
447 writel_relaxed(0x23, ttcce->ttc.base_addr + TTC_CNT_CNTRL_OFFSET); ttc_setup_clockevent()
449 ttcce->ttc.base_addr + TTC_CLK_CNTRL_OFFSET); ttc_setup_clockevent()
450 writel_relaxed(0x1, ttcce->ttc.base_addr + TTC_IER_OFFSET); ttc_setup_clockevent()
460 ttcce->ttc.freq / PRESCALE, 1, 0xfffe); ttc_setup_clockevent()
524 CLOCKSOURCE_OF_DECLARE(ttc, "cdns,ttc", ttc_timer_init);
/linux-4.4.14/sound/soc/pxa/
H A Dttc-dkb.c41 /* ttc machine dapm widgets */
52 /* ttc machine audio map */
96 /* ttc/td-dkb digital audio interface glue - connects codec <--> CPU */
111 /* ttc/td audio machine driver */
113 .name = "ttc-dkb-hifi",
141 .name = "ttc-dkb-audio",
153 MODULE_ALIAS("platform:ttc-dkb-audio");
H A DMakefile34 snd-soc-ttc-dkb-objs := ttc-dkb.o
53 obj-$(CONFIG_SND_SOC_TTC_DKB) += snd-soc-ttc-dkb.o

Completed in 383 milliseconds