Home
last modified time | relevance | path

Searched refs:evt (Results 1 – 25 of 134) sorted by relevance

123456

/drivers/staging/uwb/
Duwbd.c165 int uwbd_event_handle_urc(struct uwb_event *evt) in uwbd_event_handle_urc() argument
173 type = evt->notif.rceb->bEventType; in uwbd_event_handle_urc()
174 event = le16_to_cpu(evt->notif.rceb->wEvent); in uwbd_event_handle_urc()
175 context = evt->notif.rceb->bEventContext; in uwbd_event_handle_urc()
188 result = (*handler)(evt); in uwbd_event_handle_urc()
191 dev_err(&evt->rc->uwb_dev.dev, in uwbd_event_handle_urc()
197 static void uwbd_event_handle_message(struct uwb_event *evt) in uwbd_event_handle_message() argument
202 rc = evt->rc; in uwbd_event_handle_message()
204 if (evt->message < 0 || evt->message >= ARRAY_SIZE(uwbd_message_handlers)) { in uwbd_event_handle_message()
205 dev_err(&rc->uwb_dev.dev, "UWBD: invalid message type %d\n", evt->message); in uwbd_event_handle_message()
[all …]
Dbeacon.c347 static int uwb_verify_beacon(struct uwb_rc *rc, struct uwb_event *evt, in uwb_verify_beacon() argument
355 if (evt->notif.size < sizeof(*be) + sizeof(*bf)) { in uwb_verify_beacon()
357 "(%zu vs %zu bytes needed)\n", evt->notif.size, in uwb_verify_beacon()
379 int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) in uwbd_evt_handle_rc_beacon() argument
387 rc = evt->rc; in uwbd_evt_handle_rc_beacon()
388 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); in uwbd_evt_handle_rc_beacon()
389 result = uwb_verify_beacon(rc, evt, be); in uwbd_evt_handle_rc_beacon()
416 uwb_beacon_print(evt->rc, be, bf); in uwbd_evt_handle_rc_beacon()
417 bce = __uwb_beca_add(rc, be, bf, evt->ts_jiffies); in uwbd_evt_handle_rc_beacon()
430 bce->ts_jiffies = evt->ts_jiffies; in uwbd_evt_handle_rc_beacon()
[all …]
/drivers/clocksource/
Dexynos_mct.c81 struct clock_event_device evt; member
284 struct clock_event_device *evt) in exynos4_comp_set_next_event() argument
291 static int mct_set_state_shutdown(struct clock_event_device *evt) in mct_set_state_shutdown() argument
297 static int mct_set_state_periodic(struct clock_event_device *evt) in mct_set_state_periodic() argument
301 cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) in mct_set_state_periodic()
302 >> evt->shift); in mct_set_state_periodic()
323 struct clock_event_device *evt = dev_id; in exynos4_mct_comp_isr() local
327 evt->event_handler(evt); in exynos4_mct_comp_isr()
394 struct clock_event_device *evt) in exynos4_tick_set_next_event() argument
398 mevt = container_of(evt, struct mct_clock_event_device, evt); in exynos4_tick_set_next_event()
[all …]
Dtimer-qcom.c39 struct clock_event_device *evt = dev_id; in msm_timer_interrupt() local
41 if (clockevent_state_oneshot(evt)) { in msm_timer_interrupt()
46 evt->event_handler(evt); in msm_timer_interrupt()
51 struct clock_event_device *evt) in msm_timer_set_next_event() argument
69 static int msm_timer_shutdown(struct clock_event_device *evt) in msm_timer_shutdown() argument
101 struct clock_event_device *evt = per_cpu_ptr(msm_evt, cpu); in msm_local_timer_starting_cpu() local
104 evt->irq = msm_timer_irq; in msm_local_timer_starting_cpu()
105 evt->name = "msm_timer"; in msm_local_timer_starting_cpu()
106 evt->features = CLOCK_EVT_FEAT_ONESHOT; in msm_local_timer_starting_cpu()
107 evt->rating = 200; in msm_local_timer_starting_cpu()
[all …]
Dtimer-armada-370-xp.c126 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 …]
Dtimer-rda.c67 static int rda_ostimer_set_state_shutdown(struct clock_event_device *evt) in rda_ostimer_set_state_shutdown() argument
69 struct timer_of *to = to_timer_of(evt); in rda_ostimer_set_state_shutdown()
76 static int rda_ostimer_set_state_oneshot(struct clock_event_device *evt) in rda_ostimer_set_state_oneshot() argument
78 struct timer_of *to = to_timer_of(evt); in rda_ostimer_set_state_oneshot()
85 static int rda_ostimer_set_state_periodic(struct clock_event_device *evt) in rda_ostimer_set_state_periodic() argument
87 struct timer_of *to = to_timer_of(evt); in rda_ostimer_set_state_periodic()
93 evt->mult) >> evt->shift; in rda_ostimer_set_state_periodic()
99 static int rda_ostimer_tick_resume(struct clock_event_device *evt) in rda_ostimer_tick_resume() argument
104 static int rda_ostimer_set_next_event(unsigned long evt, in rda_ostimer_set_next_event() argument
109 rda_ostimer_start(timer_of_base(to), false, evt); in rda_ostimer_set_next_event()
[all …]
Dtimer-npcm7xx.c56 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()
93 static int npcm7xx_timer_periodic(struct clock_event_device *evt) in npcm7xx_timer_periodic() argument
95 struct timer_of *to = to_timer_of(evt); in npcm7xx_timer_periodic()
108 static int npcm7xx_clockevent_set_next_event(unsigned long evt, in npcm7xx_clockevent_set_next_event() argument
114 writel(evt, timer_of_base(to) + NPCM7XX_REG_TICR0); in npcm7xx_clockevent_set_next_event()
[all …]
Dtimer-ixp4xx.c73 to_ixp4xx_timer(struct clock_event_device *evt) in to_ixp4xx_timer() argument
75 return container_of(evt, struct ixp4xx_timer, clkevt); in to_ixp4xx_timer()
96 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt() local
102 evt->event_handler(evt); in ixp4xx_timer_interrupt()
108 struct clock_event_device *evt) in ixp4xx_set_next_event() argument
110 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_next_event()
122 static int ixp4xx_shutdown(struct clock_event_device *evt) in ixp4xx_shutdown() argument
124 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_shutdown()
134 static int ixp4xx_set_oneshot(struct clock_event_device *evt) in ixp4xx_set_oneshot() argument
136 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_oneshot()
[all …]
Ddw_apb_timer.c38 ced_to_dw_apb_ced(struct clock_event_device *evt) in ced_to_dw_apb_ced() argument
40 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
97 struct clock_event_device *evt = data; in dw_apb_clockevent_irq() local
98 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in dw_apb_clockevent_irq()
100 if (!evt->event_handler) { in dw_apb_clockevent_irq()
108 evt->event_handler(evt); in dw_apb_clockevent_irq()
121 static int apbt_shutdown(struct clock_event_device *evt) in apbt_shutdown() argument
123 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in apbt_shutdown()
127 cpumask_first(evt->cpumask)); in apbt_shutdown()
135 static int apbt_set_oneshot(struct clock_event_device *evt) in apbt_set_oneshot() argument
[all …]
Dbcm2835_timer.c33 struct clock_event_device evt; member
48 struct bcm2835_timer, evt); in bcm2835_time_set_next_event()
61 event_handler = READ_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt()
63 event_handler(&timer->evt); in bcm2835_time_interrupt()
111 timer->evt.name = node->name; in bcm2835_timer_init()
112 timer->evt.rating = 300; in bcm2835_timer_init()
113 timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; in bcm2835_timer_init()
114 timer->evt.set_next_event = bcm2835_time_set_next_event; in bcm2835_timer_init()
115 timer->evt.cpumask = cpumask_of(0); in bcm2835_timer_init()
127 clockevents_config_and_register(&timer->evt, freq, 0xf, 0xffffffff); in bcm2835_timer_init()
Dtimer-sun4i.c85 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 …]
Dtimer-sp804.c115 struct clock_event_device *evt = dev_id; in sp804_timer_interrupt() local
120 evt->event_handler(evt); in sp804_timer_interrupt()
125 static inline void timer_shutdown(struct clock_event_device *evt) in timer_shutdown() argument
130 static int sp804_shutdown(struct clock_event_device *evt) in sp804_shutdown() argument
132 timer_shutdown(evt); in sp804_shutdown()
136 static int sp804_set_periodic(struct clock_event_device *evt) in sp804_set_periodic() argument
141 timer_shutdown(evt); in sp804_set_periodic()
148 struct clock_event_device *evt) in sp804_set_next_event() argument
180 struct clock_event_device *evt = &sp804_clockevent; in __sp804_clockevents_init() local
197 evt->name = name; in __sp804_clockevents_init()
[all …]
Dtimer-atcpit100.c121 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 …]
Dasm9260_timer.c110 struct clock_event_device *evt) in asm9260_timer_set_next_event() argument
119 static inline void __asm9260_timer_shutdown(struct clock_event_device *evt) in __asm9260_timer_shutdown() argument
125 static int asm9260_timer_shutdown(struct clock_event_device *evt) in asm9260_timer_shutdown() argument
127 __asm9260_timer_shutdown(evt); in asm9260_timer_shutdown()
131 static int asm9260_timer_set_oneshot(struct clock_event_device *evt) in asm9260_timer_set_oneshot() argument
133 __asm9260_timer_shutdown(evt); in asm9260_timer_set_oneshot()
141 static int asm9260_timer_set_periodic(struct clock_event_device *evt) in asm9260_timer_set_periodic() argument
143 __asm9260_timer_shutdown(evt); in asm9260_timer_set_periodic()
169 struct clock_event_device *evt = dev_id; in asm9260_timer_interrupt() local
171 evt->event_handler(evt); in asm9260_timer_interrupt()
Ddummy_timer.c18 struct clock_event_device *evt = per_cpu_ptr(&dummy_timer_evt, cpu); in dummy_timer_starting_cpu() local
20 evt->name = "dummy_timer"; in dummy_timer_starting_cpu()
21 evt->features = CLOCK_EVT_FEAT_PERIODIC | in dummy_timer_starting_cpu()
24 evt->rating = 100; in dummy_timer_starting_cpu()
25 evt->cpumask = cpumask_of(cpu); in dummy_timer_starting_cpu()
27 clockevents_register_device(evt); in dummy_timer_starting_cpu()
Dtimer-tegra.c55 struct clock_event_device *evt) in tegra_timer_set_next_event() argument
57 void __iomem *reg_base = timer_of_base(to_timer_of(evt)); in tegra_timer_set_next_event()
73 static int tegra_timer_shutdown(struct clock_event_device *evt) in tegra_timer_shutdown() argument
75 void __iomem *reg_base = timer_of_base(to_timer_of(evt)); in tegra_timer_shutdown()
82 static int tegra_timer_set_periodic(struct clock_event_device *evt) in tegra_timer_set_periodic() argument
84 void __iomem *reg_base = timer_of_base(to_timer_of(evt)); in tegra_timer_set_periodic()
85 unsigned long period = timer_of_period(to_timer_of(evt)); in tegra_timer_set_periodic()
95 struct clock_event_device *evt = dev_id; in tegra_timer_isr() local
96 void __iomem *reg_base = timer_of_base(to_timer_of(evt)); in tegra_timer_isr()
99 evt->event_handler(evt); in tegra_timer_isr()
[all …]
Dmxs_timer.c92 static int timrotv1_set_next_event(unsigned long evt, in timrotv1_set_next_event() argument
96 __raw_writel(evt, mxs_timrot_base + HW_TIMROT_TIMCOUNTn(0)); in timrotv1_set_next_event()
101 static int timrotv2_set_next_event(unsigned long evt, in timrotv2_set_next_event() argument
105 __raw_writel(evt, mxs_timrot_base + HW_TIMROT_FIXED_COUNTn(0)); in timrotv2_set_next_event()
112 struct clock_event_device *evt = dev_id; in mxs_timer_interrupt() local
115 evt->event_handler(evt); in mxs_timer_interrupt()
147 static int mxs_shutdown(struct clock_event_device *evt) in mxs_shutdown() argument
154 static int mxs_set_oneshot(struct clock_event_device *evt) in mxs_set_oneshot() argument
156 if (clockevent_state_oneshot(evt)) in mxs_set_oneshot()
Dtimer-owl.c61 static int owl_timer_set_state_shutdown(struct clock_event_device *evt) in owl_timer_set_state_shutdown() argument
68 static int owl_timer_set_state_oneshot(struct clock_event_device *evt) in owl_timer_set_state_oneshot() argument
75 static int owl_timer_tick_resume(struct clock_event_device *evt) in owl_timer_tick_resume() argument
80 static int owl_timer_set_next_event(unsigned long evt, in owl_timer_set_next_event() argument
88 writel(evt, base + OWL_Tx_CMP); in owl_timer_set_next_event()
107 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in owl_timer1_interrupt() local
111 evt->event_handler(evt); in owl_timer1_interrupt()
Dtimer-fttmr010.c111 static inline struct fttmr010 *to_fttmr010(struct clock_event_device *evt) in to_fttmr010() argument
113 return container_of(evt, struct fttmr010, clkevt); in to_fttmr010()
137 struct clock_event_device *evt) in fttmr010_timer_set_next_event() argument
139 struct fttmr010 *fttmr010 = to_fttmr010(evt); in fttmr010_timer_set_next_event()
167 static int fttmr010_timer_shutdown(struct clock_event_device *evt) in fttmr010_timer_shutdown() argument
169 struct fttmr010 *fttmr010 = to_fttmr010(evt); in fttmr010_timer_shutdown()
180 static int fttmr010_timer_set_oneshot(struct clock_event_device *evt) in fttmr010_timer_set_oneshot() argument
182 struct fttmr010 *fttmr010 = to_fttmr010(evt); in fttmr010_timer_set_oneshot()
207 static int fttmr010_timer_set_periodic(struct clock_event_device *evt) in fttmr010_timer_set_periodic() argument
209 struct fttmr010 *fttmr010 = to_fttmr010(evt); in fttmr010_timer_set_periodic()
[all …]
Darm_arch_timer.c58 struct clock_event_device evt; member
61 #define to_arch_timer(e) container_of(e, struct arch_timer, evt)
384 static void erratum_set_next_event_tval_generic(const int access, unsigned long evt, in erratum_set_next_event_tval_generic() argument
395 cval = evt + arch_counter_get_cntpct(); in erratum_set_next_event_tval_generic()
398 cval = evt + arch_counter_get_cntvct(); in erratum_set_next_event_tval_generic()
405 static __maybe_unused int erratum_set_next_event_tval_virt(unsigned long evt, in erratum_set_next_event_tval_virt() argument
408 erratum_set_next_event_tval_generic(ARCH_TIMER_VIRT_ACCESS, evt, clk); in erratum_set_next_event_tval_virt()
412 static __maybe_unused int erratum_set_next_event_tval_phys(unsigned long evt, in erratum_set_next_event_tval_phys() argument
415 erratum_set_next_event_tval_generic(ARCH_TIMER_PHYS_ACCESS, evt, clk); in erratum_set_next_event_tval_phys()
624 struct clock_event_device *evt) in timer_handler() argument
[all …]
Dtimer-meson6.c101 static int meson6_shutdown(struct clock_event_device *evt) in meson6_shutdown() argument
107 static int meson6_set_oneshot(struct clock_event_device *evt) in meson6_set_oneshot() argument
114 static int meson6_set_periodic(struct clock_event_device *evt) in meson6_set_periodic() argument
122 static int meson6_clkevt_next_event(unsigned long evt, in meson6_clkevt_next_event() argument
126 meson6_clkevt_time_setup(evt); in meson6_clkevt_next_event()
146 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in meson6_timer_interrupt() local
148 evt->event_handler(evt); in meson6_timer_interrupt()
/drivers/net/wireless/ath/wil6210/
Dwmi.c781 struct wmi_ready_event *evt = d; in wmi_evt_ready() local
785 wil->fw_version, le32_to_cpu(evt->sw_version), in wmi_evt_ready()
786 evt->mac, evt->numof_additional_mids); in wmi_evt_ready()
787 if (evt->numof_additional_mids + 1 < wil->max_vifs) { in wmi_evt_ready()
797 evt->rfc_read_calib_result); in wmi_evt_ready()
798 wil->fw_calib_result = evt->rfc_read_calib_result; in wmi_evt_ready()
803 evt->max_assoc_sta > 0) { in wmi_evt_ready()
804 fw_max_assoc_sta = evt->max_assoc_sta; in wmi_evt_ready()
968 struct wmi_connect_event *evt = d; in wmi_evt_connect() local
979 if (len < sizeof(*evt)) { in wmi_evt_connect()
[all …]
/drivers/scsi/ibmvscsi/
Dibmvfc.c145 static void ibmvfc_trc_start(struct ibmvfc_event *evt) in ibmvfc_trc_start() argument
147 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_start()
148 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd; in ibmvfc_trc_start()
149 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start()
153 entry->evt = evt; in ibmvfc_trc_start()
155 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
179 static void ibmvfc_trc_end(struct ibmvfc_event *evt) in ibmvfc_trc_end() argument
181 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_end()
182 struct ibmvfc_cmd *vfc_cmd = &evt->xfer_iu->cmd; in ibmvfc_trc_end()
183 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end()
[all …]
Dibmvscsi.c462 struct srp_event_struct *evt = &pool->events[i]; in initialize_event_pool() local
463 memset(&evt->crq, 0x00, sizeof(evt->crq)); in initialize_event_pool()
464 atomic_set(&evt->free, 1); in initialize_event_pool()
465 evt->crq.valid = VIOSRP_CRQ_CMD_RSP; in initialize_event_pool()
466 evt->crq.IU_length = cpu_to_be16(sizeof(*evt->xfer_iu)); in initialize_event_pool()
467 evt->crq.IU_data_ptr = cpu_to_be64(pool->iu_token + in initialize_event_pool()
468 sizeof(*evt->xfer_iu) * i); in initialize_event_pool()
469 evt->xfer_iu = pool->iu_storage + i; in initialize_event_pool()
470 evt->hostdata = hostdata; in initialize_event_pool()
471 evt->ext_list = NULL; in initialize_event_pool()
[all …]
/drivers/scsi/csiostor/
Dcsio_rnode.c604 csio_rns_uninit(struct csio_rnode *rn, enum csio_rn_ev evt) in csio_rns_uninit() argument
609 CSIO_INC_STATS(rn, n_evt_sm[evt]); in csio_rns_uninit()
611 switch (evt) { in csio_rns_uninit()
625 "in rn state[uninit]\n", csio_rn_flowid(rn), evt); in csio_rns_uninit()
631 "in rn state[uninit]\n", csio_rn_flowid(rn), evt); in csio_rns_uninit()
644 csio_rns_ready(struct csio_rnode *rn, enum csio_rn_ev evt) in csio_rns_ready() argument
649 CSIO_INC_STATS(rn, n_evt_sm[evt]); in csio_rns_ready()
651 switch (evt) { in csio_rns_ready()
656 "in rn state[ready]\n", csio_rn_flowid(rn), evt, in csio_rns_ready()
715 "in rn state[uninit]\n", csio_rn_flowid(rn), evt, in csio_rns_ready()
[all …]

123456