Searched refs:pulse (Results 1 - 25 of 73) sorted by relevance

123

/linux-master/drivers/media/rc/
H A Dir-imon-decoder.c19 * This protocol has 30 bits. The format is one IMON_UNIT header pulse,
21 * one IMON_UNIT field with the actual bit (1=space, 0=pulse).
22 * The check field is always space for some bits, for others it is pulse if
27 * the lower bits are all set, iow. the last pulse is for the lowest
87 * ir_imon_decode() - Decode one iMON pulse or space
89 * @ev: the struct ir_raw_event descriptor of the pulse/space
91 * This function returns -EINVAL if the pulse violates the state machine
105 data->state, data->count, ev.duration, TO_STR(ev.pulse));
118 if (!ev.pulse && ev.duration > MS_TO_US(10))
131 if (ev.pulse) {
194 int i, pulse; local
[all...]
H A Dir-jvc-decoder.c32 * ir_jvc_decode() - Decode one JVC pulse or space
34 * @ev: the struct ir_raw_event descriptor of the pulse/space
36 * This function returns -EINVAL if the pulse violates the state machine
52 data->state, ev.duration, TO_STR(ev.pulse));
58 if (!ev.pulse)
71 if (ev.pulse)
81 if (!ev.pulse)
91 if (ev.pulse)
111 if (!ev.pulse)
121 if (ev.pulse)
[all...]
H A Dir-sanyo-decoder.c40 * ir_sanyo_decode() - Decode one SANYO pulse or space
42 * @ev: the struct ir_raw_event descriptor of the pulse/space
44 * This function returns -EINVAL if the pulse violates the state machine
62 data->state, ev.duration, TO_STR(ev.pulse));
67 if (!ev.pulse)
79 if (ev.pulse)
90 if (!ev.pulse)
100 if (ev.pulse)
125 if (!ev.pulse)
135 if (ev.pulse)
[all...]
H A Dir-sharp-decoder.c34 * ir_sharp_decode() - Decode one Sharp pulse or space
36 * @ev: the struct ir_raw_event descriptor of the pulse/space
38 * This function returns -EINVAL if the pulse violates the state machine
52 data->state, ev.duration, TO_STR(ev.pulse));
57 if (!ev.pulse)
70 if (!ev.pulse)
82 if (ev.pulse)
103 if (!ev.pulse)
123 if (ev.pulse)
135 if (ev.pulse)
[all...]
H A Dir-rcmm-decoder.c53 * ir_rcmm_decode() - Decode one RCMM pulse or space
55 * @ev: the struct ir_raw_event descriptor of the pulse/space
57 * This function returns -EINVAL if the pulse violates the state machine
79 if (!ev.pulse)
91 if (ev.pulse)
101 if (!ev.pulse)
111 if (ev.pulse)
144 if (!ev.pulse)
168 data->count, data->state, ev.duration, TO_STR(ev.pulse));
H A Dir-rc6-decoder.c74 * ir_rc6_decode() - Decode one RC6 pulse or space
76 * @ev: the struct ir_raw_event descriptor of the pulse/space
78 * This function returns -EINVAL if the pulse violates the state machine
98 data->state, ev.duration, TO_STR(ev.pulse));
106 if (!ev.pulse)
109 /* Note: larger margin on first pulse since each RC6_UNIT
120 if (ev.pulse)
135 if (ev.pulse)
154 data->toggle = ev.pulse;
187 if (ev.pulse)
[all...]
H A Dir-nec-decoder.c33 * ir_nec_decode() - Decode one NEC pulse or space
35 * @ev: the struct ir_raw_event descriptor of the pulse/space
37 * This function returns -EINVAL if the pulse violates the state machine
53 data->state, ev.duration, TO_STR(ev.pulse));
58 if (!ev.pulse)
74 if (ev.pulse)
88 if (!ev.pulse)
98 if (ev.pulse)
125 if (!ev.pulse)
135 if (ev.pulse)
[all...]
H A Dir-xmp-decoder.c29 * ir_xmp_decode() - Decode one XMP pulse or space
31 * @ev: the struct ir_raw_event descriptor of the pulse/space
33 * This function returns -EINVAL if the pulse violates the state machine
46 data->state, data->count, ev.duration, TO_STR(ev.pulse));
51 if (!ev.pulse)
62 if (!ev.pulse)
71 if (ev.pulse)
150 dev_dbg(&dev->dev, "received half frame pulse at index %d. Probably a final frame key-up event: %u\n",
161 dev_dbg(&dev->dev, "received half frame pulse at index %d: %u\n",
187 data->count, data->state, ev.duration, TO_STR(ev.pulse));
[all...]
H A Dir-spi.c26 u16 pulse; member in struct:ir_spi_data
43 /* convert the pulse/space signal to raw binary signal */
55 * the first value in buffer is a pulse, so that 0, 2, 4, ...
56 * contain a pulse duration. On the contrary, 1, 3, 5, ...
59 val = (i % 2) ? idata->space : idata->pulse;
100 idata->pulse = GENMASK(bits, 0);
103 idata->pulse = ~idata->pulse;
H A Dir-rc5-decoder.c34 * ir_rc5_decode() - Decode one RC-5 pulse or space
36 * @ev: the struct ir_raw_event descriptor of the pulse/space
38 * This function returns -EINVAL if the pulse violates the state machine
58 data->state, ev.duration, TO_STR(ev.pulse));
66 if (!ev.pulse)
75 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) {
84 if (!ev.pulse)
100 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) {
109 if (ev.pulse)
167 data->state, data->count, ev.duration, TO_STR(ev.pulse));
[all...]
H A Dir-sony-decoder.c28 * ir_sony_decode() - Decode one Sony pulse or space
30 * @ev: the struct ir_raw_event descriptor of the pulse/space
32 * This function returns -EINVAL if the pulse violates the state machine
51 data->state, ev.duration, TO_STR(ev.pulse));
56 if (!ev.pulse)
67 if (ev.pulse)
77 if (!ev.pulse)
91 if (ev.pulse)
108 if (ev.pulse)
157 data->state, ev.duration, TO_STR(ev.pulse));
[all...]
H A Dserial_ir.c5 * serial_ir - Device driver that records pulse- and pause-lengths
222 unsigned int pulse, space; local
225 pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100),
235 edge = ktime_add_ns(edge, pulse);
267 static unsigned int ptr, pulse, space; local
271 pulse += l;
272 if (pulse > 250) {
274 ev.pulse = false;
276 ev.duration = pulse;
277 ev.pulse
[all...]
H A Drc-ir-raw.c2 // rc-ir-raw.c - handle IR pulse/space events
37 TO_STR(ev.pulse));
63 * ir_raw_event_store() - pass a pulse/space duration to the raw ir decoders
65 * @ev: the struct ir_raw_event descriptor of the pulse/space
68 * pulse/space duration for the raw ir decoding state machines. Pulses are
78 ev->duration, TO_STR(ev->pulse));
90 * ir_raw_event_store_edge() - notify raw ir decoders of the start of a pulse/space
92 * @pulse: true for pulse, false for space
95 * store the beginning of an ir pulse o
100 ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) argument
463 unsigned int pulse; local
[all...]
H A Drc-core-priv.h12 /* Define the max number of pulse/space transitions to buffer */
51 /* fifo for the pulse/space durations */
179 return x->pulse != y->pulse;
190 /* Returns true if event is normal pulse/space event */
196 #define TO_STR(is_pulse) ((is_pulse) ? "pulse" : "space")
202 unsigned int pulse,
207 .pulse = pulse
213 * @leader_pulse: duration of leader pulse (i
201 init_ir_raw_event_duration(struct ir_raw_event *ev, unsigned int pulse, u32 duration) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_dfs.c248 struct mt76x02_dfs_hw_pulse *pulse)
253 data = (MT_DFS_CH_EN << 16) | pulse->engine;
257 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19));
260 pulse->w1 = mt76_rr(dev, MT_BBP(DFS, 20));
261 pulse->w2 = mt76_rr(dev, MT_BBP(DFS, 23));
264 pulse->burst = mt76_rr(dev, MT_BBP(DFS, 22));
268 struct mt76x02_dfs_hw_pulse *pulse)
272 if (!pulse->period || !pulse->w1)
277 if (pulse
247 mt76x02_dfs_get_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) argument
267 mt76x02_dfs_check_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) argument
646 struct mt76x02_dfs_hw_pulse pulse; local
[all...]
/linux-master/drivers/media/rc/img-ir/
H A Dimg-ir-rc5.c63 .pulse = { 1 },
69 .pulse = { 1 },
H A Dimg-ir-jvc.c61 .pulse = { 16 /* 8.44 ms */ },
66 .pulse = { 1 /* 527.5 us +-60 us */ },
71 .pulse = { 1 /* 527.5 us +-60 us */ },
H A Dimg-ir-rc6.c89 .pulse = { 650 },
94 .pulse = { 370 },
99 .pulse = { 370 },
H A Dimg-ir-sanyo.c89 .pulse = { 16 /* 9ms */ },
94 .pulse = { 1 /* 562.5 us */ },
99 .pulse = { 1 /* 562.5 us */ },
H A Dimg-ir-sharp.c84 .pulse = { 320 /* 320 us */ },
89 .pulse = { 320 /* 320 us */ },
H A Dimg-ir-sony.c138 .pulse = { 4 /* 2.4 ms */ },
143 .pulse = { 1 /* 600 us */ },
148 .pulse = { 2 /* 1.2 ms */ },
/linux-master/drivers/gpu/drm/i915/gt/
H A Dselftest_engine_heartbeat.c42 struct pulse { struct
49 kref_get(&container_of(active, struct pulse, active)->kref);
55 struct pulse *p = container_of(kref, typeof(*p), kref);
61 static void pulse_put(struct pulse *p)
68 pulse_put(container_of(active, struct pulse, active));
71 static struct pulse *pulse_create(void)
73 struct pulse *p;
85 static void pulse_unlock_wait(struct pulse *p)
93 struct pulse *p;
125 struct drm_printer m = drm_err_printer(&engine->i915->drm, "pulse");
[all...]
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
H A Dirq_public.h58 /*! Enable pulse interrupts for IRQ[ID] with a mode
61 \param enable enable/disable pulse interrupts
67 bool pulse);
/linux-master/drivers/mfd/
H A Datmel-smc.c191 conf->pulse &= ~GENMASK(shift + 7, shift);
192 conf->pulse |= val << shift;
249 regmap_write(regmap, ATMEL_SMC_PULSE(cs), conf->pulse);
270 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse);
290 regmap_read(regmap, ATMEL_SMC_PULSE(cs), &conf->pulse);
311 regmap_read(regmap, ATMEL_HSMC_PULSE(layout, cs), &conf->pulse);
/linux-master/drivers/media/usb/au0828/
H A Dau0828-input.c159 * Fix an au8522 bug: the first pulse event
170 rawir.pulse = true;
176 rawir.pulse ? "pulse" : "space",
182 rawir.pulse ? "pulse" : "space",
188 rawir.pulse = prv_bit ? false : true;
191 rawir.pulse ? "pulse" : "space",
200 rawir.pulse
[all...]

Completed in 180 milliseconds

123