Lines Matching defs:pulse
2 // rc-ir-raw.c - handle IR pulse/space events
37 TO_STR(ev.pulse));
38 if (raw->prev_ev.reset && ev.pulse == 0)
39 dev_warn_once(&dev->dev, "timing event after reset should be pulse");
65 * ir_raw_event_store() - pass a pulse/space duration to the raw ir decoders
67 * @ev: the struct ir_raw_event descriptor of the pulse/space
70 * pulse/space duration for the raw ir decoding state machines. Pulses are
80 ev->duration, TO_STR(ev->pulse));
92 * ir_raw_event_store_edge() - notify raw ir decoders of the start of a pulse/space
94 * @pulse: true for pulse, false for space
97 * store the beginning of an ir pulse or space (or the start/end of ir
102 int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse)
112 ev.pulse = !pulse;
119 * ir_raw_event_store_with_timeout() - pass a pulse/space duration to the raw
123 * @ev: the struct ir_raw_event descriptor of the pulse/space
126 * pulse/space duration for the raw ir decoding state machines, schedules
158 * ir_raw_event_store_with_filter() - pass next pulse/space to decoders with some processing
175 if (dev->idle && !ev->pulse)
182 else if (ev->pulse == dev->raw->this_ev.pulse)
190 if (!ev->pulse && dev->timeout &&
348 if (need_pulse == !!(*ev)->pulse) {
365 if (!(*ev)->pulse)
383 * ir_raw_gen_pd() - Encode data to raw events with pulse-distance modulation.
391 * Encodes the @n least significant bits of @data using pulse-distance
442 * ir_raw_gen_pl() - Encode data to raw events with pulse-length modulation.
465 unsigned int pulse;
480 pulse = timings->bit_pulse[(data >> i) & 1];
481 init_ir_raw_event_duration((*ev)++, 1, pulse);
491 pulse = timings->bit_pulse[data & 1];
492 init_ir_raw_event_duration((*ev)++, 1, pulse);