/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-davinci.c | 68 to_davinci_clockevent(struct clock_event_device *clockevent) in to_davinci_clockevent() argument 70 return container_of(clockevent, struct davinci_clockevent, dev); in to_davinci_clockevent() 74 davinci_clockevent_read(struct davinci_clockevent *clockevent, in davinci_clockevent_read() argument 77 return readl_relaxed(clockevent->base + reg); in davinci_clockevent_read() 80 static void davinci_clockevent_write(struct davinci_clockevent *clockevent, in davinci_clockevent_write() argument 83 writel_relaxed(val, clockevent->base + reg); in davinci_clockevent_write() 118 struct davinci_clockevent *clockevent; in davinci_clockevent_shutdown() local 120 clockevent = to_davinci_clockevent(dev); in davinci_clockevent_shutdown() 122 davinci_tim12_shutdown(clockevent->base); in davinci_clockevent_shutdown() 129 struct davinci_clockevent *clockevent in davinci_clockevent_set_oneshot() local 142 struct davinci_clockevent *clockevent = to_davinci_clockevent(dev); davinci_clockevent_set_next_event_std() local 158 struct davinci_clockevent *clockevent = to_davinci_clockevent(dev); davinci_clockevent_set_next_event_cmp() local 171 struct davinci_clockevent *clockevent = data; davinci_timer_irq_timer() local 246 struct davinci_clockevent *clockevent; davinci_timer_register() local [all...] |
H A D | timer-vt8500.c | 86 static struct clock_event_device clockevent = { variable 133 clockevent.cpumask = cpumask_of(0); in vt8500_timer_init() 137 &clockevent); in vt8500_timer_init() 140 clockevent.name); in vt8500_timer_init() 144 clockevents_config_and_register(&clockevent, VT8500_TIMER_HZ, in vt8500_timer_init()
|
H A D | timer-ti-dm-systimer.c | 31 static u32 clockevent; variable 223 * clockevent or clocksource depending if the counter_32k is available on the 231 * clock as the clocksource, and any available dmtimer as clockevent. 276 clockevent = pa; in dmtimer_systimer_assign_alwon() 280 clockevent = DMTIMER_INST_DONT_CARE; in dmtimer_systimer_assign_alwon() 298 if (pa == clocksource || pa == clockevent) { in dmtimer_systimer_find_first_available() 311 /* Selects the best clocksource and clockevent to use */ 317 if (clockevent == DMTIMER_INST_DONT_CARE) in dmtimer_systimer_select_best() 318 clockevent = dmtimer_systimer_find_first_available(); in dmtimer_systimer_select_best() 320 pr_debug("%s: counter_32k: %i clocksource: %08x clockevent in dmtimer_systimer_select_best() 431 to_dmtimer_clockevent(struct clock_event_device *clockevent) to_dmtimer_clockevent() argument [all...] |
H A D | sh_tmu.c | 243 /* notify clockevent layer */ in sh_tmu_interrupt() 439 bool clockevent, bool clocksource) in sh_tmu_register() 441 if (clockevent) { in sh_tmu_register() 453 bool clockevent, bool clocksource, in sh_tmu_channel_setup() 457 if (!clockevent && !clocksource) in sh_tmu_channel_setup() 476 clockevent, clocksource); in sh_tmu_channel_setup() 637 return -EBUSY; /* cannot unregister clockevent and clocksource */ in sh_tmu_remove() 438 sh_tmu_register(struct sh_tmu_channel *ch, const char *name, bool clockevent, bool clocksource) sh_tmu_register() argument 452 sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, bool clockevent, bool clocksource, struct sh_tmu_device *tmu) sh_tmu_channel_setup() argument
|
H A D | sh_cmt.c | 592 /* setup timeout if no clockevent */ in sh_cmt_start() 847 bool clockevent, bool clocksource) in sh_cmt_register() 851 if (clockevent) { in sh_cmt_register() 867 unsigned int hwidx, bool clockevent, in sh_cmt_setup_channel() 874 if (!clockevent && !clocksource) in sh_cmt_setup_channel() 917 clockevent, clocksource); in sh_cmt_setup_channel() 1064 bool clockevent = i == 0; in sh_cmt_setup() local 1067 clockevent, clocksource, cmt); in sh_cmt_setup() 1131 return -EBUSY; /* cannot unregister clockevent and clocksource */ in sh_cmt_remove() 846 sh_cmt_register(struct sh_cmt_channel *ch, const char *name, bool clockevent, bool clocksource) sh_cmt_register() argument 866 sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index, unsigned int hwidx, bool clockevent, bool clocksource, struct sh_cmt_device *cmt) sh_cmt_setup_channel() argument
|
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-davinci.c | 67 to_davinci_clockevent(struct clock_event_device *clockevent) in to_davinci_clockevent() argument 69 return container_of(clockevent, struct davinci_clockevent, dev); in to_davinci_clockevent() 73 davinci_clockevent_read(struct davinci_clockevent *clockevent, in davinci_clockevent_read() argument 76 return readl_relaxed(clockevent->base + reg); in davinci_clockevent_read() 79 static void davinci_clockevent_write(struct davinci_clockevent *clockevent, in davinci_clockevent_write() argument 82 writel_relaxed(val, clockevent->base + reg); in davinci_clockevent_write() 117 struct davinci_clockevent *clockevent; in davinci_clockevent_shutdown() local 119 clockevent = to_davinci_clockevent(dev); in davinci_clockevent_shutdown() 121 davinci_tim12_shutdown(clockevent->base); in davinci_clockevent_shutdown() 128 struct davinci_clockevent *clockevent in davinci_clockevent_set_oneshot() local 141 struct davinci_clockevent *clockevent = to_davinci_clockevent(dev); davinci_clockevent_set_next_event_std() local 157 struct davinci_clockevent *clockevent = to_davinci_clockevent(dev); davinci_clockevent_set_next_event_cmp() local 170 struct davinci_clockevent *clockevent = data; davinci_timer_irq_timer() local 245 struct davinci_clockevent *clockevent; davinci_timer_register() local [all...] |
H A D | timer-vt8500.c | 86 static struct clock_event_device clockevent = { variable 133 clockevent.cpumask = cpumask_of(0); in vt8500_timer_init() 137 &clockevent); in vt8500_timer_init() 140 clockevent.name); in vt8500_timer_init() 144 clockevents_config_and_register(&clockevent, VT8500_TIMER_HZ, in vt8500_timer_init()
|
H A D | timer-ti-dm-systimer.c | 31 static u32 clockevent; variable 223 * clockevent or clocksource depending if the counter_32k is available on the 231 * clock as the clocksource, and any available dmtimer as clockevent. 276 clockevent = pa; in dmtimer_systimer_assign_alwon() 280 clockevent = DMTIMER_INST_DONT_CARE; in dmtimer_systimer_assign_alwon() 298 if (res.start == clocksource || res.start == clockevent) in dmtimer_systimer_find_first_available() 309 /* Selects the best clocksource and clockevent to use */ 315 if (clockevent == DMTIMER_INST_DONT_CARE) in dmtimer_systimer_select_best() 316 clockevent = dmtimer_systimer_find_first_available(); in dmtimer_systimer_select_best() 318 pr_debug("%s: counter_32k: %i clocksource: %08x clockevent in dmtimer_systimer_select_best() 429 to_dmtimer_clockevent(struct clock_event_device *clockevent) to_dmtimer_clockevent() argument [all...] |
H A D | sh_tmu.c | 243 /* notify clockevent layer */ in sh_tmu_interrupt() 439 bool clockevent, bool clocksource) in sh_tmu_register() 441 if (clockevent) { in sh_tmu_register() 453 bool clockevent, bool clocksource, in sh_tmu_channel_setup() 457 if (!clockevent && !clocksource) in sh_tmu_channel_setup() 476 clockevent, clocksource); in sh_tmu_channel_setup() 438 sh_tmu_register(struct sh_tmu_channel *ch, const char *name, bool clockevent, bool clocksource) sh_tmu_register() argument 452 sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, bool clockevent, bool clocksource, struct sh_tmu_device *tmu) sh_tmu_channel_setup() argument
|
H A D | sh_cmt.c | 596 /* setup timeout if no clockevent */ in sh_cmt_start() 857 bool clockevent, bool clocksource) in sh_cmt_register() 861 if (clockevent) { in sh_cmt_register() 877 unsigned int hwidx, bool clockevent, in sh_cmt_setup_channel() 884 if (!clockevent && !clocksource) in sh_cmt_setup_channel() 927 clockevent, clocksource); in sh_cmt_setup_channel() 1082 bool clockevent = i == 0; in sh_cmt_setup() local 1085 clockevent, clocksource, cmt); in sh_cmt_setup() 856 sh_cmt_register(struct sh_cmt_channel *ch, const char *name, bool clockevent, bool clocksource) sh_cmt_register() argument 876 sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index, unsigned int hwidx, bool clockevent, bool clocksource, struct sh_cmt_device *cmt) sh_cmt_setup_channel() argument
|
/kernel/linux/linux-5.10/arch/xtensa/kernel/ |
H A D | time.c | 134 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup() local 138 clockevent->name = timer->name; in local_timer_setup() 139 clockevent->cpumask = cpumask_of(cpu); in local_timer_setup() 140 clockevent->irq = irq_create_mapping(NULL, LINUX_TIMER_INT); in local_timer_setup() 141 if (WARN(!clockevent->irq, "error: can't map timer irq")) in local_timer_setup() 143 clockevents_config_and_register(clockevent, ccount_freq, in local_timer_setup()
|
/kernel/linux/linux-6.6/arch/xtensa/kernel/ |
H A D | time.c | 130 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup() local 134 clockevent->name = timer->name; in local_timer_setup() 135 clockevent->cpumask = cpumask_of(cpu); in local_timer_setup() 136 clockevent->irq = irq_create_mapping(NULL, LINUX_TIMER_INT); in local_timer_setup() 137 if (WARN(!clockevent->irq, "error: can't map timer irq")) in local_timer_setup() 139 clockevents_config_and_register(clockevent, ccount_freq, in local_timer_setup()
|