Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_events.c95 struct kfd_event *ev, in allocate_event_notification_slot() argument
109 id = idr_alloc(&p->event_idr, ev, *restore_id, *restore_id + 1, in allocate_event_notification_slot()
118 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, in allocate_event_notification_slot()
124 ev->event_id = id; in allocate_event_notification_slot()
159 struct kfd_event *ev; in lookup_signaled_event_by_partial_id() local
177 for (ev = NULL; id < KFD_SIGNAL_EVENT_LIMIT && !ev; id += 1U << bits) { in lookup_signaled_event_by_partial_id()
181 ev = idr_find(&p->event_idr, id); in lookup_signaled_event_by_partial_id()
184 return ev; in lookup_signaled_event_by_partial_id()
188 struct kfd_event *ev, const int *restore_id) in create_signal_event() argument
201 ret = allocate_event_notification_slot(p, ev, restore_id); in create_signal_event()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/utouch/utouch-evemu/
H A D0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch39 int evemu_write_event(FILE *fp, const struct input_event *ev)
42 - ev->time.tv_sec, (unsigned)ev->time.tv_usec,
43 + ev->input_event_sec, (unsigned)ev->input_event_usec,
44 ev->type, ev->code, ev->value);
47 @@ -391,8 +391,8 @@ int evemu_read_event(FILE *fp, struct input_event *ev)
51 - ev->time.tv_sec = sec;
52 - ev->time.tv_usec = usec;
53 + ev->input_event_sec = sec;
54 + ev->input_event_usec = usec;
55 ev->type = type;
[all …]
/openbmc/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 …]
/openbmc/qemu/trace/
H A Dqmp.c20 TraceEvent *ev = trace_event_name(name); in check_events() local
23 if (ev == NULL) { in check_events()
29 if (!ignore_unavailable && !trace_event_get_state_static(ev)) { in check_events()
38 TraceEvent *ev; in check_events() local
40 while ((ev = trace_event_iter_next(&iter)) != NULL) { in check_events()
41 if (!ignore_unavailable && !trace_event_get_state_static(ev)) { in check_events()
42 error_setg(errp, "event \"%s\" is disabled", trace_event_get_name(ev)); in check_events()
55 TraceEvent *ev; in qmp_trace_event_get_state() local
65 while ((ev = trace_event_iter_next(&iter)) != NULL) { in qmp_trace_event_get_state()
69 value->name = g_strdup(trace_event_get_name(ev)); in qmp_trace_event_get_state()
[all …]
H A Dcontrol-internal.h22 static inline uint32_t trace_event_get_id(TraceEvent *ev) in trace_event_get_id() argument
24 assert(ev != NULL); in trace_event_get_id()
25 return ev->id; in trace_event_get_id()
28 static inline const char * trace_event_get_name(TraceEvent *ev) in trace_event_get_name() argument
30 assert(ev != NULL); in trace_event_get_name()
31 return ev->name; in trace_event_get_name()
34 static inline bool trace_event_get_state_static(TraceEvent *ev) in trace_event_get_state_static() argument
36 assert(ev != NULL); in trace_event_get_state_static()
37 return ev->sstate; in trace_event_get_state_static()
44 static inline bool trace_event_get_state_dynamic(TraceEvent *ev) in trace_event_get_state_dynamic() argument
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/s390/net/
H A 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 …]
/openbmc/linux/net/bluetooth/
H A Dhci_event.c51 u8 ev, size_t len) in hci_ev_skb_pull() argument
57 bt_dev_err(hdev, "Malformed Event: 0x%2.2x", ev); in hci_ev_skb_pull()
75 u8 ev, size_t len) in hci_le_ev_skb_pull() argument
81 bt_dev_err(hdev, "Malformed LE Event: 0x%2.2x", ev); in hci_le_ev_skb_pull()
2968 struct hci_ev_status *ev = data; in hci_inquiry_complete_evt() local
2972 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status); in hci_inquiry_complete_evt()
3027 struct hci_ev_inquiry_result *ev = edata; in hci_inquiry_result_evt() local
3032 flex_array_size(ev, info, ev->num))) in hci_inquiry_result_evt()
3035 bt_dev_dbg(hdev, "num %d", ev->num); in hci_inquiry_result_evt()
3037 if (!ev->num) in hci_inquiry_result_evt()
[all …]

12345678910>>...18