/arch/powerpc/kernel/ |
D | mce.c | 37 static void machine_check_ue_event(struct machine_check_event *evt); 216 static void machine_check_ue_event(struct machine_check_event *evt) in machine_check_ue_event() argument 226 memcpy(this_cpu_ptr(&mce_ue_event_queue[index]), evt, sizeof(*evt)); in machine_check_ue_event() 238 struct machine_check_event evt; in machine_check_queue_event() local 240 if (!get_mce_event(&evt, MCE_EVENT_RELEASE)) in machine_check_queue_event() 249 memcpy(this_cpu_ptr(&mce_event_queue[index]), &evt, sizeof(evt)); in machine_check_queue_event() 261 struct machine_check_event *evt; in machine_process_ue_event() local 265 evt = this_cpu_ptr(&mce_ue_event_queue[index]); in machine_process_ue_event() 275 if (evt->error_type == MCE_ERROR_TYPE_UE) { in machine_process_ue_event() 276 if (evt->u.ue_error.ignore_event) { in machine_process_ue_event() [all …]
|
/arch/xtensa/kernel/ |
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() 95 static int ccount_timer_set_oneshot(struct clock_event_device *evt) in ccount_timer_set_oneshot() argument 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() [all …]
|
/arch/openrisc/kernel/ |
D | time.c | 68 struct clock_event_device *evt = in openrisc_clockevent_init() local 75 evt->broadcast = tick_broadcast; in openrisc_clockevent_init() 77 evt->name = "openrisc_timer_clockevent", in openrisc_clockevent_init() 78 evt->features = CLOCK_EVT_FEAT_ONESHOT, in openrisc_clockevent_init() 79 evt->rating = 300, in openrisc_clockevent_init() 80 evt->set_next_event = openrisc_timer_set_next_event, in openrisc_clockevent_init() 82 evt->cpumask = cpumask_of(cpu); in openrisc_clockevent_init() 85 clockevents_config_and_register(evt, cpuinfo->clock_frequency, in openrisc_clockevent_init() 113 struct clock_event_device *evt = in timer_interrupt() local 122 evt->event_handler(evt); in timer_interrupt()
|
/arch/x86/xen/ |
D | time.c | 192 static int xen_timerop_shutdown(struct clock_event_device *evt) in xen_timerop_shutdown() argument 201 struct clock_event_device *evt) in xen_timerop_set_next_event() argument 203 WARN_ON(!clockevent_state_oneshot(evt)); in xen_timerop_set_next_event() 232 static int xen_vcpuop_shutdown(struct clock_event_device *evt) in xen_vcpuop_shutdown() argument 245 static int xen_vcpuop_set_oneshot(struct clock_event_device *evt) in xen_vcpuop_set_oneshot() argument 257 struct clock_event_device *evt) in xen_vcpuop_set_next_event() argument 263 WARN_ON(!clockevent_state_oneshot(evt)); in xen_vcpuop_set_next_event() 298 struct clock_event_device evt; member 301 static DEFINE_PER_CPU(struct xen_clock_event_device, xen_clock_events) = { .evt.irq = -1 }; 305 struct clock_event_device *evt = this_cpu_ptr(&xen_clock_events.evt); in xen_timer_interrupt() local [all …]
|
/arch/x86/kernel/ |
D | hpet.c | 25 struct clock_event_device evt; member 71 struct hpet_channel *clockevent_to_channel(struct clock_event_device *evt) in clockevent_to_channel() argument 73 return container_of(evt, struct hpet_channel, evt); in clockevent_to_channel() 296 static int hpet_clkevt_set_state_periodic(struct clock_event_device *evt) in hpet_clkevt_set_state_periodic() argument 298 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_periodic() 303 delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; in hpet_clkevt_set_state_periodic() 304 delta >>= evt->shift; in hpet_clkevt_set_state_periodic() 327 static int hpet_clkevt_set_state_oneshot(struct clock_event_device *evt) in hpet_clkevt_set_state_oneshot() argument 329 unsigned int channel = clockevent_to_channel(evt)->num; in hpet_clkevt_set_state_oneshot() 340 static int hpet_clkevt_set_state_shutdown(struct clock_event_device *evt) in hpet_clkevt_set_state_shutdown() argument [all …]
|
/arch/arm/mach-spear/ |
D | time.c | 69 static int clockevent_next_event(unsigned long evt, 96 static inline void timer_shutdown(struct clock_event_device *evt) in timer_shutdown() argument 105 static int spear_shutdown(struct clock_event_device *evt) in spear_shutdown() argument 107 timer_shutdown(evt); in spear_shutdown() 112 static int spear_set_oneshot(struct clock_event_device *evt) in spear_set_oneshot() argument 117 timer_shutdown(evt); in spear_set_oneshot() 126 static int spear_set_periodic(struct clock_event_device *evt) in spear_set_periodic() argument 132 timer_shutdown(evt); in spear_set_periodic() 175 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt() local 179 evt->event_handler(evt); in spear_timer_interrupt()
|
/arch/mips/ralink/ |
D | cevt-rt3352.c | 39 static int systick_set_oneshot(struct clock_event_device *evt); 40 static int systick_shutdown(struct clock_event_device *evt); 43 struct clock_event_device *evt) in systick_next_event() argument 48 sdev = container_of(evt, struct systick_device, dev); in systick_next_event() 91 static int systick_shutdown(struct clock_event_device *evt) in systick_shutdown() argument 95 sdev = container_of(evt, struct systick_device, dev); in systick_shutdown() 105 static int systick_set_oneshot(struct clock_event_device *evt) in systick_set_oneshot() argument 109 sdev = container_of(evt, struct systick_device, dev); in systick_set_oneshot()
|
/arch/nios2/kernel/ |
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() 180 static int nios2_timer_set_periodic(struct clock_event_device *evt) in nios2_timer_set_periodic() argument 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() [all …]
|
/arch/m68k/coldfire/ |
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-iop32x/ |
D | time.c | 77 static int iop_set_periodic(struct clock_event_device *evt) in iop_set_periodic() argument 90 static int iop_set_oneshot(struct clock_event_device *evt) in iop_set_oneshot() argument 100 static int iop_shutdown(struct clock_event_device *evt) in iop_shutdown() argument 109 static int iop_resume(struct clock_event_device *evt) in iop_resume() argument 133 struct clock_event_device *evt = dev_id; in iop_timer_interrupt() local 136 evt->event_handler(evt); in iop_timer_interrupt()
|
/arch/mips/kernel/ |
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 …]
|
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
|
D | cevt-ds1287.c | 44 struct clock_event_device *evt) in ds1287_set_next_event() argument 49 static int ds1287_shutdown(struct clock_event_device *evt) in ds1287_shutdown() argument 63 static int ds1287_set_periodic(struct clock_event_device *evt) in ds1287_set_periodic() argument
|
/arch/arm/mach-omap1/ |
D | timer32k.c | 117 static int omap_32k_timer_shutdown(struct clock_event_device *evt) in omap_32k_timer_shutdown() argument 123 static int omap_32k_timer_set_periodic(struct clock_event_device *evt) in omap_32k_timer_set_periodic() argument 143 struct clock_event_device *evt = &clockevent_32k_timer; in omap_32k_timer_interrupt() local 146 evt->event_handler(evt); in omap_32k_timer_interrupt()
|
D | time.c | 121 struct clock_event_device *evt) in omap_mpu_set_next_event() argument 127 static int omap_mpu_set_oneshot(struct clock_event_device *evt) in omap_mpu_set_oneshot() argument 134 static int omap_mpu_set_periodic(struct clock_event_device *evt) in omap_mpu_set_periodic() argument 151 struct clock_event_device *evt = &clockevent_mpu_timer1; in omap_mpu_timer1_interrupt() local 153 evt->event_handler(evt); in omap_mpu_timer1_interrupt()
|
/arch/arm/mach-ep93xx/ |
D | timer-ep93xx.c | 74 struct clock_event_device *evt) in ep93xx_clkevt_set_next_event() argument 91 static int ep93xx_clkevt_shutdown(struct clock_event_device *evt) in ep93xx_clkevt_shutdown() argument 111 struct clock_event_device *evt = dev_id; in ep93xx_timer_interrupt() local 116 evt->event_handler(evt); in ep93xx_timer_interrupt()
|
/arch/sparc/kernel/ |
D | time_32.c | 105 static int timer_ce_shutdown(struct clock_event_device *evt) in timer_ce_shutdown() argument 112 static int timer_ce_set_periodic(struct clock_event_device *evt) in timer_ce_set_periodic() argument 186 static int percpu_ce_shutdown(struct clock_event_device *evt) in percpu_ce_shutdown() argument 188 int cpu = cpumask_first(evt->cpumask); in percpu_ce_shutdown() 194 static int percpu_ce_set_periodic(struct clock_event_device *evt) in percpu_ce_set_periodic() argument 196 int cpu = cpumask_first(evt->cpumask); in percpu_ce_set_periodic() 203 struct clock_event_device *evt) in percpu_ce_set_next_event() argument 205 int cpu = cpumask_first(evt->cpumask); in percpu_ce_set_next_event()
|
/arch/um/kernel/ |
D | time.c | 58 static int itimer_shutdown(struct clock_event_device *evt) in itimer_shutdown() argument 69 static int itimer_set_periodic(struct clock_event_device *evt) in itimer_set_periodic() argument 86 struct clock_event_device *evt) in itimer_next_event() argument 101 static int itimer_one_shot(struct clock_event_device *evt) in itimer_one_shot() argument 103 return itimer_next_event(0, evt); in itimer_one_shot()
|
/arch/mips/loongson64/common/cs5536/ |
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/arm/kernel/ |
D | perf_event_v6.c | 271 unsigned long val, mask, evt, flags; in armv6pmu_enable_event() local 279 evt = ARMV6_PMCR_CCOUNT_IEN; in armv6pmu_enable_event() 282 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT0_SHIFT) | in armv6pmu_enable_event() 286 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT1_SHIFT) | in armv6pmu_enable_event() 300 val |= evt; in armv6pmu_enable_event() 422 unsigned long val, mask, evt, flags; in armv6pmu_disable_event() local 430 evt = 0; in armv6pmu_disable_event() 433 evt = ARMV6_PERFCTR_NOP << ARMV6_PMCR_EVT_COUNT0_SHIFT; in armv6pmu_disable_event() 436 evt = ARMV6_PERFCTR_NOP << ARMV6_PMCR_EVT_COUNT1_SHIFT; in armv6pmu_disable_event() 450 val |= evt; in armv6pmu_disable_event() [all …]
|
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() 182 struct clock_event_device *evt = dev_id; in twd_handler() local 185 evt->event_handler(evt); in twd_handler()
|
/arch/powerpc/platforms/powernv/ |
D | opal.c | 348 __be64 evt, len; in opal_get_chars() local 352 opal_poll_events(&evt); in opal_get_chars() 353 if ((be64_to_cpu(evt) & OPAL_EVENT_CONSOLE_INPUT) == 0) in opal_get_chars() 439 __be64 evt; in __opal_flush_console() local 448 opal_poll_events(&evt); in __opal_flush_console() 449 if (!(be64_to_cpu(evt) & OPAL_EVENT_CONSOLE_OUTPUT)) in __opal_flush_console() 505 struct machine_check_event *evt) in opal_recover_mce() argument 513 } else if (evt->disposition == MCE_DISPOSITION_RECOVERED) { in opal_recover_mce() 516 } else if (evt->severity == MCE_SEV_FATAL) { in opal_recover_mce() 522 if (!recovered && evt->sync_error) { in opal_recover_mce() [all …]
|
/arch/arm/mach-omap2/ |
D | timer.c | 100 struct clock_event_device *evt = &clkevt->dev; in omap2_gp_timer_interrupt() local 104 evt->event_handler(evt); in omap2_gp_timer_interrupt() 109 struct clock_event_device *evt) in omap2_gp_timer_set_next_event() argument 111 struct omap_dm_timer *timer = to_dmtimer(evt); in omap2_gp_timer_set_next_event() 119 static int omap2_gp_timer_shutdown(struct clock_event_device *evt) in omap2_gp_timer_shutdown() argument 121 struct omap_dm_timer *timer = to_dmtimer(evt); in omap2_gp_timer_shutdown() 128 static int omap2_gp_timer_set_periodic(struct clock_event_device *evt) in omap2_gp_timer_set_periodic() argument 130 struct omap_dm_timer *timer = to_dmtimer(evt); in omap2_gp_timer_set_periodic() 154 static void omap_clkevt_unidle(struct clock_event_device *evt) in omap_clkevt_unidle() argument 156 struct omap_dm_timer *timer = to_dmtimer(evt); in omap_clkevt_unidle()
|
/arch/mips/loongson64/loongson-3/ |
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/arm/mach-davinci/ |
D | time.c | 159 struct clock_event_device *evt = &clockevent_davinci; in timer_interrupt() local 161 evt->event_handler(evt); in timer_interrupt() 289 struct clock_event_device *evt) in davinci_set_next_event() argument 298 static int davinci_shutdown(struct clock_event_device *evt) in davinci_shutdown() argument 307 static int davinci_set_oneshot(struct clock_event_device *evt) in davinci_set_oneshot() argument 316 static int davinci_set_periodic(struct clock_event_device *evt) in davinci_set_periodic() argument
|