| /arch/powerpc/kernel/ |
| A D | mce.c | 242 evt, sizeof(*evt)); in machine_check_ue_event() 251 struct machine_check_event evt; in machine_check_queue_event() local 263 &evt, sizeof(evt)); in machine_check_queue_event() 287 struct machine_check_event *evt; in machine_process_ue_event() local 437 if (evt->version != MCE_V1) { in machine_check_print_event_info() 439 evt->version); in machine_check_print_event_info() 442 switch (evt->severity) { in machine_check_print_event_info() 462 switch(evt->initiator) { in machine_check_print_event_info() 484 switch (evt->error_type) { in machine_check_print_event_info() 566 if (ea && evt->srr0 != ea) { in machine_check_print_event_info() [all …]
|
| A D | time.c | 94 static int decrementer_set_next_event(unsigned long evt, 96 static int decrementer_shutdown(struct clock_event_device *evt); 525 struct clock_event_device *evt = this_cpu_ptr(&decrementers); in DEFINE_INTERRUPT_HANDLER_ASYNC() local 574 evt->event_handler(evt); in DEFINE_INTERRUPT_HANDLER_ASYNC() 807 static int decrementer_set_next_event(unsigned long evt, in decrementer_set_next_event() argument 810 __this_cpu_write(decrementers_next_tb, get_tb() + evt); in decrementer_set_next_event() 811 set_dec_or_work(evt); in decrementer_set_next_event()
|
| /arch/xtensa/kernel/ |
| A D | time.c | 56 struct clock_event_device evt; member 83 static int ccount_timer_shutdown(struct clock_event_device *evt) in ccount_timer_shutdown() argument 86 container_of(evt, struct ccount_timer, evt); in ccount_timer_shutdown() 89 disable_irq_nosync(evt->irq); in ccount_timer_shutdown() 98 container_of(evt, struct ccount_timer, evt); in ccount_timer_set_oneshot() 101 enable_irq(evt->irq); in ccount_timer_set_oneshot() 108 .evt = { 120 struct clock_event_device *evt = &this_cpu_ptr(&ccount_timer)->evt; in timer_interrupt() local 123 evt->event_handler(evt); in timer_interrupt() 130 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup() [all …]
|
| /arch/openrisc/kernel/ |
| A D | time.c | 72 struct clock_event_device *evt = in openrisc_clockevent_init() local 79 evt->broadcast = tick_broadcast; in openrisc_clockevent_init() 81 evt->name = "openrisc_timer_clockevent", in openrisc_clockevent_init() 82 evt->features = CLOCK_EVT_FEAT_ONESHOT, in openrisc_clockevent_init() 83 evt->rating = 300, in openrisc_clockevent_init() 84 evt->set_next_event = openrisc_timer_set_next_event, in openrisc_clockevent_init() 86 evt->cpumask = cpumask_of(cpu); in openrisc_clockevent_init() 89 clockevents_config_and_register(evt, cpuinfo->clock_frequency, in openrisc_clockevent_init() 117 struct clock_event_device *evt = in timer_interrupt() local 126 evt->event_handler(evt); in timer_interrupt()
|
| /arch/x86/xen/ |
| A D | time.c | 321 struct clock_event_device *evt = this_cpu_ptr(&xen_clock_events.evt); in xen_timer_interrupt() local 325 if (evt->event_handler) { in xen_timer_interrupt() 326 evt->event_handler(evt); in xen_timer_interrupt() 336 evt = &per_cpu(xen_clock_events, cpu).evt; in xen_teardown_timer() 338 if (evt->irq >= 0) { in xen_teardown_timer() 340 evt->irq = -1; in xen_teardown_timer() 347 struct clock_event_device *evt = &xevt->evt; in xen_setup_timer() local 350 WARN(evt->irq >= 0, "IRQ%d for CPU%d is already allocated\n", evt->irq, cpu); in xen_setup_timer() 351 if (evt->irq >= 0) in xen_setup_timer() 364 memcpy(evt, xen_clockevent, sizeof(*evt)); in xen_setup_timer() [all …]
|
| /arch/x86/kernel/ |
| A D | hpet.c | 76 return container_of(evt, struct hpet_channel, evt); in clockevent_to_channel() 307 delta >>= evt->shift; in hpet_clkevt_set_state_periodic() 402 struct clock_event_device *evt = &hc->evt; in hpet_init_clockevent() local 404 evt->rating = rating; in hpet_init_clockevent() 405 evt->irq = hc->irq; in hpet_init_clockevent() 619 struct clock_event_device *evt = &hc->evt; in hpet_msi_interrupt_handler() local 626 evt->event_handler(evt); in hpet_msi_interrupt_handler() 649 struct clock_event_device *evt = &hc->evt; in init_one_hpet_msi_clockevent() local 1275 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_rtc_timer_init() local 1373 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_set_periodic_freq() local [all …]
|
| /arch/arm/mach-spear/ |
| A D | time.c | 66 static int clockevent_next_event(unsigned long evt, 93 static inline void spear_timer_shutdown(struct clock_event_device *evt) in spear_timer_shutdown() argument 102 static int spear_shutdown(struct clock_event_device *evt) in spear_shutdown() argument 104 spear_timer_shutdown(evt); in spear_shutdown() 109 static int spear_set_oneshot(struct clock_event_device *evt) in spear_set_oneshot() argument 114 spear_timer_shutdown(evt); in spear_set_oneshot() 123 static int spear_set_periodic(struct clock_event_device *evt) in spear_set_periodic() argument 129 spear_timer_shutdown(evt); in spear_set_periodic() 172 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt() local 176 evt->event_handler(evt); in spear_timer_interrupt()
|
| /arch/nios2/kernel/ |
| A D | time.c | 52 to_nios2_clkevent(struct clock_event_device *evt) in to_nios2_clkevent() argument 54 return container_of(evt, struct nios2_clockevent_dev, ced); in to_nios2_clkevent() 162 struct clock_event_device *evt) in nios2_timer_set_next_event() argument 164 struct nios2_clockevent_dev *nios2_ced = to_nios2_clkevent(evt); in nios2_timer_set_next_event() 171 static int nios2_timer_shutdown(struct clock_event_device *evt) in nios2_timer_shutdown() argument 173 struct nios2_clockevent_dev *nios2_ced = to_nios2_clkevent(evt); in nios2_timer_shutdown() 183 struct nios2_clockevent_dev *nios2_ced = to_nios2_clkevent(evt); in nios2_timer_set_periodic() 191 static int nios2_timer_resume(struct clock_event_device *evt) in nios2_timer_resume() argument 193 struct nios2_clockevent_dev *nios2_ced = to_nios2_clkevent(evt); in nios2_timer_resume() 203 struct nios2_clockevent_dev *nios2_ced = to_nios2_clkevent(evt); in timer_interrupt() [all …]
|
| /arch/mips/kernel/ |
| A D | cevt-txx9.c | 88 static int txx9tmr_set_state_periodic(struct clock_event_device *evt) in txx9tmr_set_state_periodic() argument 91 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_periodic() 98 __raw_writel(((u64)(NSEC_PER_SEC / HZ) * evt->mult) >> evt->shift, in txx9tmr_set_state_periodic() 104 static int txx9tmr_set_state_oneshot(struct clock_event_device *evt) in txx9tmr_set_state_oneshot() argument 107 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_oneshot() 115 static int txx9tmr_set_state_shutdown(struct clock_event_device *evt) in txx9tmr_set_state_shutdown() argument 118 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_set_state_shutdown() 126 static int txx9tmr_tick_resume(struct clock_event_device *evt) in txx9tmr_tick_resume() argument 129 container_of(evt, struct txx9_clock_event_device, cd); in txx9tmr_tick_resume() 139 struct clock_event_device *evt) in txx9tmr_set_next_event() argument [all …]
|
| A D | cevt-gt641xx.c | 36 struct clock_event_device *evt) in gt641xx_timer0_set_next_event() argument 54 static int gt641xx_timer0_shutdown(struct clock_event_device *evt) in gt641xx_timer0_shutdown() argument 68 static int gt641xx_timer0_set_oneshot(struct clock_event_device *evt) in gt641xx_timer0_set_oneshot() argument 83 static int gt641xx_timer0_set_periodic(struct clock_event_device *evt) in gt641xx_timer0_set_periodic() argument
|
| A D | cevt-ds1287.c | 45 struct clock_event_device *evt) in ds1287_set_next_event() argument 50 static int ds1287_shutdown(struct clock_event_device *evt) in ds1287_shutdown() argument 64 static int ds1287_set_periodic(struct clock_event_device *evt) in ds1287_set_periodic() argument
|
| /arch/m68k/coldfire/ |
| A D | pit.c | 46 static int cf_pit_set_periodic(struct clock_event_device *evt) in cf_pit_set_periodic() argument 56 static int cf_pit_set_oneshot(struct clock_event_device *evt) in cf_pit_set_oneshot() argument 64 static int cf_pit_shutdown(struct clock_event_device *evt) in cf_pit_shutdown() argument 76 struct clock_event_device *evt) in cf_pit_next_event() argument 100 struct clock_event_device *evt = &cf_pit_clockevent; in pit_tick() local 108 evt->event_handler(evt); in pit_tick()
|
| /arch/arm/mach-omap1/ |
| A D | time.c | 123 struct clock_event_device *evt) in omap_mpu_set_next_event() argument 129 static int omap_mpu_set_oneshot(struct clock_event_device *evt) in omap_mpu_set_oneshot() argument 136 static int omap_mpu_set_periodic(struct clock_event_device *evt) in omap_mpu_set_periodic() argument 153 struct clock_event_device *evt = &clockevent_mpu_timer1; in omap_mpu_timer1_interrupt() local 155 evt->event_handler(evt); in omap_mpu_timer1_interrupt()
|
| A D | timer32k.c | 115 static int omap_32k_timer_shutdown(struct clock_event_device *evt) in omap_32k_timer_shutdown() argument 121 static int omap_32k_timer_set_periodic(struct clock_event_device *evt) in omap_32k_timer_set_periodic() argument 141 struct clock_event_device *evt = &clockevent_32k_timer; in omap_32k_timer_interrupt() local 144 evt->event_handler(evt); in omap_32k_timer_interrupt()
|
| /arch/parisc/kernel/ |
| A D | time.c | 31 static int parisc_timer_next_event(unsigned long delta, struct clock_event_device *evt) in parisc_timer_next_event() argument 57 static int parisc_set_state_oneshot(struct clock_event_device *evt) in parisc_set_state_oneshot() argument 59 parisc_timer_next_event(clocktick, evt); in parisc_set_state_oneshot() 64 static int parisc_set_state_periodic(struct clock_event_device *evt) in parisc_set_state_periodic() argument 66 parisc_timer_next_event(clocktick, evt); in parisc_set_state_periodic() 71 static int parisc_set_state_shutdown(struct clock_event_device *evt) in parisc_set_state_shutdown() argument
|
| /arch/sparc/kernel/ |
| A D | time_32.c | 104 static int timer_ce_shutdown(struct clock_event_device *evt) in timer_ce_shutdown() argument 111 static int timer_ce_set_periodic(struct clock_event_device *evt) in timer_ce_set_periodic() argument 185 static int percpu_ce_shutdown(struct clock_event_device *evt) in percpu_ce_shutdown() argument 187 int cpu = cpumask_first(evt->cpumask); in percpu_ce_shutdown() 193 static int percpu_ce_set_periodic(struct clock_event_device *evt) in percpu_ce_set_periodic() argument 195 int cpu = cpumask_first(evt->cpumask); in percpu_ce_set_periodic() 202 struct clock_event_device *evt) in percpu_ce_set_next_event() argument 204 int cpu = cpumask_first(evt->cpumask); in percpu_ce_set_next_event()
|
| A D | time_64.c | 697 struct clock_event_device *evt) in sparc64_next_event() argument 702 static int sparc64_timer_shutdown(struct clock_event_device *evt) in sparc64_timer_shutdown() argument 723 struct clock_event_device *evt = &per_cpu(sparc64_events, cpu); in timer_interrupt() local 732 if (unlikely(!evt->event_handler)) { in timer_interrupt() 736 evt->event_handler(evt); in timer_interrupt()
|
| /arch/mips/loongson2ef/common/cs5536/ |
| A D | cs5536_mfgpt.c | 50 static int mfgpt_timer_set_periodic(struct clock_event_device *evt) in mfgpt_timer_set_periodic() argument 62 static int mfgpt_timer_shutdown(struct clock_event_device *evt) in mfgpt_timer_shutdown() argument 64 if (clockevent_state_periodic(evt) || clockevent_state_oneshot(evt)) { in mfgpt_timer_shutdown()
|
| /arch/powerpc/platforms/powernv/ |
| A D | opal.c | 427 __be64 evt, len; in opal_get_chars() local 431 opal_poll_events(&evt); in opal_get_chars() 520 __be64 evt; in __opal_flush_console() local 529 opal_poll_events(&evt); in __opal_flush_console() 586 struct machine_check_event *evt) in opal_recover_mce() argument 597 } else if (evt->severity == MCE_SEV_FATAL) { in opal_recover_mce() 603 if (!recovered && evt->sync_error) { in opal_recover_mce() 675 struct machine_check_event evt; in opal_machine_check() local 681 if (evt.version != MCE_V1) { in opal_machine_check() 683 evt.version); in opal_machine_check() [all …]
|
| /arch/arm/kernel/ |
| A D | smp_twd.c | 63 static int twd_set_next_event(unsigned long evt, in twd_set_next_event() argument 70 writel_relaxed(evt, twd_base + TWD_TIMER_COUNTER); in twd_set_next_event() 181 struct clock_event_device *evt = dev_id; in twd_handler() local 184 evt->event_handler(evt); in twd_handler()
|
| /arch/mips/loongson64/ |
| A D | hpet.c | 85 static int hpet_set_state_periodic(struct clock_event_device *evt) in hpet_set_state_periodic() argument 114 static int hpet_set_state_shutdown(struct clock_event_device *evt) in hpet_set_state_shutdown() argument 128 static int hpet_set_state_oneshot(struct clock_event_device *evt) in hpet_set_state_oneshot() argument 149 static int hpet_tick_resume(struct clock_event_device *evt) in hpet_tick_resume() argument 159 struct clock_event_device *evt) in hpet_next_event() argument
|
| /arch/microblaze/kernel/ |
| A D | timer.c | 126 static int xilinx_timer_shutdown(struct clock_event_device *evt) in xilinx_timer_shutdown() argument 133 static int xilinx_timer_set_periodic(struct clock_event_device *evt) in xilinx_timer_set_periodic() argument 158 struct clock_event_device *evt = &clockevent_xilinx_timer; in timer_interrupt() local 160 evt->event_handler(evt); in timer_interrupt()
|
| /arch/loongarch/kernel/ |
| A D | time.c | 47 static int constant_set_state_oneshot(struct clock_event_device *evt) in constant_set_state_oneshot() argument 63 static int constant_set_state_periodic(struct clock_event_device *evt) in constant_set_state_periodic() argument 80 static int constant_set_state_shutdown(struct clock_event_device *evt) in constant_set_state_shutdown() argument 95 static int constant_timer_next_event(unsigned long delta, struct clock_event_device *evt) in constant_timer_next_event() argument
|
| /arch/powerpc/platforms/pseries/ |
| A D | ras.c | 782 static int recover_mce(struct pt_regs *regs, struct machine_check_event *evt) in recover_mce() argument 790 } else if (evt->disposition == MCE_DISPOSITION_RECOVERED) { in recover_mce() 793 } else if (evt->severity == MCE_SEV_FATAL) { in recover_mce() 799 if (!recovered && evt->sync_error) { in recover_mce() 842 struct machine_check_event evt; in pSeries_machine_check_exception() local 844 if (!get_mce_event(&evt, MCE_EVENT_RELEASE)) in pSeries_machine_check_exception() 848 if (evt.version != MCE_V1) { in pSeries_machine_check_exception() 850 evt.version); in pSeries_machine_check_exception() 853 machine_check_print_event_info(&evt, user_mode(regs), false); in pSeries_machine_check_exception() 855 if (recover_mce(regs, &evt)) in pSeries_machine_check_exception()
|
| /arch/x86/kernel/apic/ |
| A D | apic.c | 414 struct clock_event_device *evt) in lapic_next_event() argument 421 struct clock_event_device *evt) in lapic_next_deadline() argument 433 static int lapic_timer_shutdown(struct clock_event_device *evt) in lapic_timer_shutdown() argument 438 if (evt->features & CLOCK_EVT_FEAT_DUMMY) in lapic_timer_shutdown() 464 if (evt->features & CLOCK_EVT_FEAT_DUMMY) in lapic_timer_set_periodic_oneshot() 473 return lapic_timer_set_periodic_oneshot(evt, false); in lapic_timer_set_periodic() 478 return lapic_timer_set_periodic_oneshot(evt, true); in lapic_timer_set_oneshot() 1013 struct clock_event_device *evt = this_cpu_ptr(&lapic_events); in local_apic_timer_interrupt() local 1026 if (!evt->event_handler) { in local_apic_timer_interrupt() 1030 lapic_timer_shutdown(evt); in local_apic_timer_interrupt() [all …]
|