Lines Matching refs:ev
38 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_jvc_decode() argument
42 if (!is_timing_event(ev)) { in ir_jvc_decode()
43 if (ev.overflow) in ir_jvc_decode()
48 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode()
58 if (!ev.pulse) in ir_jvc_decode()
61 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
71 if (ev.pulse) in ir_jvc_decode()
74 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
81 if (!ev.pulse) in ir_jvc_decode()
84 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
91 if (ev.pulse) in ir_jvc_decode()
95 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
97 decrease_duration(&ev, JVC_BIT_1_SPACE); in ir_jvc_decode()
98 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
99 decrease_duration(&ev, JVC_BIT_0_SPACE); in ir_jvc_decode()
111 if (!ev.pulse) in ir_jvc_decode()
114 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
121 if (ev.pulse) in ir_jvc_decode()
124 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
148 if (!ev.pulse) in ir_jvc_decode()
151 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
160 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode()