Lines Matching defs:ev
76 * @ev: the struct ir_raw_event descriptor of the pulse/space
80 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev)
87 if (!is_timing_event(ev)) {
88 if (ev.overflow)
93 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2))
98 data->state, ev.duration, TO_STR(ev.pulse));
100 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2))
106 if (!ev.pulse)
112 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT))
120 if (ev.pulse)
123 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2))
131 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2))
135 if (ev.pulse)
147 decrease_duration(&ev, RC6_BIT_END);
151 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2))
154 data->toggle = ev.pulse;
165 decrease_duration(&ev, RC6_TOGGLE_END);
183 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) {
187 if (ev.pulse)
192 } else if (RC6_MODE_6A == rc6_mode(data) && !ev.pulse &&
193 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) {
205 decrease_duration(&ev, RC6_BIT_END);
209 if (ev.pulse)
273 data->state, ev.duration, TO_STR(ev.pulse));