NEC_UNIT 12 drivers/media/rc/ir-nec-decoder.c #define NEC_HEADER_PULSE (16 * NEC_UNIT) NEC_UNIT 13 drivers/media/rc/ir-nec-decoder.c #define NECX_HEADER_PULSE (8 * NEC_UNIT) /* Less common NEC variant */ NEC_UNIT 14 drivers/media/rc/ir-nec-decoder.c #define NEC_HEADER_SPACE (8 * NEC_UNIT) NEC_UNIT 15 drivers/media/rc/ir-nec-decoder.c #define NEC_REPEAT_SPACE (4 * NEC_UNIT) NEC_UNIT 16 drivers/media/rc/ir-nec-decoder.c #define NEC_BIT_PULSE (1 * NEC_UNIT) NEC_UNIT 17 drivers/media/rc/ir-nec-decoder.c #define NEC_BIT_0_SPACE (1 * NEC_UNIT) NEC_UNIT 18 drivers/media/rc/ir-nec-decoder.c #define NEC_BIT_1_SPACE (3 * NEC_UNIT) NEC_UNIT 19 drivers/media/rc/ir-nec-decoder.c #define NEC_TRAILER_PULSE (1 * NEC_UNIT) NEC_UNIT 20 drivers/media/rc/ir-nec-decoder.c #define NEC_TRAILER_SPACE (10 * NEC_UNIT) /* even longer in reality */ NEC_UNIT 61 drivers/media/rc/ir-nec-decoder.c if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { NEC_UNIT 64 drivers/media/rc/ir-nec-decoder.c } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) NEC_UNIT 77 drivers/media/rc/ir-nec-decoder.c if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { NEC_UNIT 80 drivers/media/rc/ir-nec-decoder.c } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { NEC_UNIT 91 drivers/media/rc/ir-nec-decoder.c if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) NEC_UNIT 102 drivers/media/rc/ir-nec-decoder.c geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) { NEC_UNIT 111 drivers/media/rc/ir-nec-decoder.c if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) NEC_UNIT 113 drivers/media/rc/ir-nec-decoder.c else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) NEC_UNIT 128 drivers/media/rc/ir-nec-decoder.c if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) NEC_UNIT 138 drivers/media/rc/ir-nec-decoder.c if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2))