Lines Matching refs:ev
34 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sony_decode() argument
41 if (!is_timing_event(ev)) { in ir_sony_decode()
42 if (ev.overflow) in ir_sony_decode()
47 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
51 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
56 if (!ev.pulse) in ir_sony_decode()
59 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
67 if (ev.pulse) in ir_sony_decode()
70 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
77 if (!ev.pulse) in ir_sony_decode()
81 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
83 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
91 if (ev.pulse) in ir_sony_decode()
94 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
97 decrease_duration(&ev, SONY_BIT_SPACE); in ir_sony_decode()
99 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
108 if (ev.pulse) in ir_sony_decode()
111 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
157 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()