Home
last modified time | relevance | path

Searched refs:eq_margin (Results 1 – 10 of 10) sorted by relevance

/drivers/media/rc/
Dir-nec-decoder.c71 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
74 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
87 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
90 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
107 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
129 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
131 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
146 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
Dir-jvc-decoder.c69 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
82 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
92 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
103 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
106 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
122 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
159 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
Dir-sharp-decoder.c66 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
79 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
92 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode()
95 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode()
112 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
132 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode()
Dir-sanyo-decoder.c78 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
101 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
123 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
125 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
140 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
Dir-rc6-decoder.c118 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
129 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
137 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) in ir_rc6_decode()
160 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
196 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
Dir-sony-decoder.c67 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
78 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) 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()
Dir-xmp-decoder.c61 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
72 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
Drc-core-priv.h130 static inline bool eq_margin(unsigned d1, unsigned d2, unsigned margin) in eq_margin() function
Dir-rc5-decoder.c89 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
Dir-mce_kbd-decoder.c244 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) in ir_mce_kbd_decode()