Lines Matching refs:ev
48 static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_nec_decode() argument
58 if (!is_timing_event(ev)) { in ir_nec_decode()
59 if (ev.reset) in ir_nec_decode()
65 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
70 if (!ev.pulse) in ir_nec_decode()
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT / 2)) { in ir_nec_decode()
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
86 if (ev.pulse) in ir_nec_decode()
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
106 if (!ev.pulse) in ir_nec_decode()
109 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
116 if (ev.pulse) in ir_nec_decode()
120 geq_margin(ev.duration, in ir_nec_decode()
131 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
133 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
145 if (!ev.pulse) in ir_nec_decode()
148 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
155 if (ev.pulse) in ir_nec_decode()
158 if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
198 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()