Home
last modified time | relevance | path

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

12345678910>>...14

/linux/include/sound/
H A 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 …]
/linux/block/
H A Ddisk-events.c43 struct disk_events *ev = disk->ev; in disk_events_poll_jiffies() local
50 if (ev->poll_msecs >= 0) in disk_events_poll_jiffies()
51 intv_msecs = ev->poll_msecs; in disk_events_poll_jiffies()
75 struct disk_events *ev = disk->ev; in disk_block_events() local
79 if (!ev) in disk_block_events()
86 mutex_lock(&ev->block_mutex); in disk_block_events()
88 spin_lock_irqsave(&ev->lock, flags); in disk_block_events()
89 cancel = !ev->block++; in disk_block_events()
90 spin_unlock_irqrestore(&ev->lock, flags); in disk_block_events()
93 cancel_delayed_work_sync(&disk->ev->dwork); in disk_block_events()
[all …]
/linux/drivers/connector/
H A Dcn_proc.c120 struct proc_event *ev; in proc_fork_connector() local
128 ev = (struct proc_event *)msg->data; in proc_fork_connector()
129 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
130 ev->timestamp_ns = ktime_get_ns(); in proc_fork_connector()
131 ev->what = PROC_EVENT_FORK; in proc_fork_connector()
134 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
135 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
137 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
138 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
142 msg->len = sizeof(*ev); in proc_fork_connector()
[all …]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_events.c96 struct kfd_event *ev, in allocate_event_notification_slot() argument
110 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in allocate_event_notification_slot()
119 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, in allocate_event_notification_slot()
125 ev->event_id = id; in allocate_event_notification_slot()
160 struct kfd_event *ev; in lookup_signaled_event_by_partial_id() local
178 for (ev = NULL; id < KFD_SIGNAL_EVENT_LIMIT && !ev; id += 1U << bits) { in lookup_signaled_event_by_partial_id()
182 ev = idr_find(&p->event_idr, id); in lookup_signaled_event_by_partial_id()
185 return ev; in lookup_signaled_event_by_partial_id()
189 struct kfd_event *ev, const int *restore_id) in create_signal_event() argument
202 ret = allocate_event_notification_slot(p, ev, restore_id); in create_signal_event()
[all …]
/linux/sound/core/seq/
H A 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 …]
H A 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 …]
H A 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 …]
/linux/samples/uhid/
H A 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 …]
/linux/sound/core/seq/oss/
H A 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 …]
/linux/net/llc/
H A 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 …]
H A 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 …]
H A Dllc_sap.c94 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_rtn_pdu() local
99 ev->prim = LLC_TEST_PRIM; break; in llc_sap_rtn_pdu()
101 ev->prim = LLC_XID_PRIM; break; in llc_sap_rtn_pdu()
103 ev->prim = LLC_DATAUNIT_PRIM; break; in llc_sap_rtn_pdu()
105 ev->ind_cfm_flag = LLC_IND; in llc_sap_rtn_pdu()
128 for (next_trans = curr_state->transitions; next_trans[i]->ev; i++) in llc_find_sap_trans()
129 if (!next_trans[i]->ev(sap, skb)) { in llc_find_sap_trans()
206 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_state_process() local
208 ev->ind_cfm_flag = 0; in llc_sap_state_process()
211 if (ev->ind_cfm_flag == LLC_IND && skb->sk->sk_state != TCP_LISTEN) { in llc_sap_state_process()
[all …]
/linux/drivers/hid/
H A 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 …]
/linux/tools/testing/selftests/hid/
H A Dhid_common.h118 static int uhid_write(struct __test_metadata *_metadata, int fd, const struct uhid_event *ev) in uhid_write() argument
122 ret = write(fd, ev, sizeof(*ev)); in uhid_write()
126 } else if (ret != sizeof(*ev)) { in uhid_write()
128 ret, sizeof(ev)); in uhid_write()
139 struct uhid_event ev; in uhid_create() local
144 memset(&ev, 0, sizeof(ev)); in uhid_create()
145 ev.type = UHID_CREATE; in uhid_create()
146 strcpy((char *)ev.u.create.name, buf); in uhid_create()
147 ev.u.create.rd_data = rdesc; in uhid_create()
148 ev.u.create.rd_size = rdesc_size; in uhid_create()
[all …]
/linux/drivers/media/rc/
H A 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.overflow) 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 …]
H A 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()
42 handler->decode(dev, ev); in ir_raw_event_thread()
43 lirc_raw_event(dev, ev); in ir_raw_event_thread()
44 raw->prev_ev = ev; in ir_raw_event_thread()
72 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() argument
[all …]
H A 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.overflow) 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 …]
H A 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.overflow) { 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 …]
H A 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.overflow) 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 …]
H A 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.overflow) 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 …]
H A 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.overflow) 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 …]
H A 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.overflow) 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 …]
/linux/drivers/scsi/libsas/
H A Dsas_event.c101 const int ev = DISCE_REVALIDATE_DOMAIN; in sas_enable_revalidation() local
105 if (!test_and_clear_bit(ev, &d->pending)) in sas_enable_revalidation()
126 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_port_event_worker() local
127 struct asd_sas_phy *phy = ev->phy; in sas_port_event_worker()
130 sas_port_event_fns[ev->event](work); in sas_port_event_worker()
132 sas_free_event(ev); in sas_port_event_worker()
137 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phy_event_worker() local
138 struct asd_sas_phy *phy = ev->phy; in sas_phy_event_worker()
141 sas_phy_event_fns[ev->event](work); in sas_phy_event_worker()
143 sas_free_event(ev); in sas_phy_event_worker()
[all …]
/linux/net/bluetooth/
H A Dhci_event.c48 u8 ev, size_t len) in hci_ev_skb_pull() argument
54 bt_dev_err(hdev, "Malformed Event: 0x%2.2x", ev); in hci_ev_skb_pull()
72 u8 ev, size_t len) in hci_le_ev_skb_pull() argument
78 bt_dev_err(hdev, "Malformed LE Event: 0x%2.2x", ev); in hci_le_ev_skb_pull()
2965 struct hci_ev_status *ev = data; in hci_inquiry_complete_evt() local
2969 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status); in hci_inquiry_complete_evt()
3024 struct hci_ev_inquiry_result *ev = edata; in hci_inquiry_result_evt() local
3029 flex_array_size(ev, info, ev->num))) in hci_inquiry_result_evt()
3032 bt_dev_dbg(hdev, "num %d", ev->num); in hci_inquiry_result_evt()
3034 if (!ev->num) in hci_inquiry_result_evt()
[all …]
/linux/tools/arch/x86/lib/
H A Dx86-opcode-map.txt25 # (ev): this opcode requires EVEX prefix.
460 6f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqa32/64 Vx,Wx (66),(evo) | vmovdqu Vx,Wx (F3) | vmovdqu32/64 Vx,Wx (F3),(evo) | vmovdqu8/16 Vx,Wx (F2),(ev)
471 78: VMREAD Ey,Gy | vcvttps2udq/pd2udq Vx,Wpd (evo) | vcvttsd2usi Gv,Wx (F2),(ev) | vcvttss2usi Gv,Wx (F3),(ev) | vcvttps2uqq/pd2uqq Vx,Wx (66),(ev)
472 79: VMWRITE Gy,Ey | vcvtps2udq/pd2udq Vx,Wpd (evo) | vcvtsd2usi Gv,Wx (F2),(ev) | vcvtss2usi Gv,Wx (F3),(ev) | vcvtps2uqq/pd2uqq Vx,Wx (66),(ev)
473 7a: vcvtudq2pd/uqq2pd Vpd,Wx (F3),(ev) | vcvtudq2ps/uqq2ps Vpd,Wx (F2),(ev) | vcvttps2q
[all...]

12345678910>>...14