Home
last modified time | relevance | path

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

12345678

/drivers/connector/
Dcn_proc.c72 struct proc_event *ev; in proc_fork_connector() local
80 ev = (struct proc_event *)msg->data; in proc_fork_connector()
81 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
82 ev->timestamp_ns = ktime_get_ns(); in proc_fork_connector()
83 ev->what = PROC_EVENT_FORK; in proc_fork_connector()
86 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
87 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
89 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
90 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
94 msg->len = sizeof(*ev); in proc_fork_connector()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_events.c95 struct kfd_event *ev) in allocate_event_notification_slot() argument
113 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, in allocate_event_notification_slot()
118 ev->event_id = id; in allocate_event_notification_slot()
153 struct kfd_event *ev; in lookup_signaled_event_by_partial_id() local
171 for (ev = NULL; id < KFD_SIGNAL_EVENT_LIMIT && !ev; id += 1U << bits) { in lookup_signaled_event_by_partial_id()
175 ev = idr_find(&p->event_idr, id); in lookup_signaled_event_by_partial_id()
178 return ev; in lookup_signaled_event_by_partial_id()
183 struct kfd_event *ev) in create_signal_event() argument
196 ret = allocate_event_notification_slot(p, ev); in create_signal_event()
204 ev->user_signal_address = &p->signal_page->user_address[ev->event_id]; in create_signal_event()
[all …]
/drivers/net/ipa/
Dgsi_reg.h111 #define GSI_EV_CH_E_CNTXT_0_OFFSET(ev) \ argument
112 GSI_EE_N_EV_CH_E_CNTXT_0_OFFSET((ev), GSI_EE_AP)
113 #define GSI_EE_N_EV_CH_E_CNTXT_0_OFFSET(ev, ee) \ argument
114 (0x0001d000 + 0x4000 * (ee) + 0x80 * (ev))
122 #define GSI_EV_CH_E_CNTXT_1_OFFSET(ev) \ argument
123 GSI_EE_N_EV_CH_E_CNTXT_1_OFFSET((ev), GSI_EE_AP)
124 #define GSI_EE_N_EV_CH_E_CNTXT_1_OFFSET(ev, ee) \ argument
125 (0x0001d004 + 0x4000 * (ee) + 0x80 * (ev))
128 #define GSI_EV_CH_E_CNTXT_2_OFFSET(ev) \ argument
129 GSI_EE_N_EV_CH_E_CNTXT_2_OFFSET((ev), GSI_EE_AP)
[all …]
/drivers/hid/
Duhid.c92 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) in uhid_queue() argument
99 uhid->outq[uhid->head] = ev; in uhid_queue()
104 kfree(ev); in uhid_queue()
111 struct uhid_event *ev; in uhid_queue_event() local
113 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
114 if (!ev) in uhid_queue_event()
117 ev->type = event; in uhid_queue_event()
120 uhid_queue(uhid, ev); in uhid_queue_event()
129 struct uhid_event *ev; in uhid_hid_start() local
132 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_start()
[all …]
/drivers/scsi/libsas/
Dsas_event.c100 const int ev = DISCE_REVALIDATE_DOMAIN; in sas_enable_revalidation() local
104 if (!test_and_clear_bit(ev, &d->pending)) in sas_enable_revalidation()
120 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_port_event_worker() local
122 sas_port_event_fns[ev->event](work); in sas_port_event_worker()
123 sas_free_event(ev); in sas_port_event_worker()
128 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phy_event_worker() local
130 sas_phy_event_fns[ev->event](work); in sas_phy_event_worker()
131 sas_free_event(ev); in sas_phy_event_worker()
136 struct asd_sas_event *ev) in __sas_notify_port_event() argument
143 INIT_SAS_EVENT(ev, sas_port_event_worker, phy, event); in __sas_notify_port_event()
[all …]
Dsas_phy.c19 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_loss_of_signal() local
20 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal()
28 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_done() local
29 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done()
36 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_error() local
37 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error()
65 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_spinup_hold() local
66 struct asd_sas_phy *phy = ev->phy; in sas_phye_spinup_hold()
77 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_resume_timeout() local
78 struct asd_sas_phy *phy = ev->phy; in sas_phye_resume_timeout()
[all …]
/drivers/media/rc/
Dir-jvc-decoder.c38 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_jvc_decode() argument
42 if (!is_timing_event(ev)) { in ir_jvc_decode()
43 if (ev.reset) in ir_jvc_decode()
48 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode()
58 if (!ev.pulse) in ir_jvc_decode()
61 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
71 if (ev.pulse) in ir_jvc_decode()
74 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
81 if (!ev.pulse) in ir_jvc_decode()
[all …]
Drc-ir-raw.c23 struct ir_raw_event ev; in ir_raw_event_thread() local
30 while (kfifo_out(&raw->kfifo, &ev, 1)) { in ir_raw_event_thread()
31 if (is_timing_event(ev)) { in ir_raw_event_thread()
32 if (ev.duration == 0) in ir_raw_event_thread()
35 !is_transition(&ev, &raw->prev_ev)) in ir_raw_event_thread()
37 TO_STR(ev.pulse)); in ir_raw_event_thread()
38 if (raw->prev_ev.reset && ev.pulse == 0) in ir_raw_event_thread()
44 handler->decode(dev, ev); in ir_raw_event_thread()
45 lirc_raw_event(dev, ev); in ir_raw_event_thread()
46 raw->prev_ev = ev; in ir_raw_event_thread()
[all …]
Dir-sharp-decoder.c40 static int ir_sharp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sharp_decode() argument
45 if (!is_timing_event(ev)) { in ir_sharp_decode()
46 if (ev.reset) in ir_sharp_decode()
52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sharp_decode()
57 if (!ev.pulse) in ir_sharp_decode()
60 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
65 data->pulse_len = ev.duration; in ir_sharp_decode()
70 if (!ev.pulse) in ir_sharp_decode()
73 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
77 data->pulse_len = ev.duration; in ir_sharp_decode()
[all …]
Dir-sanyo-decoder.c46 static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sanyo_decode() argument
53 if (!is_timing_event(ev)) { in ir_sanyo_decode()
54 if (ev.reset) { in ir_sanyo_decode()
62 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sanyo_decode()
67 if (!ev.pulse) in ir_sanyo_decode()
70 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
79 if (ev.pulse) in ir_sanyo_decode()
82 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (!ev.pulse) in ir_sanyo_decode()
93 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
[all …]
Dir-rcmm-decoder.c59 static int ir_rcmm_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rcmm_decode() argument
71 if (!is_timing_event(ev)) { in ir_rcmm_decode()
72 if (ev.reset) in ir_rcmm_decode()
79 if (!ev.pulse) in ir_rcmm_decode()
82 if (!eq_margin(ev.duration, RCMM_PREFIX_PULSE, RCMM_UNIT)) in ir_rcmm_decode()
91 if (ev.pulse) in ir_rcmm_decode()
94 if (!eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT)) in ir_rcmm_decode()
101 if (!ev.pulse) in ir_rcmm_decode()
104 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
111 if (ev.pulse) in ir_rcmm_decode()
[all …]
Dir-nec-decoder.c39 static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_nec_decode() argument
46 if (!is_timing_event(ev)) { in ir_nec_decode()
47 if (ev.reset) in ir_nec_decode()
53 data->state, ev.duration, TO_STR(ev.pulse)); in ir_nec_decode()
58 if (!ev.pulse) in ir_nec_decode()
61 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
64 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
74 if (ev.pulse) in ir_nec_decode()
77 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
80 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
[all …]
Dir-xmp-decoder.c35 static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_xmp_decode() argument
39 if (!is_timing_event(ev)) { in ir_xmp_decode()
40 if (ev.reset) in ir_xmp_decode()
46 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_xmp_decode()
51 if (!ev.pulse) in ir_xmp_decode()
54 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
62 if (!ev.pulse) in ir_xmp_decode()
65 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
71 if (ev.pulse) in ir_xmp_decode()
74 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
[all …]
Dir-sony-decoder.c34 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sony_decode() argument
41 if (!is_timing_event(ev)) { in ir_sony_decode()
42 if (ev.reset) in ir_sony_decode()
47 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
51 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
56 if (!ev.pulse) in ir_sony_decode()
59 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
67 if (ev.pulse) in ir_sony_decode()
70 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
77 if (!ev.pulse) in ir_sony_decode()
[all …]
Dir-rc6-decoder.c80 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc6_decode() argument
87 if (!is_timing_event(ev)) { in ir_rc6_decode()
88 if (ev.reset) in ir_rc6_decode()
93 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
98 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc6_decode()
100 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
106 if (!ev.pulse) in ir_rc6_decode()
112 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
120 if (ev.pulse) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
[all …]
Dir-rc5-decoder.c40 static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc5_decode() argument
47 if (!is_timing_event(ev)) { in ir_rc5_decode()
48 if (ev.reset) in ir_rc5_decode()
53 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
58 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc5_decode()
60 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
66 if (!ev.pulse) in ir_rc5_decode()
71 decrease_duration(&ev, RC5_BIT_START); in ir_rc5_decode()
75 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
80 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
[all …]
Drc-core-priv.h182 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
184 if (duration > ev->duration) in decrease_duration()
185 ev->duration = 0; in decrease_duration()
187 ev->duration -= duration; in decrease_duration()
191 static inline bool is_timing_event(struct ir_raw_event ev) in is_timing_event() argument
193 return !ev.carrier_report && !ev.reset; in is_timing_event()
201 static inline void init_ir_raw_event_duration(struct ir_raw_event *ev, in init_ir_raw_event_duration() argument
205 *ev = (struct ir_raw_event) { in init_ir_raw_event_duration()
229 int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max,
246 static inline int ir_raw_gen_pulse_space(struct ir_raw_event **ev, in ir_raw_gen_pulse_space() argument
[all …]
Dir-imon-decoder.c93 static int ir_imon_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_imon_decode() argument
97 if (!is_timing_event(ev)) { in ir_imon_decode()
98 if (ev.reset) in ir_imon_decode()
105 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_imon_decode()
118 if (!ev.pulse && ev.duration > MS_TO_US(10)) in ir_imon_decode()
124 if (!geq_margin(ev.duration, IMON_UNIT, IMON_UNIT / 2)) in ir_imon_decode()
127 decrease_duration(&ev, IMON_UNIT); in ir_imon_decode()
131 if (ev.pulse) { in ir_imon_decode()
139 data->last_chk = ev.pulse; in ir_imon_decode()
140 else if (ev.pulse) in ir_imon_decode()
[all …]
/drivers/s390/net/
Dsmsgiucv_app.c61 static void smsg_app_event_free(struct smsg_app_event *ev) in smsg_app_event_free() argument
63 kfree(ev->buf); in smsg_app_event_free()
64 kfree(ev); in smsg_app_event_free()
70 struct smsg_app_event *ev; in smsg_app_event_alloc() local
72 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in smsg_app_event_alloc()
73 if (!ev) in smsg_app_event_alloc()
76 ev->buf = kzalloc(ENV_SENDER_LEN + ENV_PREFIX_LEN + in smsg_app_event_alloc()
78 if (!ev->buf) { in smsg_app_event_alloc()
79 kfree(ev); in smsg_app_event_alloc()
84 ev->envp[0] = ev->buf; in smsg_app_event_alloc()
[all …]
/drivers/scsi/
Dscsi_transport_iscsi.c2310 struct iscsi_uevent *ev) in iscsi_if_stop_conn() argument
2312 int flag = ev->u.stop_conn.flag; in iscsi_if_stop_conn()
2315 conn = iscsi_conn_lookup(ev->u.stop_conn.sid, ev->u.stop_conn.cid); in iscsi_if_stop_conn()
2549 struct iscsi_uevent *ev; in iscsi_recv_pdu() local
2552 int len = nlmsg_total_size(sizeof(*ev) + sizeof(struct iscsi_hdr) + in iscsi_recv_pdu()
2568 ev = nlmsg_data(nlh); in iscsi_recv_pdu()
2569 memset(ev, 0, sizeof(*ev)); in iscsi_recv_pdu()
2570 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2571 ev->type = ISCSI_KEVENT_RECV_PDU; in iscsi_recv_pdu()
2572 ev->r.recv_req.cid = conn->cid; in iscsi_recv_pdu()
[all …]
/drivers/net/fddi/skfp/
Dqueue.c71 struct event_queue *ev ; /* pointer into queue */ in ev_dispatcher() local
74 ev = smc->q.ev_get ; in ev_dispatcher()
75 PRINTF("dispatch get %x put %x\n",ev,smc->q.ev_put) ; in ev_dispatcher()
76 while (ev != smc->q.ev_put) { in ev_dispatcher()
77 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; in ev_dispatcher()
78 switch(class = ev->class) { in ev_dispatcher()
80 ecm(smc,(int)ev->event) ; in ev_dispatcher()
83 cfm(smc,(int)ev->event) ; in ev_dispatcher()
86 rmt(smc,(int)ev->event) ; in ev_dispatcher()
89 smt_event(smc,(int)ev->event) ; in ev_dispatcher()
[all …]
/drivers/net/wireless/ath/ath10k/
Dtxrx.c205 struct htt_peer_map_event *ev) in ath10k_peer_map_event() argument
210 if (ev->peer_id >= ATH10K_MAX_NUM_PEER_IDS) { in ath10k_peer_map_event()
213 ev->peer_id); in ath10k_peer_map_event()
218 peer = ath10k_peer_find(ar, ev->vdev_id, ev->addr); in ath10k_peer_map_event()
224 peer->vdev_id = ev->vdev_id; in ath10k_peer_map_event()
225 ether_addr_copy(peer->addr, ev->addr); in ath10k_peer_map_event()
231 ev->vdev_id, ev->addr, ev->peer_id); in ath10k_peer_map_event()
233 WARN_ON(ar->peer_map[ev->peer_id] && (ar->peer_map[ev->peer_id] != peer)); in ath10k_peer_map_event()
234 ar->peer_map[ev->peer_id] = peer; in ath10k_peer_map_event()
235 set_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_map_event()
[all …]
Dwmi-tlv.c172 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
184 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
185 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
190 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
191 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
265 const struct wmi_tlv_peer_stats_info_ev *ev; in ath10k_wmi_tlv_op_pull_peer_stats_info() local
277 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STATS_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_peer_stats_info()
280 if (!ev || !data) { in ath10k_wmi_tlv_op_pull_peer_stats_info()
285 num_peer_stats = __le32_to_cpu(ev->num_peers); in ath10k_wmi_tlv_op_pull_peer_stats_info()
289 __le32_to_cpu(ev->vdev_id), in ath10k_wmi_tlv_op_pull_peer_stats_info()
[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/rtl8188eu/os_dep/
Drecv_linux.c31 struct iw_michaelmicfailure ev; in rtw_handle_tkip_mic_err() local
50 memset(&ev, 0x00, sizeof(ev)); in rtw_handle_tkip_mic_err()
52 ev.flags |= IW_MICFAILURE_GROUP; in rtw_handle_tkip_mic_err()
54 ev.flags |= IW_MICFAILURE_PAIRWISE; in rtw_handle_tkip_mic_err()
56 ev.src_addr.sa_family = ARPHRD_ETHER; in rtw_handle_tkip_mic_err()
57 memcpy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0], ETH_ALEN); in rtw_handle_tkip_mic_err()
59 wrqu.data.length = sizeof(ev); in rtw_handle_tkip_mic_err()
61 &wrqu, (char *)&ev); in rtw_handle_tkip_mic_err()

12345678