Lines Matching refs:ev
59 static int ir_rcmm_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rcmm_decode() argument
71 if (!is_timing_event(ev)) { in ir_rcmm_decode()
72 if (ev.reset) in ir_rcmm_decode()
79 if (!ev.pulse) in ir_rcmm_decode()
82 if (!eq_margin(ev.duration, RCMM_PREFIX_PULSE, RCMM_UNIT)) in ir_rcmm_decode()
91 if (ev.pulse) in ir_rcmm_decode()
94 if (!eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT)) in ir_rcmm_decode()
101 if (!ev.pulse) in ir_rcmm_decode()
104 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
111 if (ev.pulse) in ir_rcmm_decode()
114 if (eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT / 2)) in ir_rcmm_decode()
116 else if (eq_margin(ev.duration, RCMM_PULSE_1, RCMM_UNIT / 2)) in ir_rcmm_decode()
118 else if (eq_margin(ev.duration, RCMM_PULSE_2, RCMM_UNIT / 2)) in ir_rcmm_decode()
120 else if (eq_margin(ev.duration, RCMM_PULSE_3, RCMM_UNIT / 2)) in ir_rcmm_decode()
144 if (!ev.pulse) in ir_rcmm_decode()
147 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
168 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_rcmm_decode()
180 static int ir_rcmm_rawencoder(struct ir_raw_event **ev, unsigned int max, in ir_rcmm_rawencoder() argument
186 ret = ir_raw_gen_pulse_space(ev, &max, RCMM_PREFIX_PULSE, RCMM_PULSE_0); in ir_rcmm_rawencoder()
193 ret = ir_raw_gen_pulse_space(ev, &max, RCMM_UNIT, space); in ir_rcmm_rawencoder()
198 return ir_raw_gen_pulse_space(ev, &max, RCMM_UNIT, RCMM_PULSE_3 * 2); in ir_rcmm_rawencoder()