Lines Matching refs:ev
225 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()
277 decrease_duration(&ev, MCIR2_BIT_END); in ir_mce_kbd_decode()
302 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
306 if (ev.pulse) in ir_mce_kbd_decode()
318 decrease_duration(&ev, MCIR2_BIT_END); in ir_mce_kbd_decode()
322 if (ev.pulse) in ir_mce_kbd_decode()
365 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_mce_kbd_decode()