/Linux-v4.19/drivers/uwb/ |
D | uwbd.c | 179 int uwbd_event_handle_urc(struct uwb_event *evt) in uwbd_event_handle_urc() argument 187 type = evt->notif.rceb->bEventType; in uwbd_event_handle_urc() 188 event = le16_to_cpu(evt->notif.rceb->wEvent); in uwbd_event_handle_urc() 189 context = evt->notif.rceb->bEventContext; in uwbd_event_handle_urc() 202 result = (*handler)(evt); in uwbd_event_handle_urc() 205 dev_err(&evt->rc->uwb_dev.dev, in uwbd_event_handle_urc() 211 static void uwbd_event_handle_message(struct uwb_event *evt) in uwbd_event_handle_message() argument 216 rc = evt->rc; in uwbd_event_handle_message() 218 if (evt->message < 0 || evt->message >= ARRAY_SIZE(uwbd_message_handlers)) { in uwbd_event_handle_message() 219 dev_err(&rc->uwb_dev.dev, "UWBD: invalid message type %d\n", evt->message); in uwbd_event_handle_message() [all …]
|
D | beacon.c | 361 static int uwb_verify_beacon(struct uwb_rc *rc, struct uwb_event *evt, in uwb_verify_beacon() argument 369 if (evt->notif.size < sizeof(*be) + sizeof(*bf)) { in uwb_verify_beacon() 371 "(%zu vs %zu bytes needed)\n", evt->notif.size, in uwb_verify_beacon() 393 int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) in uwbd_evt_handle_rc_beacon() argument 401 rc = evt->rc; in uwbd_evt_handle_rc_beacon() 402 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); in uwbd_evt_handle_rc_beacon() 403 result = uwb_verify_beacon(rc, evt, be); in uwbd_evt_handle_rc_beacon() 430 uwb_beacon_print(evt->rc, be, bf); in uwbd_evt_handle_rc_beacon() 431 bce = __uwb_beca_add(rc, be, bf, evt->ts_jiffies); in uwbd_evt_handle_rc_beacon() 444 bce->ts_jiffies = evt->ts_jiffies; in uwbd_evt_handle_rc_beacon() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | mce.c | 48 void machine_check_ue_event(struct machine_check_event *evt); 215 void machine_check_ue_event(struct machine_check_event *evt) in machine_check_ue_event() argument 225 memcpy(this_cpu_ptr(&mce_ue_event_queue[index]), evt, sizeof(*evt)); in machine_check_ue_event() 237 struct machine_check_event evt; in machine_check_queue_event() local 239 if (!get_mce_event(&evt, MCE_EVENT_RELEASE)) in machine_check_queue_event() 248 memcpy(this_cpu_ptr(&mce_event_queue[index]), &evt, sizeof(evt)); in machine_check_queue_event() 260 struct machine_check_event *evt; in machine_process_ue_event() local 264 evt = this_cpu_ptr(&mce_ue_event_queue[index]); in machine_process_ue_event() 270 if (evt->error_type == MCE_ERROR_TYPE_UE) { in machine_process_ue_event() 271 if (evt->u.ue_error.physical_address_provided) { in machine_process_ue_event() [all …]
|
/Linux-v4.19/drivers/clocksource/ |
D | exynos_mct.c | 86 struct clock_event_device evt; member 289 struct clock_event_device *evt) in exynos4_comp_set_next_event() argument 296 static int mct_set_state_shutdown(struct clock_event_device *evt) in mct_set_state_shutdown() argument 302 static int mct_set_state_periodic(struct clock_event_device *evt) in mct_set_state_periodic() argument 306 cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) in mct_set_state_periodic() 307 >> evt->shift); in mct_set_state_periodic() 328 struct clock_event_device *evt = dev_id; in exynos4_mct_comp_isr() local 332 evt->event_handler(evt); in exynos4_mct_comp_isr() 392 struct clock_event_device *evt) in exynos4_tick_set_next_event() argument 396 mevt = container_of(evt, struct mct_clock_event_device, evt); in exynos4_tick_set_next_event() [all …]
|
D | qcom-timer.c | 48 struct clock_event_device *evt = dev_id; in msm_timer_interrupt() local 50 if (clockevent_state_oneshot(evt)) { in msm_timer_interrupt() 55 evt->event_handler(evt); in msm_timer_interrupt() 60 struct clock_event_device *evt) in msm_timer_set_next_event() argument 78 static int msm_timer_shutdown(struct clock_event_device *evt) in msm_timer_shutdown() argument 110 struct clock_event_device *evt = per_cpu_ptr(msm_evt, cpu); in msm_local_timer_starting_cpu() local 113 evt->irq = msm_timer_irq; in msm_local_timer_starting_cpu() 114 evt->name = "msm_timer"; in msm_local_timer_starting_cpu() 115 evt->features = CLOCK_EVT_FEAT_ONESHOT; in msm_local_timer_starting_cpu() 116 evt->rating = 200; in msm_local_timer_starting_cpu() [all …]
|
D | time-armada-370-xp.c | 126 static int armada_370_xp_clkevt_shutdown(struct clock_event_device *evt) in armada_370_xp_clkevt_shutdown() argument 140 static int armada_370_xp_clkevt_set_periodic(struct clock_event_device *evt) in armada_370_xp_clkevt_set_periodic() argument 162 struct clock_event_device *evt = dev_id; in armada_370_xp_timer_interrupt() local 165 evt->event_handler(evt); in armada_370_xp_timer_interrupt() 175 struct clock_event_device *evt = per_cpu_ptr(armada_370_xp_evt, cpu); in armada_370_xp_timer_starting_cpu() local 184 evt->name = "armada_370_xp_per_cpu_tick", in armada_370_xp_timer_starting_cpu() 185 evt->features = CLOCK_EVT_FEAT_ONESHOT | in armada_370_xp_timer_starting_cpu() 187 evt->shift = 32, in armada_370_xp_timer_starting_cpu() 188 evt->rating = 300, in armada_370_xp_timer_starting_cpu() 189 evt->set_next_event = armada_370_xp_clkevt_next_event, in armada_370_xp_timer_starting_cpu() [all …]
|
D | timer-npcm7xx.c | 56 static int npcm7xx_timer_resume(struct clock_event_device *evt) in npcm7xx_timer_resume() argument 58 struct timer_of *to = to_timer_of(evt); in npcm7xx_timer_resume() 68 static int npcm7xx_timer_shutdown(struct clock_event_device *evt) in npcm7xx_timer_shutdown() argument 70 struct timer_of *to = to_timer_of(evt); in npcm7xx_timer_shutdown() 80 static int npcm7xx_timer_oneshot(struct clock_event_device *evt) in npcm7xx_timer_oneshot() argument 82 struct timer_of *to = to_timer_of(evt); in npcm7xx_timer_oneshot() 95 static int npcm7xx_timer_periodic(struct clock_event_device *evt) in npcm7xx_timer_periodic() argument 97 struct timer_of *to = to_timer_of(evt); in npcm7xx_timer_periodic() 111 static int npcm7xx_clockevent_set_next_event(unsigned long evt, in npcm7xx_clockevent_set_next_event() argument 117 writel(evt, timer_of_base(to) + NPCM7XX_REG_TICR0); in npcm7xx_clockevent_set_next_event() [all …]
|
D | dw_apb_timer.c | 41 ced_to_dw_apb_ced(struct clock_event_device *evt) in ced_to_dw_apb_ced() argument 43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced() 100 struct clock_event_device *evt = data; in dw_apb_clockevent_irq() local 101 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in dw_apb_clockevent_irq() 103 if (!evt->event_handler) { in dw_apb_clockevent_irq() 111 evt->event_handler(evt); in dw_apb_clockevent_irq() 124 static int apbt_shutdown(struct clock_event_device *evt) in apbt_shutdown() argument 126 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in apbt_shutdown() 130 cpumask_first(evt->cpumask)); in apbt_shutdown() 138 static int apbt_set_oneshot(struct clock_event_device *evt) in apbt_set_oneshot() argument [all …]
|
D | bcm2835_timer.c | 46 struct clock_event_device evt; member 61 struct bcm2835_timer, evt); in bcm2835_time_set_next_event() 74 event_handler = READ_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt() 76 event_handler(&timer->evt); in bcm2835_time_interrupt() 124 timer->evt.name = node->name; in bcm2835_timer_init() 125 timer->evt.rating = 300; in bcm2835_timer_init() 126 timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; in bcm2835_timer_init() 127 timer->evt.set_next_event = bcm2835_time_set_next_event; in bcm2835_timer_init() 128 timer->evt.cpumask = cpumask_of(0); in bcm2835_timer_init() 140 clockevents_config_and_register(&timer->evt, freq, 0xf, 0xffffffff); in bcm2835_timer_init()
|
D | dummy_timer.c | 21 struct clock_event_device *evt = per_cpu_ptr(&dummy_timer_evt, cpu); in dummy_timer_starting_cpu() local 23 evt->name = "dummy_timer"; in dummy_timer_starting_cpu() 24 evt->features = CLOCK_EVT_FEAT_PERIODIC | in dummy_timer_starting_cpu() 27 evt->rating = 100; in dummy_timer_starting_cpu() 28 evt->cpumask = cpumask_of(cpu); in dummy_timer_starting_cpu() 30 clockevents_register_device(evt); in dummy_timer_starting_cpu()
|
D | sun4i_timer.c | 85 static int sun4i_clkevt_shutdown(struct clock_event_device *evt) in sun4i_clkevt_shutdown() argument 87 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_shutdown() 94 static int sun4i_clkevt_set_oneshot(struct clock_event_device *evt) in sun4i_clkevt_set_oneshot() argument 96 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_oneshot() 104 static int sun4i_clkevt_set_periodic(struct clock_event_device *evt) in sun4i_clkevt_set_periodic() argument 106 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_periodic() 115 static int sun4i_clkevt_next_event(unsigned long evt, in sun4i_clkevt_next_event() argument 121 sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS); in sun4i_clkevt_next_event() 134 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in sun4i_timer_interrupt() local 135 struct timer_of *to = to_timer_of(evt); in sun4i_timer_interrupt() [all …]
|
D | timer-atcpit100.c | 121 static int atcpit100_clkevt_next_event(unsigned long evt, in atcpit100_clkevt_next_event() argument 129 writel(evt, timer_of_base(to) + CH0_REL); in atcpit100_clkevt_next_event() 135 static int atcpit100_clkevt_set_periodic(struct clock_event_device *evt) in atcpit100_clkevt_set_periodic() argument 137 struct timer_of *to = to_timer_of(evt); in atcpit100_clkevt_set_periodic() 144 static int atcpit100_clkevt_shutdown(struct clock_event_device *evt) in atcpit100_clkevt_shutdown() argument 146 struct timer_of *to = to_timer_of(evt); in atcpit100_clkevt_shutdown() 152 static int atcpit100_clkevt_set_oneshot(struct clock_event_device *evt) in atcpit100_clkevt_set_oneshot() argument 154 struct timer_of *to = to_timer_of(evt); in atcpit100_clkevt_set_oneshot() 166 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in atcpit100_timer_interrupt() local 167 struct timer_of *to = to_timer_of(evt); in atcpit100_timer_interrupt() [all …]
|
D | timer-sp804.c | 128 struct clock_event_device *evt = dev_id; in sp804_timer_interrupt() local 133 evt->event_handler(evt); in sp804_timer_interrupt() 138 static inline void timer_shutdown(struct clock_event_device *evt) in timer_shutdown() argument 143 static int sp804_shutdown(struct clock_event_device *evt) in sp804_shutdown() argument 145 timer_shutdown(evt); in sp804_shutdown() 149 static int sp804_set_periodic(struct clock_event_device *evt) in sp804_set_periodic() argument 154 timer_shutdown(evt); in sp804_set_periodic() 161 struct clock_event_device *evt) in sp804_set_next_event() argument 193 struct clock_event_device *evt = &sp804_clockevent; in __sp804_clockevents_init() local 210 evt->name = name; in __sp804_clockevents_init() [all …]
|
D | asm9260_timer.c | 114 struct clock_event_device *evt) in asm9260_timer_set_next_event() argument 123 static inline void __asm9260_timer_shutdown(struct clock_event_device *evt) in __asm9260_timer_shutdown() argument 129 static int asm9260_timer_shutdown(struct clock_event_device *evt) in asm9260_timer_shutdown() argument 131 __asm9260_timer_shutdown(evt); in asm9260_timer_shutdown() 135 static int asm9260_timer_set_oneshot(struct clock_event_device *evt) in asm9260_timer_set_oneshot() argument 137 __asm9260_timer_shutdown(evt); in asm9260_timer_set_oneshot() 145 static int asm9260_timer_set_periodic(struct clock_event_device *evt) in asm9260_timer_set_periodic() argument 147 __asm9260_timer_shutdown(evt); in asm9260_timer_set_periodic() 173 struct clock_event_device *evt = dev_id; in asm9260_timer_interrupt() local 175 evt->event_handler(evt); in asm9260_timer_interrupt()
|
/Linux-v4.19/drivers/net/wireless/ath/wil6210/ |
D | wmi.c | 752 struct wmi_ready_event *evt = d; in wmi_evt_ready() local 755 wil->fw_version, le32_to_cpu(evt->sw_version), in wmi_evt_ready() 756 evt->mac, evt->numof_additional_mids); in wmi_evt_ready() 757 if (evt->numof_additional_mids + 1 < wil->max_vifs) { in wmi_evt_ready() 767 evt->rfc_read_calib_result); in wmi_evt_ready() 768 wil->fw_calib_result = evt->rfc_read_calib_result; in wmi_evt_ready() 912 struct wmi_connect_event *evt = d; in wmi_evt_connect() local 923 if (len < sizeof(*evt)) { in wmi_evt_connect() 927 if (len != sizeof(*evt) + evt->beacon_ie_len + evt->assoc_req_len + in wmi_evt_connect() 928 evt->assoc_resp_len) { in wmi_evt_connect() [all …]
|
/Linux-v4.19/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 158 static void ibmvfc_trc_start(struct ibmvfc_event *evt) in ibmvfc_trc_start() argument 160 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_start() 161 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd; in ibmvfc_trc_start() 162 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start() 166 entry->evt = evt; in ibmvfc_trc_start() 168 entry->fmt = evt->crq.format; in ibmvfc_trc_start() 192 static void ibmvfc_trc_end(struct ibmvfc_event *evt) in ibmvfc_trc_end() argument 194 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_end() 195 struct ibmvfc_cmd *vfc_cmd = &evt->xfer_iu->cmd; in ibmvfc_trc_end() 196 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/xtensa/kernel/ |
D | time.c | 58 struct clock_event_device evt; member 86 static int ccount_timer_shutdown(struct clock_event_device *evt) in ccount_timer_shutdown() argument 89 container_of(evt, struct ccount_timer, evt); in ccount_timer_shutdown() 92 disable_irq(evt->irq); in ccount_timer_shutdown() 98 static int ccount_timer_set_oneshot(struct clock_event_device *evt) in ccount_timer_set_oneshot() argument 101 container_of(evt, struct ccount_timer, evt); in ccount_timer_set_oneshot() 104 enable_irq(evt->irq); in ccount_timer_set_oneshot() 120 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup() 188 setup_irq(this_cpu_ptr(&ccount_timer)->evt.irq, &timer_irqaction); in time_init() 199 struct clock_event_device *evt = &this_cpu_ptr(&ccount_timer)->evt; in timer_interrupt() local [all …]
|
/Linux-v4.19/arch/arm/mach-netx/ |
D | time.c | 37 static inline void timer_shutdown(struct clock_event_device *evt) in timer_shutdown() argument 43 static int netx_shutdown(struct clock_event_device *evt) in netx_shutdown() argument 45 timer_shutdown(evt); in netx_shutdown() 50 static int netx_set_oneshot(struct clock_event_device *evt) in netx_set_oneshot() argument 54 timer_shutdown(evt); in netx_set_oneshot() 61 static int netx_set_periodic(struct clock_event_device *evt) in netx_set_periodic() argument 66 timer_shutdown(evt); in netx_set_periodic() 73 static int netx_set_next_event(unsigned long evt, in netx_set_next_event() argument 76 writel(0 - evt, NETX_GPIO_COUNTER_CURRENT(TIMER_CLOCKEVENT)); in netx_set_next_event() 96 struct clock_event_device *evt = &netx_clockevent; in netx_timer_interrupt() local [all …]
|
/Linux-v4.19/arch/openrisc/kernel/ |
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()
|
/Linux-v4.19/arch/x86/kernel/ |
D | hpet.c | 50 struct clock_event_device evt; member 60 return container_of(evtdev, struct hpet_dev, evt); in EVT_TO_HPET_DEV() 296 static int hpet_set_periodic(struct clock_event_device *evt, int timer) in hpet_set_periodic() argument 302 delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; in hpet_set_periodic() 303 delta >>= evt->shift; in hpet_set_periodic() 326 static int hpet_set_oneshot(struct clock_event_device *evt, int timer) in hpet_set_oneshot() argument 338 static int hpet_shutdown(struct clock_event_device *evt, int timer) in hpet_shutdown() argument 349 static int hpet_resume(struct clock_event_device *evt) in hpet_resume() argument 357 struct clock_event_device *evt, int timer) in hpet_next_event() argument 393 static int hpet_legacy_shutdown(struct clock_event_device *evt) in hpet_legacy_shutdown() argument [all …]
|
/Linux-v4.19/net/tipc/ |
D | subscr.c | 45 struct tipc_event *evt = &sub->evt; in tipc_sub_send_event() local 49 tipc_evt_write(evt, event, event); in tipc_sub_send_event() 50 tipc_evt_write(evt, found_lower, found_lower); in tipc_sub_send_event() 51 tipc_evt_write(evt, found_upper, found_upper); in tipc_sub_send_event() 52 tipc_evt_write(evt, port.ref, port); in tipc_sub_send_event() 53 tipc_evt_write(evt, port.node, node); in tipc_sub_send_event() 54 tipc_topsrv_queue_evt(sub->net, sub->conid, event, evt); in tipc_sub_send_event() 80 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_report_overlap() 106 struct tipc_subscr *s = &sub->evt.s; in tipc_sub_timeout() 153 memcpy(&sub->evt.s, s, sizeof(*s)); in tipc_sub_subscribe() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/arm/mach-w90x900/ |
D | time.c | 51 static int nuc900_clockevent_shutdown(struct clock_event_device *evt) in nuc900_clockevent_shutdown() argument 59 static int nuc900_clockevent_set_oneshot(struct clock_event_device *evt) in nuc900_clockevent_set_oneshot() argument 69 static int nuc900_clockevent_set_periodic(struct clock_event_device *evt) in nuc900_clockevent_set_periodic() argument 79 static int nuc900_clockevent_setnextevent(unsigned long evt, in nuc900_clockevent_setnextevent() argument 84 __raw_writel(evt, REG_TICR0); in nuc900_clockevent_setnextevent() 109 struct clock_event_device *evt = &nuc900_clockevent_device; in nuc900_timer0_interrupt() local 113 evt->event_handler(evt); in nuc900_timer0_interrupt()
|