Home
last modified time | relevance | path

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

1234

/drivers/uwb/
Duwbd.c179 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 …]
Dbeacon.c358 static int uwb_verify_beacon(struct uwb_rc *rc, struct uwb_event *evt, in uwb_verify_beacon() argument
366 if (evt->notif.size < sizeof(*be) + sizeof(*bf)) { in uwb_verify_beacon()
368 "(%zu vs %zu bytes needed)\n", evt->notif.size, in uwb_verify_beacon()
390 int uwbd_evt_handle_rc_beacon(struct uwb_event *evt) in uwbd_evt_handle_rc_beacon() argument
399 rc = evt->rc; in uwbd_evt_handle_rc_beacon()
400 be = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon, rceb); in uwbd_evt_handle_rc_beacon()
401 result = uwb_verify_beacon(rc, evt, be); in uwbd_evt_handle_rc_beacon()
428 uwb_beacon_print(evt->rc, be, bf); in uwbd_evt_handle_rc_beacon()
429 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 …]
Die-rcv.c29 int uwbd_evt_handle_rc_ie_rcv(struct uwb_event *evt) in uwbd_evt_handle_rc_ie_rcv() argument
32 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_handle_rc_ie_rcv()
37 if (evt->notif.size < sizeof(*iercv)) { in uwbd_evt_handle_rc_ie_rcv()
40 evt->notif.size, sizeof(*iercv)); in uwbd_evt_handle_rc_ie_rcv()
43 iercv = container_of(evt->notif.rceb, struct uwb_rc_evt_ie_rcv, rceb); in uwbd_evt_handle_rc_ie_rcv()
Ddrp-avail.c227 int uwbd_evt_get_drp_avail(struct uwb_event *evt, unsigned long *bmp) in uwbd_evt_get_drp_avail() argument
229 struct device *dev = &evt->rc->uwb_dev.dev; in uwbd_evt_get_drp_avail()
234 if (evt->notif.size < sizeof(*drp_evt)) { in uwbd_evt_get_drp_avail()
237 "needed]\n", evt->notif.size, sizeof(*drp_evt)); in uwbd_evt_get_drp_avail()
240 drp_evt = container_of(evt->notif.rceb, struct uwb_rc_evt_drp_avail, rceb); in uwbd_evt_get_drp_avail()
271 int uwbd_evt_handle_rc_drp_avail(struct uwb_event *evt) in uwbd_evt_handle_rc_drp_avail() argument
274 struct uwb_rc *rc = evt->rc; in uwbd_evt_handle_rc_drp_avail()
277 result = uwbd_evt_get_drp_avail(evt, bmp); in uwbd_evt_handle_rc_drp_avail()
Dreset.c323 int uwbd_msg_handle_reset(struct uwb_event *evt) in uwbd_msg_handle_reset() argument
325 struct uwb_rc *rc = evt->rc; in uwbd_msg_handle_reset()
352 struct uwb_event *evt; in uwb_rc_reset_all() local
354 evt = kzalloc(sizeof(struct uwb_event), GFP_ATOMIC); in uwb_rc_reset_all()
355 if (unlikely(evt == NULL)) in uwb_rc_reset_all()
358 evt->rc = __uwb_rc_get(rc); /* will be put by uwbd's uwbd_event_handle() */ in uwb_rc_reset_all()
359 evt->ts_jiffies = jiffies; in uwb_rc_reset_all()
360 evt->type = UWB_EVT_TYPE_MSG; in uwb_rc_reset_all()
361 evt->message = UWB_EVT_MSG_RESET; in uwb_rc_reset_all()
363 uwbd_event_queue(evt); in uwb_rc_reset_all()
/drivers/net/wireless/ath/wil6210/
Dwmi.c271 struct wmi_ready_event *evt = d; in wmi_evt_ready() local
272 wil->fw_version = le32_to_cpu(evt->sw_version); in wmi_evt_ready()
273 wil->n_mids = evt->numof_additional_mids; in wmi_evt_ready()
276 evt->mac, wil->n_mids); in wmi_evt_ready()
279 memcpy(ndev->dev_addr, evt->mac, ETH_ALEN); in wmi_evt_ready()
280 memcpy(ndev->perm_addr, evt->mac, ETH_ALEN); in wmi_evt_ready()
361 struct wmi_connect_event *evt = d; in wmi_evt_connect() local
371 if (len < sizeof(*evt)) { in wmi_evt_connect()
375 if (len != sizeof(*evt) + evt->beacon_ie_len + evt->assoc_req_len + in wmi_evt_connect()
376 evt->assoc_resp_len) { in wmi_evt_connect()
[all …]
/drivers/scsi/ibmvscsi/
Dibmvfc.c153 static void ibmvfc_trc_start(struct ibmvfc_event *evt) in ibmvfc_trc_start() argument
155 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_start()
156 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd; in ibmvfc_trc_start()
157 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start()
161 entry->evt = evt; in ibmvfc_trc_start()
163 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
187 static void ibmvfc_trc_end(struct ibmvfc_event *evt) in ibmvfc_trc_end() argument
189 struct ibmvfc_host *vhost = evt->vhost; in ibmvfc_trc_end()
190 struct ibmvfc_cmd *vfc_cmd = &evt->xfer_iu->cmd; in ibmvfc_trc_end()
191 struct ibmvfc_mad_common *mad = &evt->xfer_iu->mad_common; in ibmvfc_trc_end()
[all …]
Dibmvscsi.c463 struct srp_event_struct *evt = &pool->events[i]; in initialize_event_pool() local
464 memset(&evt->crq, 0x00, sizeof(evt->crq)); in initialize_event_pool()
465 atomic_set(&evt->free, 1); in initialize_event_pool()
466 evt->crq.valid = 0x80; in initialize_event_pool()
467 evt->crq.IU_length = sizeof(*evt->xfer_iu); in initialize_event_pool()
468 evt->crq.IU_data_ptr = pool->iu_token + in initialize_event_pool()
469 sizeof(*evt->xfer_iu) * i; in initialize_event_pool()
470 evt->xfer_iu = pool->iu_storage + i; in initialize_event_pool()
471 evt->hostdata = hostdata; in initialize_event_pool()
472 evt->ext_list = NULL; in initialize_event_pool()
[all …]
/drivers/clocksource/
Dexynos_mct.c83 struct clock_event_device *evt; member
236 struct clock_event_device *evt) in exynos4_comp_set_next_event() argument
238 exynos4_mct_comp0_start(evt->mode, cycles); in exynos4_comp_set_next_event()
244 struct clock_event_device *evt) in exynos4_comp_set_mode() argument
252 (((unsigned long long) NSEC_PER_SEC / HZ * evt->mult) >> evt->shift); in exynos4_comp_set_mode()
274 struct clock_event_device *evt = dev_id; in exynos4_mct_comp_isr() local
278 evt->event_handler(evt); in exynos4_mct_comp_isr()
338 struct clock_event_device *evt) in exynos4_tick_set_next_event() argument
348 struct clock_event_device *evt) in exynos4_tick_set_mode() argument
358 (((unsigned long long) NSEC_PER_SEC / HZ * evt->mult) >> evt->shift); in exynos4_tick_set_mode()
[all …]
Dtime-armada-370-xp.c159 struct clock_event_device *evt = *(struct clock_event_device **)dev_id; in armada_370_xp_timer_interrupt() local
162 evt->event_handler(evt); in armada_370_xp_timer_interrupt()
170 static int __cpuinit armada_370_xp_timer_setup(struct clock_event_device *evt) in armada_370_xp_timer_setup() argument
185 evt->name = armada_370_xp_clkevt.name; in armada_370_xp_timer_setup()
186 evt->irq = armada_370_xp_clkevt.irq; in armada_370_xp_timer_setup()
187 evt->features = armada_370_xp_clkevt.features; in armada_370_xp_timer_setup()
188 evt->shift = armada_370_xp_clkevt.shift; in armada_370_xp_timer_setup()
189 evt->rating = armada_370_xp_clkevt.rating, in armada_370_xp_timer_setup()
190 evt->set_next_event = armada_370_xp_clkevt_next_event, in armada_370_xp_timer_setup()
191 evt->set_mode = armada_370_xp_clkevt_mode, in armada_370_xp_timer_setup()
[all …]
Dbcm2835_timer.c46 struct clock_event_device evt; member
76 struct bcm2835_timer, evt); in bcm2835_time_set_next_event()
89 event_handler = ACCESS_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt()
91 event_handler(&timer->evt); in bcm2835_time_interrupt()
129 timer->evt.name = node->name; in bcm2835_timer_init()
130 timer->evt.rating = 300; in bcm2835_timer_init()
131 timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; in bcm2835_timer_init()
132 timer->evt.set_mode = bcm2835_time_set_mode; in bcm2835_timer_init()
133 timer->evt.set_next_event = bcm2835_time_set_next_event; in bcm2835_timer_init()
134 timer->evt.cpumask = cpumask_of(0); in bcm2835_timer_init()
[all …]
Darm_arch_timer.c48 struct clock_event_device *evt) in timer_handler() argument
55 evt->event_handler(evt); in timer_handler()
64 struct clock_event_device *evt = dev_id; in arch_timer_handler_virt() local
66 return timer_handler(ARCH_TIMER_VIRT_ACCESS, evt); in arch_timer_handler_virt()
71 struct clock_event_device *evt = dev_id; in arch_timer_handler_phys() local
73 return timer_handler(ARCH_TIMER_PHYS_ACCESS, evt); in arch_timer_handler_phys()
103 static inline void set_next_event(const int access, unsigned long evt) in set_next_event() argument
109 arch_timer_reg_write(access, ARCH_TIMER_REG_TVAL, evt); in set_next_event()
113 static int arch_timer_set_next_event_virt(unsigned long evt, in arch_timer_set_next_event_virt() argument
116 set_next_event(ARCH_TIMER_VIRT_ACCESS, evt); in arch_timer_set_next_event_virt()
[all …]
Ddw_apb_timer.c41 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()
89 struct clock_event_device *evt = data; in dw_apb_clockevent_irq() local
90 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in dw_apb_clockevent_irq()
92 if (!evt->event_handler) { in dw_apb_clockevent_irq()
100 evt->event_handler(evt); in dw_apb_clockevent_irq()
114 struct clock_event_device *evt) in apbt_set_mode() argument
118 struct dw_apb_clock_event_device *dw_ced = ced_to_dw_apb_ced(evt); in apbt_set_mode()
120 pr_debug("%s CPU %d mode=%d\n", __func__, first_cpu(*evt->cpumask), in apbt_set_mode()
180 struct clock_event_device *evt) in apbt_next_event() argument
[all …]
Dmxs_timer.c109 static int timrotv1_set_next_event(unsigned long evt, in timrotv1_set_next_event() argument
113 __raw_writel(evt, mxs_timrot_base + HW_TIMROT_TIMCOUNTn(0)); in timrotv1_set_next_event()
118 static int timrotv2_set_next_event(unsigned long evt, in timrotv2_set_next_event() argument
122 __raw_writel(evt, mxs_timrot_base + HW_TIMROT_FIXED_COUNTn(0)); in timrotv2_set_next_event()
129 struct clock_event_device *evt = dev_id; in mxs_timer_interrupt() local
132 evt->event_handler(evt); in mxs_timer_interrupt()
154 struct clock_event_device *evt) in mxs_set_mode() argument
Dvt8500_timer.c74 struct clock_event_device *evt) in vt8500_timer_set_next_event() argument
92 struct clock_event_device *evt) in vt8500_timer_set_mode() argument
118 struct clock_event_device *evt = dev_id; in vt8500_timer_interrupt() local
120 evt->event_handler(evt); in vt8500_timer_interrupt()
Dsun4i_timer.c62 static int sun4i_clkevt_next_event(unsigned long evt, in sun4i_clkevt_next_event() argument
66 writel(evt, timer_base + TIMER_CNTVAL_REG(0)); in sun4i_clkevt_next_event()
84 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in sun4i_timer_interrupt() local
87 evt->event_handler(evt); in sun4i_timer_interrupt()
Dtegra20_timer.c62 struct clock_event_device *evt) in tegra_timer_set_next_event() argument
73 struct clock_event_device *evt) in tegra_timer_set_mode() argument
144 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in tegra_timer_interrupt() local
146 evt->event_handler(evt); in tegra_timer_interrupt()
/drivers/usb/dwc3/
Dcore.c130 struct dwc3_event_buffer *evt) in dwc3_free_one_event_buffer() argument
132 dma_free_coherent(dwc->dev, evt->length, evt->buf, evt->dma); in dwc3_free_one_event_buffer()
146 struct dwc3_event_buffer *evt; in dwc3_alloc_one_event_buffer() local
148 evt = devm_kzalloc(dwc->dev, sizeof(*evt), GFP_KERNEL); in dwc3_alloc_one_event_buffer()
149 if (!evt) in dwc3_alloc_one_event_buffer()
152 evt->dwc = dwc; in dwc3_alloc_one_event_buffer()
153 evt->length = length; in dwc3_alloc_one_event_buffer()
154 evt->buf = dma_alloc_coherent(dwc->dev, length, in dwc3_alloc_one_event_buffer()
155 &evt->dma, GFP_KERNEL); in dwc3_alloc_one_event_buffer()
156 if (!evt->buf) in dwc3_alloc_one_event_buffer()
[all …]
/drivers/scsi/lpfc/
Dlpfc_nportdisc.c776 void *arg, uint32_t evt) in lpfc_disc_illegal() argument
786 (evt == NLP_EVT_CMPL_REG_LOGIN) && in lpfc_disc_illegal()
795 ndlp->nlp_DID, evt, ndlp->nlp_state, ndlp->nlp_rpi, in lpfc_disc_illegal()
802 void *arg, uint32_t evt) in lpfc_cmpl_plogi_illegal() argument
813 ndlp->nlp_DID, evt, ndlp->nlp_state, ndlp->nlp_rpi, in lpfc_cmpl_plogi_illegal()
823 void *arg, uint32_t evt) in lpfc_rcv_plogi_unused_node() argument
837 void *arg, uint32_t evt) in lpfc_rcv_els_unused_node() argument
845 void *arg, uint32_t evt) in lpfc_rcv_logo_unused_node() argument
860 void *arg, uint32_t evt) in lpfc_cmpl_logo_unused_node() argument
867 void *arg, uint32_t evt) in lpfc_device_rm_unused_node() argument
[all …]
Dlpfc_bsg.c102 struct lpfc_bsg_event *evt; member
760 struct lpfc_bsg_event *evt = container_of(kref, struct lpfc_bsg_event, in lpfc_bsg_event_free() local
764 list_del(&evt->node); in lpfc_bsg_event_free()
766 while (!list_empty(&evt->events_to_get)) { in lpfc_bsg_event_free()
767 ed = list_entry(evt->events_to_get.next, typeof(*ed), node); in lpfc_bsg_event_free()
773 while (!list_empty(&evt->events_to_see)) { in lpfc_bsg_event_free()
774 ed = list_entry(evt->events_to_see.next, typeof(*ed), node); in lpfc_bsg_event_free()
780 kfree(evt->dd_data); in lpfc_bsg_event_free()
781 kfree(evt); in lpfc_bsg_event_free()
789 lpfc_bsg_event_ref(struct lpfc_bsg_event *evt) in lpfc_bsg_event_ref() argument
[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 …]
Dcsio_lnode.c917 csio_post_event_rns(struct csio_lnode *ln, enum csio_rn_ev evt) in csio_post_event_rns() argument
925 csio_post_event(&rn->sm, evt); in csio_post_event_rns()
965 csio_post_event_lns(struct csio_lnode *ln, enum csio_ln_ev evt) in csio_post_event_lns() argument
972 csio_post_event(&ln->sm, evt); in csio_post_event_lns()
980 csio_post_event(&cln->sm, evt); in csio_post_event_lns()
984 csio_post_event(&ln->sm, evt); in csio_post_event_lns()
1096 csio_lns_uninit(struct csio_lnode *ln, enum csio_ln_ev evt) in csio_lns_uninit() argument
1102 CSIO_INC_STATS(ln, n_evt_sm[evt]); in csio_lns_uninit()
1103 switch (evt) { in csio_lns_uninit()
1133 "ln state[uninit].\n", evt, ln->nport_id); in csio_lns_uninit()
[all …]
/drivers/message/i2o/
Ddriver.c210 struct i2o_event *evt; in i2o_driver_dispatch() local
222 evt = kzalloc(size * 4 + sizeof(*evt), GFP_ATOMIC); in i2o_driver_dispatch()
223 if (!evt) in i2o_driver_dispatch()
226 evt->size = size; in i2o_driver_dispatch()
227 evt->tcntxt = le32_to_cpu(msg->u.s.tcntxt); in i2o_driver_dispatch()
228 evt->event_indicator = le32_to_cpu(msg->body[0]); in i2o_driver_dispatch()
229 memcpy(&evt->data, &msg->body[1], size * 4); in i2o_driver_dispatch()
233 evt->i2o_dev = dev; in i2o_driver_dispatch()
237 INIT_WORK(&evt->work, drv->event); in i2o_driver_dispatch()
238 queue_work(drv->event_queue, &evt->work); in i2o_driver_dispatch()
/drivers/staging/csr/
Dcsr_wifi_router_transport.c153 CsrWifiFsmEvent* evt = (CsrWifiFsmEvent*)msg; in CsrWifiRouterTransportSerialiseAndSend() local
161 primType, evt->type); in CsrWifiRouterTransportSerialiseAndSend()
163 msgEntry = CsrMsgConvFindEntry(primType, evt->type); in CsrWifiRouterTransportSerialiseAndSend()
167 primType, evt->type); in CsrWifiRouterTransportSerialiseAndSend()
177 CsrUint16Ser(encodeBuffer, &encodeBufferLen, evt->source); in CsrWifiRouterTransportSerialiseAndSend()
178 CsrUint16Ser(encodeBuffer, &encodeBufferLen, evt->destination); in CsrWifiRouterTransportSerialiseAndSend()
195 CsrWifiFsmEvent* evt = (CsrWifiFsmEvent*)mv; in CsrSchedMessagePutStringLog() local
196 evt->destination = q; in CsrSchedMessagePutStringLog()
Dcsr_wifi_lib.h21 #define CsrWifiFsmEventInit(evt, p_primtype, p_msgtype, p_dst, p_src) \ argument
22 (evt)->primtype = p_primtype; \
23 (evt)->type = p_msgtype; \
24 (evt)->destination = p_dst; \
25 (evt)->source = p_src

1234