Home
last modified time | relevance | path

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

123

/linux-4.19.296/include/sound/
Dasequencer.h30 #define snd_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(struct snd_s… argument
36 #define snd_seq_ev_is_result_type(ev) ((ev)->type < 5) argument
38 #define snd_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20) argument
40 #define snd_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10) argument
42 #define snd_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20) argument
44 #define snd_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40) argument
46 #define snd_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69) argument
48 #define snd_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79) argument
50 #define snd_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99) argument
52 #define snd_seq_ev_is_fixed_type(ev) ((ev)->type < 100) argument
[all …]
/linux-4.19.296/drivers/hid/
Duhid.c95 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) in uhid_queue() argument
102 uhid->outq[uhid->head] = ev; in uhid_queue()
107 kfree(ev); in uhid_queue()
114 struct uhid_event *ev; in uhid_queue_event() local
116 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
117 if (!ev) in uhid_queue_event()
120 ev->type = event; in uhid_queue_event()
123 uhid_queue(uhid, ev); in uhid_queue_event()
132 struct uhid_event *ev; in uhid_hid_start() local
135 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_start()
[all …]
/linux-4.19.296/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 …]
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 ir_lirc_raw_event(dev, ev); in ir_raw_event_thread()
46 raw->prev_ev = ev; in ir_raw_event_thread()
[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.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, TO_US(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-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, TO_US(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-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-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 …]
Dir-rc6-decoder.c87 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc6_decode() argument
94 if (!is_timing_event(ev)) { in ir_rc6_decode()
95 if (ev.reset) in ir_rc6_decode()
100 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
105 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
107 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
113 if (!ev.pulse) in ir_rc6_decode()
119 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
127 if (ev.pulse) in ir_rc6_decode()
130 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
[all …]
Drc-core-priv.h160 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
162 if (duration > ev->duration) in decrease_duration()
163 ev->duration = 0; in decrease_duration()
165 ev->duration -= duration; in decrease_duration()
169 static inline bool is_timing_event(struct ir_raw_event ev) in is_timing_event() argument
171 return !ev.carrier_report && !ev.reset; in is_timing_event()
180 static inline void init_ir_raw_event_duration(struct ir_raw_event *ev, in init_ir_raw_event_duration() argument
184 init_ir_raw_event(ev); in init_ir_raw_event_duration()
185 ev->duration = duration; in init_ir_raw_event_duration()
186 ev->pulse = pulse; in init_ir_raw_event_duration()
[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, TO_US(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 …]
Dir-imon-decoder.c104 static int ir_imon_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_imon_decode() argument
108 if (!is_timing_event(ev)) { in ir_imon_decode()
109 if (ev.reset) in ir_imon_decode()
116 data->state, data->count, TO_US(ev.duration), in ir_imon_decode()
117 TO_STR(ev.pulse)); in ir_imon_decode()
130 if (!ev.pulse && ev.duration > MS_TO_NS(10)) in ir_imon_decode()
136 if (!geq_margin(ev.duration, IMON_UNIT, IMON_UNIT / 2)) in ir_imon_decode()
139 decrease_duration(&ev, IMON_UNIT); in ir_imon_decode()
143 if (ev.pulse) { in ir_imon_decode()
151 data->last_chk = ev.pulse; in ir_imon_decode()
[all …]
Dir-mce_kbd-decoder.c225 static int ir_mce_kbd_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_mce_kbd_decode() argument
232 if (!is_timing_event(ev)) { in ir_mce_kbd_decode()
233 if (ev.reset) in ir_mce_kbd_decode()
238 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
243 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_mce_kbd_decode()
245 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
251 if (!ev.pulse) in ir_mce_kbd_decode()
257 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) in ir_mce_kbd_decode()
266 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
270 if (ev.pulse) in ir_mce_kbd_decode()
[all …]
Dserial_ir.c276 DEFINE_IR_RAW_EVENT(ev); in frbwrite()
281 ev.duration = space; in frbwrite()
282 ev.pulse = false; in frbwrite()
283 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
284 ev.duration = pulse; in frbwrite()
285 ev.pulse = true; in frbwrite()
286 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
311 ev.duration = space; in frbwrite()
312 ev.pulse = false; in frbwrite()
313 ir_raw_event_store_with_filter(serial_ir.rcdev, &ev); in frbwrite()
[all …]
Dst_rc.c70 DEFINE_IR_RAW_EVENT(ev); in st_rc_send_lirc_timeout()
71 ev.timeout = true; in st_rc_send_lirc_timeout()
72 ir_raw_event_store(rdev, &ev); in st_rc_send_lirc_timeout()
104 DEFINE_IR_RAW_EVENT(ev); in st_rc_rx_interrupt()
142 ev.duration = US_TO_NS(mark); in st_rc_rx_interrupt()
143 ev.pulse = true; in st_rc_rx_interrupt()
144 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
147 ev.duration = US_TO_NS(symbol); in st_rc_rx_interrupt()
148 ev.pulse = false; in st_rc_rx_interrupt()
149 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
/linux-4.19.296/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 …]
/linux-4.19.296/drivers/thunderbolt/
Dtb.c252 struct tb_hotplug_event *ev = container_of(work, typeof(*ev), work); in tb_handle_hotplug() local
253 struct tb *tb = ev->tb; in tb_handle_hotplug()
261 sw = tb_switch_find_by_route(tb, ev->route); in tb_handle_hotplug()
265 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
268 if (ev->port > sw->config.max_port_number) { in tb_handle_hotplug()
271 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
274 port = &sw->ports[ev->port]; in tb_handle_hotplug()
278 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
281 if (ev->unplug) { in tb_handle_hotplug()
314 kfree(ev); in tb_handle_hotplug()
[all …]
/linux-4.19.296/include/linux/ceph/
Dpagelist.h53 __le64 ev = cpu_to_le64(v); in ceph_pagelist_encode_64() local
54 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_64()
58 __le32 ev = cpu_to_le32(v); in ceph_pagelist_encode_32() local
59 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_32()
63 __le16 ev = cpu_to_le16(v); in ceph_pagelist_encode_16() local
64 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_16()
/linux-4.19.296/block/
Dgenhd.c41 static void disk_check_events(struct disk_events *ev,
1637 struct disk_events *ev = disk->ev; in disk_events_poll_jiffies() local
1645 if (ev->poll_msecs >= 0) in disk_events_poll_jiffies()
1646 intv_msecs = ev->poll_msecs; in disk_events_poll_jiffies()
1670 struct disk_events *ev = disk->ev; in disk_block_events() local
1674 if (!ev) in disk_block_events()
1681 mutex_lock(&ev->block_mutex); in disk_block_events()
1683 spin_lock_irqsave(&ev->lock, flags); in disk_block_events()
1684 cancel = !ev->block++; in disk_block_events()
1685 spin_unlock_irqrestore(&ev->lock, flags); in disk_block_events()
[all …]
/linux-4.19.296/drivers/isdn/gigaset/
Dev-layer.c1103 struct event_t *ev) in do_action() argument
1205 at_state = get_free_channel(cs, ev->parameter); in do_action()
1315 if (ev->parameter > 0 && ev->parameter <= 65535) { in do_action()
1316 cs->bcs[channel].at_state.cid = ev->parameter; in do_action()
1368 if (!ev->ptr) { in do_action()
1373 s = ev->ptr; in do_action()
1423 __func__, ev->type, at_state->ConState); in do_action()
1427 __func__, ev->type, at_state->ConState); in do_action()
1431 ev->parameter, at_state->ConState); in do_action()
1437 if (!ev->ptr) { in do_action()
[all …]
/linux-4.19.296/include/media/
Drc-core.h322 static inline void init_ir_raw_event(struct ir_raw_event *ev) in init_ir_raw_event() argument
324 memset(ev, 0, sizeof(*ev)); in init_ir_raw_event()
334 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev);
337 struct ir_raw_event *ev);
339 struct ir_raw_event *ev);
347 struct ir_raw_event ev = { .reset = true }; in ir_raw_event_reset() local
349 ir_raw_event_store(dev, &ev); in ir_raw_event_reset()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-event.c106 static void __v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev, in __v4l2_event_queue_fh() argument
114 sev = v4l2_event_subscribed(fh, ev->type, ev->id); in __v4l2_event_queue_fh()
131 sev->ops->replace(&kev->event, ev); in __v4l2_event_queue_fh()
143 kev->event.type = ev->type; in __v4l2_event_queue_fh()
145 kev->event.u = ev->u; in __v4l2_event_queue_fh()
146 kev->event.id = ev->id; in __v4l2_event_queue_fh()
157 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev) in v4l2_event_queue() argument
171 __v4l2_event_queue_fh(fh, ev, &timestamp); in v4l2_event_queue()
177 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev) in v4l2_event_queue_fh() argument
185 __v4l2_event_queue_fh(fh, ev, &timestamp); in v4l2_event_queue_fh()
/linux-4.19.296/drivers/media/common/siano/
Dsmsir.c29 DEFINE_IR_RAW_EVENT(ev); in sms_ir_event()
31 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ in sms_ir_event()
32 ev.pulse = (samples[i] > 0) ? false : true; in sms_ir_event()
34 ir_raw_event_store(coredev->ir.dev, &ev); in sms_ir_event()
/linux-4.19.296/include/scsi/
Dlibsas.h240 struct sas_discovery_event *ev = container_of(work, typeof(*ev), work.work); in to_sas_discovery_event() local
242 return ev; in to_sas_discovery_event()
300 struct asd_sas_event *ev = container_of(work, typeof(*ev), work.work); in to_asd_sas_event() local
302 return ev; in to_asd_sas_event()
305 static inline void INIT_SAS_EVENT(struct asd_sas_event *ev, in INIT_SAS_EVENT() argument
309 INIT_SAS_WORK(&ev->work, fn); in INIT_SAS_EVENT()
310 ev->phy = phy; in INIT_SAS_EVENT()
311 ev->event = event; in INIT_SAS_EVENT()
696 int sas_discover_event(struct asd_sas_port *, enum discover_event ev);

123