Lines Matching defs:ev
37 * @ev: the struct ir_raw_event descriptor of the pulse/space
41 static int ir_sony_decode(struct input_dev *input_dev, struct ir_raw_event ev)
51 if (IS_RESET(ev)) {
56 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2))
60 data->state, TO_US(ev.duration), TO_STR(ev.pulse));
65 if (!ev.pulse)
68 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2))
76 if (ev.pulse)
79 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2))
86 if (!ev.pulse)
90 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2))
92 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2))
100 if (ev.pulse)
103 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2))
106 decrease_duration(&ev, SONY_BIT_SPACE);
108 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) {
117 if (ev.pulse)
120 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2))
153 data->state, TO_US(ev.duration), TO_STR(ev.pulse));