Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-5.10/include/sound/
Dasequencer.h15 #define snd_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(struct snd_s… argument
21 #define snd_seq_ev_is_result_type(ev) ((ev)->type < 5) argument
23 #define snd_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20) argument
25 #define snd_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10) argument
27 #define snd_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20) argument
29 #define snd_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40) argument
31 #define snd_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69) argument
33 #define snd_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79) argument
35 #define snd_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99) argument
37 #define snd_seq_ev_is_fixed_type(ev) ((ev)->type < 100) argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/samples/uhid/
Duhid-example.c159 static int uhid_write(int fd, const struct uhid_event *ev) in uhid_write() argument
163 ret = write(fd, ev, sizeof(*ev)); in uhid_write()
167 } else if (ret != sizeof(*ev)) { in uhid_write()
169 ret, sizeof(ev)); in uhid_write()
178 struct uhid_event ev; in create() local
180 memset(&ev, 0, sizeof(ev)); in create()
181 ev.type = UHID_CREATE; in create()
182 strcpy((char*)ev.u.create.name, "test-uhid-device"); in create()
183 ev.u.create.rd_data = rdesc; in create()
184 ev.u.create.rd_size = sizeof(rdesc); in create()
[all …]
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_midi_event.c33 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
34 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
35 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
36 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
37 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
38 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
39 static void note_decode(struct snd_seq_event *ev, unsigned char *buf);
40 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf);
41 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf);
42 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf);
[all …]
Dseq_system.c55 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
60 memset(ev, 0, sizeof(struct snd_seq_event)); in setheader()
62 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; in setheader()
63 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; in setheader()
65 ev->source.client = sysclient; in setheader()
66 ev->source.port = announce_port; in setheader()
67 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
71 ev->data.addr.client = client; in setheader()
72 ev->data.addr.port = port; in setheader()
81 struct snd_seq_event ev; in snd_seq_system_broadcast() local
[all …]
Dseq_midi_emul.c73 struct snd_seq_event *ev, in snd_midi_process_event() argument
80 if (ev == NULL || chanset == NULL) { in snd_midi_process_event()
87 if (snd_seq_ev_is_channel_type(ev)) { in snd_midi_process_event()
88 dest_channel = ev->data.note.channel; in snd_midi_process_event()
100 if (ev->type == SNDRV_SEQ_EVENT_NOTE) in snd_midi_process_event()
105 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event()
106 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_midi_process_event()
109 if (ev->type == SNDRV_SEQ_EVENT_NOTEON || in snd_midi_process_event()
110 ev->type == SNDRV_SEQ_EVENT_NOTEOFF || in snd_midi_process_event()
111 ev->type == SNDRV_SEQ_EVENT_KEYPRESS) { in snd_midi_process_event()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/core/seq/oss/
Dseq_oss_event.c22 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
23 … int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
24 …int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
25 …tic int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
26 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev
27 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
28 …on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
29 …ff_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
30 …truct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
31 …ruct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev);
[all …]
/kernel/linux/linux-5.10/net/llc/
Dllc_s_ev.c25 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_activation_req() local
27 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && in llc_sap_ev_activation_req()
28 ev->prim_type == LLC_SAP_EV_ACTIVATION_REQ ? 0 : 1; in llc_sap_ev_activation_req()
33 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_rx_ui() local
36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui()
43 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_unitdata_req() local
45 return ev->type == LLC_SAP_EV_TYPE_PRIM && in llc_sap_ev_unitdata_req()
46 ev->prim == LLC_DATAUNIT_PRIM && in llc_sap_ev_unitdata_req()
47 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; in llc_sap_ev_unitdata_req()
53 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_xid_req() local
[all …]
Dllc_c_st.c46 .ev = llc_conn_ev_disc_req,
63 .ev = llc_conn_ev_rst_req,
83 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
99 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
118 .ev = llc_conn_ev_rx_frmr_rsp_fbit_set_x,
133 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
149 .ev = llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr,
165 .ev = llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns,
181 .ev = llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr,
197 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns,
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c38 static int ir_sharp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sharp_decode() argument
43 if (!is_timing_event(ev)) { in ir_sharp_decode()
44 if (ev.reset) in ir_sharp_decode()
50 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sharp_decode()
55 if (!ev.pulse) in ir_sharp_decode()
58 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
63 data->pulse_len = ev.duration; in ir_sharp_decode()
68 if (!ev.pulse) in ir_sharp_decode()
71 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
75 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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/bluetooth/
Dhci_event.c2571 struct hci_ev_conn_complete *ev = (void *) skb->data; in hci_conn_complete_evt() local
2578 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
2589 if (ev->link_type == ACL_LINK && in hci_conn_complete_evt()
2591 &ev->bdaddr, in hci_conn_complete_evt()
2593 conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr, in hci_conn_complete_evt()
2600 if (ev->link_type != SCO_LINK) in hci_conn_complete_evt()
2604 &ev->bdaddr); in hci_conn_complete_evt()
2612 if (!ev->status) { in hci_conn_complete_evt()
2613 conn->handle = __le16_to_cpu(ev->handle); in hci_conn_complete_evt()
2620 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Devent_update.c20 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_unit() local
22 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit()
23 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__UNIT); in process_event_unit()
24 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->data, "KRAVA")); in process_event_unit()
33 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_scale() local
36 ev_data = (struct perf_record_event_update_scale *)ev->data; in process_event_scale()
38 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale()
39 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__SCALE); in process_event_scale()
55 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_name() local
57 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name()
[all …]
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_dynevent.h43 int (*show)(struct seq_file *m, struct dyn_event *ev);
44 bool (*is_busy)(struct dyn_event *ev);
45 int (*free)(struct dyn_event *ev);
47 int argc, const char **argv, struct dyn_event *ev);
69 int dyn_event_init(struct dyn_event *ev, struct dyn_event_operations *ops) in dyn_event_init() argument
71 if (!ev || !ops) in dyn_event_init()
74 INIT_LIST_HEAD(&ev->list); in dyn_event_init()
75 ev->ops = ops; in dyn_event_init()
79 static inline int dyn_event_add(struct dyn_event *ev) in dyn_event_add() argument
83 if (!ev || !ev->ops) in dyn_event_add()
[all …]

12345678910>>...15