Lines Matching refs:ev
46 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_jvc_decode() argument
50 if (!is_timing_event(ev)) { in ir_jvc_decode()
51 if (ev.reset) in ir_jvc_decode()
56 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
60 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
66 if (!ev.pulse) in ir_jvc_decode()
69 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
79 if (ev.pulse) in ir_jvc_decode()
82 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
89 if (!ev.pulse) in ir_jvc_decode()
92 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
99 if (ev.pulse) in ir_jvc_decode()
103 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
105 decrease_duration(&ev, JVC_BIT_1_SPACE); in ir_jvc_decode()
106 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
107 decrease_duration(&ev, JVC_BIT_0_SPACE); in ir_jvc_decode()
119 if (!ev.pulse) in ir_jvc_decode()
122 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
129 if (ev.pulse) in ir_jvc_decode()
132 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
156 if (!ev.pulse) in ir_jvc_decode()
159 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
168 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()