Lines Matching refs:ev
46 static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sanyo_decode() argument
53 if (!is_timing_event(ev)) { in ir_sanyo_decode()
54 if (ev.reset) { in ir_sanyo_decode()
62 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
67 if (!ev.pulse) in ir_sanyo_decode()
70 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
79 if (ev.pulse) in ir_sanyo_decode()
82 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (!ev.pulse) in ir_sanyo_decode()
93 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
100 if (ev.pulse) in ir_sanyo_decode()
103 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
111 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
113 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
125 if (!ev.pulse) in ir_sanyo_decode()
128 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
135 if (ev.pulse) in ir_sanyo_decode()
138 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
161 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()