Lines Matching +full:gic +full:- +full:its

9 #define pr_fmt(fmt) "mips-gic-timer: " fmt
22 #include <asm/mips-cps.h>
59 int cpu = cpumask_first(evt->cpumask); in gic_next_event()
71 res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; in gic_next_event()
80 cd->event_handler(cd); in gic_compare_interrupt()
94 cd->name = "MIPS GIC"; in gic_clockevent_cpu_init()
95 cd->features = CLOCK_EVT_FEAT_ONESHOT | in gic_clockevent_cpu_init()
98 cd->rating = 350; in gic_clockevent_cpu_init()
99 cd->irq = gic_timer_irq; in gic_clockevent_cpu_init()
100 cd->cpumask = cpumask_of(cpu); in gic_clockevent_cpu_init()
101 cd->set_next_event = gic_next_event; in gic_clockevent_cpu_init()
133 on_each_cpu(gic_update_frequency, (void *)cnd->new_rate, 1); in gic_clk_notifier()
154 return -ENXIO; in gic_clockevent_init()
163 "clockevents/mips/gic/timer:starting", in gic_clockevent_init()
174 .name = "GIC",
187 pr_info("GIC timer is unstable due to %s\n", reason); in gic_clocksource_unstable()
219 if (!mips_gic_present() || !node->parent || in gic_clocksource_of_init()
220 !of_device_is_compatible(node->parent, "mti,gic")) { in gic_clocksource_of_init()
222 return -ENXIO; in gic_clocksource_of_init()
235 } else if (of_property_read_u32(node, "clock-frequency", in gic_clocksource_of_init()
238 return -EINVAL; in gic_clocksource_of_init()
243 return -EINVAL; in gic_clocksource_of_init()
260 * It's safe to use the MIPS GIC timer as a sched clock source only if in gic_clocksource_of_init()
261 * its ticks are stable, which is true on either the platforms with in gic_clocksource_of_init()
273 TIMER_OF_DECLARE(mips_gic_timer, "mti,gic-timer",