Lines Matching refs:ev
39 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, 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()
88 if (!ev.pulse) in ir_nec_decode()
91 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
98 if (ev.pulse) in ir_nec_decode()
102 geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
111 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
113 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
125 if (!ev.pulse) in ir_nec_decode()
128 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
135 if (ev.pulse) in ir_nec_decode()
138 if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
166 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_nec_decode()