Lines Matching refs:ev
42 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sony_decode() argument
49 if (!is_timing_event(ev)) { in ir_sony_decode()
50 if (ev.reset) in ir_sony_decode()
55 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
59 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
64 if (!ev.pulse) in ir_sony_decode()
67 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
75 if (ev.pulse) in ir_sony_decode()
78 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
85 if (!ev.pulse) in ir_sony_decode()
89 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
91 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
99 if (ev.pulse) in ir_sony_decode()
102 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
105 decrease_duration(&ev, SONY_BIT_SPACE); in ir_sony_decode()
107 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
116 if (ev.pulse) in ir_sony_decode()
119 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
165 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()