Lines Matching defs:ev
44 * @ev: the struct ir_raw_event descriptor of the pulse/space
48 static int ir_rc5_decode(struct input_dev *input_dev, struct ir_raw_event ev)
58 if (IS_RESET(ev)) {
63 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2))
68 data->state, TO_US(ev.duration), TO_STR(ev.pulse));
70 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2))
76 if (!ev.pulse)
83 decrease_duration(&ev, RC5_BIT_START);
87 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2))
91 if (!ev.pulse)
98 if (!is_transition(&ev, &ir_dev->raw->prev_ev))
108 decrease_duration(&ev, RC5_BIT_END);
112 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) {
115 decrease_duration(&ev, RC5X_SPACE);
124 if (ev.pulse)
160 data->state, TO_US(ev.duration), TO_STR(ev.pulse));