Home
last modified time | relevance | path

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

1234567

/drivers/connector/
Dcn_proc.c79 struct proc_event *ev; in proc_fork_connector() local
87 ev = (struct proc_event *)msg->data; in proc_fork_connector()
88 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
89 ev->timestamp_ns = ktime_get_ns(); in proc_fork_connector()
90 ev->what = PROC_EVENT_FORK; in proc_fork_connector()
93 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
94 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
96 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
97 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
101 msg->len = sizeof(*ev); in proc_fork_connector()
[all …]
/drivers/staging/lustre/lustre/ptlrpc/
Devents.c50 void request_out_callback(lnet_event_t *ev) in request_out_callback() argument
52 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in request_out_callback()
56 LASSERT(ev->type == LNET_EVENT_SEND || ev->type == LNET_EVENT_UNLINK); in request_out_callback()
57 LASSERT(ev->unlinked); in request_out_callback()
59 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); in request_out_callback()
70 if (ev->type == LNET_EVENT_UNLINK || ev->status != 0) { in request_out_callback()
89 void reply_in_callback(lnet_event_t *ev) in reply_in_callback() argument
91 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in reply_in_callback()
94 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); in reply_in_callback()
96 LASSERT(ev->type == LNET_EVENT_PUT || ev->type == LNET_EVENT_UNLINK); 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.c76 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) in uhid_queue() argument
83 uhid->outq[uhid->head] = ev; in uhid_queue()
88 kfree(ev); in uhid_queue()
95 struct uhid_event *ev; in uhid_queue_event() local
97 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
98 if (!ev) in uhid_queue_event()
101 ev->type = event; in uhid_queue_event()
104 uhid_queue(uhid, ev); in uhid_queue_event()
113 struct uhid_event *ev; in uhid_hid_start() local
116 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
50 if (!is_timing_event(ev)) { in ir_jvc_decode()
51 if (ev.reset) in ir_jvc_decode()
56 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
60 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
66 if (!ev.pulse) in ir_jvc_decode()
69 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
79 if (ev.pulse) in ir_jvc_decode()
82 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
89 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
93 if (!is_timing_event(ev)) { in ir_rc6_decode()
94 if (ev.reset) in ir_rc6_decode()
99 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
104 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
106 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
112 if (!ev.pulse) in ir_rc6_decode()
118 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
126 if (ev.pulse) in ir_rc6_decode()
129 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
51 if (!is_timing_event(ev)) { in ir_sharp_decode()
52 if (ev.reset) in ir_sharp_decode()
58 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sharp_decode()
63 if (!ev.pulse) in ir_sharp_decode()
66 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
71 data->pulse_len = ev.duration; in ir_sharp_decode()
76 if (!ev.pulse) in ir_sharp_decode()
79 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
83 data->pulse_len = ev.duration; in ir_sharp_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
61 if (!is_timing_event(ev)) { in ir_sanyo_decode()
62 if (ev.reset) { in ir_sanyo_decode()
70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
75 if (!ev.pulse) in ir_sanyo_decode()
78 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
87 if (ev.pulse) in ir_sanyo_decode()
90 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
98 if (!ev.pulse) in ir_sanyo_decode()
101 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_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
56 if (!is_timing_event(ev)) { in ir_nec_decode()
57 if (ev.reset) in ir_nec_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
68 if (!ev.pulse) in ir_nec_decode()
71 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
74 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
84 if (ev.pulse) in ir_nec_decode()
87 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
90 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_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
49 if (!is_timing_event(ev)) { in ir_sony_decode()
50 if (ev.reset) in ir_sony_decode()
55 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
59 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
64 if (!ev.pulse) in ir_sony_decode()
67 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
75 if (ev.pulse) in ir_sony_decode()
78 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
85 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
56 if (!is_timing_event(ev)) { in ir_rc5_decode()
57 if (ev.reset) in ir_rc5_decode()
62 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
67 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
69 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
75 if (!ev.pulse) in ir_rc5_decode()
80 decrease_duration(&ev, RC5_BIT_START); in ir_rc5_decode()
84 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
89 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
46 if (!is_timing_event(ev)) { in ir_xmp_decode()
47 if (ev.reset) in ir_xmp_decode()
53 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_xmp_decode()
58 if (!ev.pulse) in ir_xmp_decode()
61 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
69 if (!ev.pulse) in ir_xmp_decode()
72 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
78 if (ev.pulse) in ir_xmp_decode()
81 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
[all …]
Drc-ir-raw.c34 struct ir_raw_event ev; in ir_raw_event_thread() local
53 if(!kfifo_out(&raw->kfifo, &ev, 1)) in ir_raw_event_thread()
61 handler->decode(raw->dev, ev); in ir_raw_event_thread()
62 raw->prev_ev = ev; in ir_raw_event_thread()
79 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() argument
85 TO_US(ev->duration), TO_STR(ev->pulse)); in ir_raw_event_store()
87 if (!kfifo_put(&dev->raw->kfifo, *ev)) { in ir_raw_event_store()
111 DEFINE_IR_RAW_EVENT(ev); in ir_raw_event_store_edge()
129 ev.duration = delta; in ir_raw_event_store_edge()
134 ev.pulse = false; 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
219 if (!is_timing_event(ev)) { in ir_mce_kbd_decode()
220 if (ev.reset) in ir_mce_kbd_decode()
225 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
230 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_mce_kbd_decode()
232 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
238 if (!ev.pulse) in ir_mce_kbd_decode()
244 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) in ir_mce_kbd_decode()
253 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
257 if (ev.pulse) in ir_mce_kbd_decode()
[all …]
/drivers/staging/lustre/lnet/lnet/
Dlib-msg.c42 lnet_build_unlink_event(lnet_libmd_t *md, lnet_event_t *ev) in lnet_build_unlink_event() argument
44 memset(ev, 0, sizeof(*ev)); in lnet_build_unlink_event()
46 ev->status = 0; in lnet_build_unlink_event()
47 ev->unlinked = 1; in lnet_build_unlink_event()
48 ev->type = LNET_EVENT_UNLINK; in lnet_build_unlink_event()
49 lnet_md_deconstruct(md, &ev->md); in lnet_build_unlink_event()
50 lnet_md2handle(&ev->md_handle, md); in lnet_build_unlink_event()
60 lnet_event_t *ev = &msg->msg_ev; in lnet_build_msg_event() local
64 ev->type = ev_type; in lnet_build_msg_event()
68 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.c2353 struct iscsi_uevent *ev; in iscsi_recv_pdu() local
2356 int len = nlmsg_total_size(sizeof(*ev) + sizeof(struct iscsi_hdr) + in iscsi_recv_pdu()
2372 ev = nlmsg_data(nlh); in iscsi_recv_pdu()
2373 memset(ev, 0, sizeof(*ev)); in iscsi_recv_pdu()
2374 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2375 ev->type = ISCSI_KEVENT_RECV_PDU; in iscsi_recv_pdu()
2376 ev->r.recv_req.cid = conn->cid; in iscsi_recv_pdu()
2377 ev->r.recv_req.sid = iscsi_conn_get_sid(conn); in iscsi_recv_pdu()
2378 pdu = (char*)ev + sizeof(*ev); in iscsi_recv_pdu()
2392 struct iscsi_uevent *ev; in iscsi_offload_mesg() local
[all …]
/drivers/net/wireless/ath/ath10k/
Dtxrx.c190 struct htt_peer_map_event *ev) in ath10k_peer_map_event() argument
195 if (ev->peer_id >= ATH10K_MAX_NUM_PEER_IDS) { in ath10k_peer_map_event()
198 ev->peer_id); in ath10k_peer_map_event()
203 peer = ath10k_peer_find(ar, ev->vdev_id, ev->addr); in ath10k_peer_map_event()
209 peer->vdev_id = ev->vdev_id; in ath10k_peer_map_event()
210 ether_addr_copy(peer->addr, ev->addr); in ath10k_peer_map_event()
216 ev->vdev_id, ev->addr, ev->peer_id); in ath10k_peer_map_event()
218 WARN_ON(ar->peer_map[ev->peer_id] && (ar->peer_map[ev->peer_id] != peer)); in ath10k_peer_map_event()
219 ar->peer_map[ev->peer_id] = peer; in ath10k_peer_map_event()
220 set_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_map_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/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.c356 lnet_handle_md_t *mdh, struct srpc_event *ev) in srpc_post_passive_rdma() argument
371 md.user_ptr = ev; in srpc_post_passive_rdma()
395 lnet_handle_md_t *mdh, struct srpc_event *ev) in srpc_post_active_rdma() argument
400 md.user_ptr = ev; in srpc_post_active_rdma()
448 lnet_handle_md_t *mdh, struct srpc_event *ev) in srpc_post_passive_rqtbuf() argument
457 LNET_MD_OP_PUT, any, mdh, ev); in srpc_post_passive_rqtbuf()
793 struct srpc_event *ev = &rpc->crpc_reqstev; in srpc_send_request() local
796 ev->ev_fired = 0; in srpc_send_request()
797 ev->ev_data = rpc; in srpc_send_request()
798 ev->ev_type = SRPC_REQUEST_SENT; 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/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()

1234567