Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 147) sorted by relevance

123456

/drivers/connector/
Dcn_proc.c70 struct proc_event *ev; in proc_fork_connector() local
78 ev = (struct proc_event *)msg->data; in proc_fork_connector()
79 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
80 get_seq(&msg->seq, &ev->cpu); in proc_fork_connector()
81 ev->timestamp_ns = ktime_get_ns(); in proc_fork_connector()
82 ev->what = PROC_EVENT_FORK; in proc_fork_connector()
85 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
86 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
88 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
89 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Devents.c54 void request_out_callback(lnet_event_t *ev) in request_out_callback() argument
56 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in request_out_callback()
59 LASSERT(ev->type == LNET_EVENT_SEND || in request_out_callback()
60 ev->type == LNET_EVENT_UNLINK); in request_out_callback()
61 LASSERT(ev->unlinked); in request_out_callback()
63 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); in request_out_callback()
68 if (ev->unlinked) in request_out_callback()
71 if (ev->type == LNET_EVENT_UNLINK || ev->status != 0) { in request_out_callback()
87 void reply_in_callback(lnet_event_t *ev) in reply_in_callback() argument
89 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in reply_in_callback()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_events.c222 struct kfd_event *ev; in lookup_event_by_id() local
224 hash_for_each_possible(p->events, ev, events, id) in lookup_event_by_id()
225 if (ev->event_id == id) in lookup_event_by_id()
226 return ev; in lookup_event_by_id()
291 struct kfd_event *ev) in create_signal_event() argument
298 if (!allocate_event_notification_slot(devkfd, p, &ev->signal_page, in create_signal_event()
299 &ev->signal_slot_index)) { in create_signal_event()
306 ev->user_signal_address = in create_signal_event()
307 &ev->signal_page->user_address[ev->signal_slot_index]; in create_signal_event()
309 ev->event_id = make_signal_event_id(ev->signal_page, in create_signal_event()
[all …]
/drivers/hid/
Duhid.c99 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) in uhid_queue() argument
106 uhid->outq[uhid->head] = ev; in uhid_queue()
111 kfree(ev); in uhid_queue()
118 struct uhid_event *ev; in uhid_queue_event() local
120 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
121 if (!ev) in uhid_queue_event()
124 ev->type = event; in uhid_queue_event()
127 uhid_queue(uhid, ev); in uhid_queue_event()
136 struct uhid_event *ev; in uhid_hid_start() local
139 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_start()
[all …]
/drivers/media/rc/
Dir-jvc-decoder.c46 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_jvc_decode() argument
53 if (!is_timing_event(ev)) { in ir_jvc_decode()
54 if (ev.reset) in ir_jvc_decode()
59 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
69 if (!ev.pulse) in ir_jvc_decode()
72 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
82 if (ev.pulse) in ir_jvc_decode()
85 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
92 if (!ev.pulse) in ir_jvc_decode()
[all …]
Dir-rc6-decoder.c86 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc6_decode() argument
98 if (!is_timing_event(ev)) { in ir_rc6_decode()
99 if (ev.reset) in ir_rc6_decode()
104 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
109 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
111 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
117 if (!ev.pulse) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
131 if (ev.pulse) in ir_rc6_decode()
134 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
[all …]
Dir-sharp-decoder.c46 static int ir_sharp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sharp_decode() argument
54 if (!is_timing_event(ev)) { in ir_sharp_decode()
55 if (ev.reset) in ir_sharp_decode()
61 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sharp_decode()
66 if (!ev.pulse) in ir_sharp_decode()
69 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
74 data->pulse_len = ev.duration; in ir_sharp_decode()
79 if (!ev.pulse) in ir_sharp_decode()
82 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
86 data->pulse_len = ev.duration; in ir_sharp_decode()
[all …]
Dir-nec-decoder.c48 static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_nec_decode() argument
58 if (!is_timing_event(ev)) { in ir_nec_decode()
59 if (ev.reset) in ir_nec_decode()
65 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
70 if (!ev.pulse) in ir_nec_decode()
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
86 if (ev.pulse) in ir_nec_decode()
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
[all …]
Dir-sanyo-decoder.c55 static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sanyo_decode() argument
64 if (!is_timing_event(ev)) { in ir_sanyo_decode()
65 if (ev.reset) { in ir_sanyo_decode()
73 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
78 if (!ev.pulse) in ir_sanyo_decode()
81 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (ev.pulse) in ir_sanyo_decode()
93 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
101 if (!ev.pulse) in ir_sanyo_decode()
104 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
[all …]
Dir-sony-decoder.c42 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sony_decode() argument
53 if (!is_timing_event(ev)) { in ir_sony_decode()
54 if (ev.reset) in ir_sony_decode()
59 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
68 if (!ev.pulse) in ir_sony_decode()
71 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
79 if (ev.pulse) in ir_sony_decode()
82 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
89 if (!ev.pulse) in ir_sony_decode()
[all …]
Dir-rc5-decoder.c49 static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc5_decode() argument
59 if (!is_timing_event(ev)) { in ir_rc5_decode()
60 if (ev.reset) in ir_rc5_decode()
65 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
72 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
78 if (!ev.pulse) in ir_rc5_decode()
83 decrease_duration(&ev, RC5_BIT_START); in ir_rc5_decode()
87 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
92 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
[all …]
Dir-xmp-decoder.c42 static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_xmp_decode() argument
49 if (!is_timing_event(ev)) { in ir_xmp_decode()
50 if (ev.reset) in ir_xmp_decode()
56 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_xmp_decode()
61 if (!ev.pulse) in ir_xmp_decode()
64 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
72 if (!ev.pulse) in ir_xmp_decode()
75 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
81 if (ev.pulse) in ir_xmp_decode()
84 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
[all …]
Drc-ir-raw.c36 struct ir_raw_event ev; in ir_raw_event_thread() local
46 if (retval < sizeof(ev)) { in ir_raw_event_thread()
57 retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev)); in ir_raw_event_thread()
62 handler->decode(raw->dev, ev); in ir_raw_event_thread()
63 raw->prev_ev = ev; in ir_raw_event_thread()
80 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() argument
86 TO_US(ev->duration), TO_STR(ev->pulse)); in ir_raw_event_store()
88 if (kfifo_in(&dev->raw->kfifo, ev, sizeof(*ev)) != sizeof(*ev)) in ir_raw_event_store()
110 DEFINE_IR_RAW_EVENT(ev); in ir_raw_event_store_edge()
128 ev.duration = delta; in ir_raw_event_store_edge()
[all …]
Dir-mce_kbd-decoder.c213 static int ir_mce_kbd_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_mce_kbd_decode() argument
222 if (!is_timing_event(ev)) { in ir_mce_kbd_decode()
223 if (ev.reset) in ir_mce_kbd_decode()
228 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
233 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_mce_kbd_decode()
235 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
241 if (!ev.pulse) in ir_mce_kbd_decode()
247 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) in ir_mce_kbd_decode()
256 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
260 if (ev.pulse) in ir_mce_kbd_decode()
[all …]
/drivers/staging/lustre/lnet/lnet/
Dlib-msg.c46 lnet_build_unlink_event(lnet_libmd_t *md, lnet_event_t *ev) in lnet_build_unlink_event() argument
48 memset(ev, 0, sizeof(*ev)); in lnet_build_unlink_event()
50 ev->status = 0; in lnet_build_unlink_event()
51 ev->unlinked = 1; in lnet_build_unlink_event()
52 ev->type = LNET_EVENT_UNLINK; in lnet_build_unlink_event()
53 lnet_md_deconstruct(md, &ev->md); in lnet_build_unlink_event()
54 lnet_md2handle(&ev->md_handle, md); in lnet_build_unlink_event()
64 lnet_event_t *ev = &msg->msg_ev; in lnet_build_msg_event() local
68 ev->type = ev_type; in lnet_build_msg_event()
72 ev->target.nid = le64_to_cpu(hdr->dest_nid); in lnet_build_msg_event()
[all …]
/drivers/s390/net/
Dsmsgiucv_app.c60 static void smsg_app_event_free(struct smsg_app_event *ev) in smsg_app_event_free() argument
62 kfree(ev->buf); in smsg_app_event_free()
63 kfree(ev); in smsg_app_event_free()
69 struct smsg_app_event *ev; in smsg_app_event_alloc() local
71 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in smsg_app_event_alloc()
72 if (!ev) in smsg_app_event_alloc()
75 ev->buf = kzalloc(ENV_SENDER_LEN + ENV_PREFIX_LEN + in smsg_app_event_alloc()
77 if (!ev->buf) { in smsg_app_event_alloc()
78 kfree(ev); in smsg_app_event_alloc()
83 ev->envp[0] = ev->buf; in smsg_app_event_alloc()
[all …]
/drivers/scsi/
Dscsi_transport_iscsi.c2352 struct iscsi_uevent *ev; in iscsi_recv_pdu() local
2355 int len = nlmsg_total_size(sizeof(*ev) + sizeof(struct iscsi_hdr) + in iscsi_recv_pdu()
2371 ev = nlmsg_data(nlh); in iscsi_recv_pdu()
2372 memset(ev, 0, sizeof(*ev)); in iscsi_recv_pdu()
2373 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2374 ev->type = ISCSI_KEVENT_RECV_PDU; in iscsi_recv_pdu()
2375 ev->r.recv_req.cid = conn->cid; in iscsi_recv_pdu()
2376 ev->r.recv_req.sid = iscsi_conn_get_sid(conn); in iscsi_recv_pdu()
2377 pdu = (char*)ev + sizeof(*ev); in iscsi_recv_pdu()
2391 struct iscsi_uevent *ev; in iscsi_offload_mesg() local
[all …]
/drivers/net/fddi/skfp/
Dqueue.c75 struct event_queue *ev ; /* pointer into queue */ in ev_dispatcher() local
78 ev = smc->q.ev_get ; in ev_dispatcher()
79 PRINTF("dispatch get %x put %x\n",ev,smc->q.ev_put) ; in ev_dispatcher()
80 while (ev != smc->q.ev_put) { in ev_dispatcher()
81 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; in ev_dispatcher()
82 switch(class = ev->class) { in ev_dispatcher()
84 ecm(smc,(int)ev->event) ; in ev_dispatcher()
87 cfm(smc,(int)ev->event) ; in ev_dispatcher()
90 rmt(smc,(int)ev->event) ; in ev_dispatcher()
93 smt_event(smc,(int)ev->event) ; in ev_dispatcher()
[all …]
/drivers/thunderbolt/
Dtb.c218 struct tb_hotplug_event *ev = container_of(work, typeof(*ev), work); in tb_handle_hotplug() local
219 struct tb *tb = ev->tb; in tb_handle_hotplug()
226 sw = get_switch_at_route(tb->root_switch, ev->route); in tb_handle_hotplug()
230 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
233 if (ev->port > sw->config.max_port_number) { in tb_handle_hotplug()
236 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
239 port = &sw->ports[ev->port]; in tb_handle_hotplug()
243 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
246 if (ev->unplug) { in tb_handle_hotplug()
276 kfree(ev); in tb_handle_hotplug()
[all …]
/drivers/staging/lustre/lnet/selftest/
Drpc.c358 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_passive_rdma() argument
373 md.user_ptr = ev; in srpc_post_passive_rdma()
398 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_active_rdma() argument
403 md.user_ptr = ev; in srpc_post_active_rdma()
449 int len, lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_active_rqtbuf() argument
453 LNET_NID_ANY, mdh, ev); in srpc_post_active_rqtbuf()
458 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_passive_rqtbuf() argument
467 LNET_MD_OP_PUT, any, mdh, ev); in srpc_post_passive_rqtbuf()
794 srpc_event_t *ev = &rpc->crpc_reqstev; in srpc_send_request() local
797 ev->ev_fired = 0; in srpc_send_request()
[all …]
/drivers/net/wireless/ath/ath6kl/
Dwmi.c506 struct wmi_remain_on_chnl_event *ev; in ath6kl_wmi_remain_on_chnl_event_rx() local
513 if (len < sizeof(*ev)) in ath6kl_wmi_remain_on_chnl_event_rx()
516 ev = (struct wmi_remain_on_chnl_event *) datap; in ath6kl_wmi_remain_on_chnl_event_rx()
517 freq = le32_to_cpu(ev->freq); in ath6kl_wmi_remain_on_chnl_event_rx()
518 dur = le32_to_cpu(ev->duration); in ath6kl_wmi_remain_on_chnl_event_rx()
539 struct wmi_cancel_remain_on_chnl_event *ev; in ath6kl_wmi_cancel_remain_on_chnl_event_rx() local
546 if (len < sizeof(*ev)) in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
549 ev = (struct wmi_cancel_remain_on_chnl_event *) datap; in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
550 freq = le32_to_cpu(ev->freq); in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
551 dur = le32_to_cpu(ev->duration); in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
[all …]
/drivers/net/wireless/ath/ath10k/
Dtxrx.c186 struct htt_peer_map_event *ev) in ath10k_peer_map_event() argument
192 peer = ath10k_peer_find(ar, ev->vdev_id, ev->addr); in ath10k_peer_map_event()
198 peer->vdev_id = ev->vdev_id; in ath10k_peer_map_event()
199 ether_addr_copy(peer->addr, ev->addr); in ath10k_peer_map_event()
205 ev->vdev_id, ev->addr, ev->peer_id); in ath10k_peer_map_event()
207 set_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_map_event()
213 struct htt_peer_unmap_event *ev) in ath10k_peer_unmap_event() argument
219 peer = ath10k_peer_find_by_id(ar, ev->peer_id); in ath10k_peer_unmap_event()
222 ev->peer_id); in ath10k_peer_unmap_event()
227 peer->vdev_id, peer->addr, ev->peer_id); in ath10k_peer_unmap_event()
[all …]
Dwmi-tlv.c182 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
194 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
195 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
200 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
201 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
229 const struct wmi_tlv_diag_data_ev *ev; in ath10k_wmi_tlv_event_diag_data() local
241 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
243 if (!ev || !data) { in ath10k_wmi_tlv_event_diag_data()
248 num_items = __le32_to_cpu(ev->num_items); in ath10k_wmi_tlv_event_diag_data()
320 const struct wmi_tlv_p2p_noa_ev *ev; in ath10k_wmi_tlv_event_p2p_noa() local
[all …]
/drivers/staging/rtl8712/
Drecv_linux.c90 struct iw_michaelmicfailure ev; in r8712_handle_tkip_mic_err() local
93 memset(&ev, 0x00, sizeof(ev)); in r8712_handle_tkip_mic_err()
95 ev.flags |= IW_MICFAILURE_GROUP; in r8712_handle_tkip_mic_err()
97 ev.flags |= IW_MICFAILURE_PAIRWISE; in r8712_handle_tkip_mic_err()
98 ev.src_addr.sa_family = ARPHRD_ETHER; in r8712_handle_tkip_mic_err()
99 ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); in r8712_handle_tkip_mic_err()
101 wrqu.data.length = sizeof(ev); in r8712_handle_tkip_mic_err()
103 (char *)&ev); in r8712_handle_tkip_mic_err()
/drivers/scsi/libsas/
Dsas_phy.c35 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_loss_of_signal() local
36 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal()
45 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_done() local
46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done()
54 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_error() local
55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error()
85 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_spinup_hold() local
86 struct asd_sas_phy *phy = ev->phy; in sas_phye_spinup_hold()
99 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_resume_timeout() local
100 struct asd_sas_phy *phy = ev->phy; in sas_phye_resume_timeout()

123456