Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_dfs.c248 struct mt76x02_dfs_hw_pulse *pulse) in mt76x02_dfs_get_hw_pulse()
253 data = (MT_DFS_CH_EN << 16) | pulse->engine; in mt76x02_dfs_get_hw_pulse()
257 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x02_dfs_get_hw_pulse()
260 pulse->w1 = mt76_rr(dev, MT_BBP(DFS, 20)); in mt76x02_dfs_get_hw_pulse()
261 pulse->w2 = mt76_rr(dev, MT_BBP(DFS, 23)); in mt76x02_dfs_get_hw_pulse()
264 pulse->burst = mt76_rr(dev, MT_BBP(DFS, 22)); in mt76x02_dfs_get_hw_pulse()
268 struct mt76x02_dfs_hw_pulse *pulse) in mt76x02_dfs_check_hw_pulse()
272 if (!pulse->period || !pulse->w1) in mt76x02_dfs_check_hw_pulse()
277 if (pulse in mt76x02_dfs_check_hw_pulse()
247 mt76x02_dfs_get_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) mt76x02_dfs_get_hw_pulse() argument
267 mt76x02_dfs_check_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) mt76x02_dfs_check_hw_pulse() argument
645 struct mt76x02_dfs_hw_pulse pulse; mt76x02_dfs_tasklet() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_dfs.c248 struct mt76x02_dfs_hw_pulse *pulse) in mt76x02_dfs_get_hw_pulse()
253 data = (MT_DFS_CH_EN << 16) | pulse->engine; in mt76x02_dfs_get_hw_pulse()
257 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x02_dfs_get_hw_pulse()
260 pulse->w1 = mt76_rr(dev, MT_BBP(DFS, 20)); in mt76x02_dfs_get_hw_pulse()
261 pulse->w2 = mt76_rr(dev, MT_BBP(DFS, 23)); in mt76x02_dfs_get_hw_pulse()
264 pulse->burst = mt76_rr(dev, MT_BBP(DFS, 22)); in mt76x02_dfs_get_hw_pulse()
268 struct mt76x02_dfs_hw_pulse *pulse) in mt76x02_dfs_check_hw_pulse()
272 if (!pulse->period || !pulse->w1) in mt76x02_dfs_check_hw_pulse()
277 if (pulse in mt76x02_dfs_check_hw_pulse()
247 mt76x02_dfs_get_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) mt76x02_dfs_get_hw_pulse() argument
267 mt76x02_dfs_check_hw_pulse(struct mt76x02_dev *dev, struct mt76x02_dfs_hw_pulse *pulse) mt76x02_dfs_check_hw_pulse() argument
646 struct mt76x02_dfs_hw_pulse pulse; mt76x02_dfs_tasklet() local
[all...]
/kernel/linux/linux-5.10/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)); in ir_imon_decode()
118 if (!ev.pulse && ev.duration > MS_TO_US(10)) in ir_imon_decode()
131 if (ev.pulse) { in ir_imon_decode()
194 int i, pulse; ir_imon_encode() 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)); in ir_jvc_decode()
58 if (!ev.pulse) in ir_jvc_decode()
71 if (ev.pulse) in ir_jvc_decode()
81 if (!ev.pulse) in ir_jvc_decode()
91 if (ev.pulse) in ir_jvc_decode()
111 if (!ev.pulse) in ir_jvc_decode()
121 if (ev.pulse) in ir_jvc_decode()
[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)); in ir_sanyo_decode()
67 if (!ev.pulse) in ir_sanyo_decode()
79 if (ev.pulse) in ir_sanyo_decode()
90 if (!ev.pulse) in ir_sanyo_decode()
100 if (ev.pulse) in ir_sanyo_decode()
125 if (!ev.pulse) in ir_sanyo_decode()
135 if (ev.pulse) in ir_sanyo_decode()
[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)); in ir_sharp_decode()
57 if (!ev.pulse) in ir_sharp_decode()
70 if (!ev.pulse) in ir_sharp_decode()
82 if (ev.pulse) in ir_sharp_decode()
103 if (!ev.pulse) in ir_sharp_decode()
123 if (ev.pulse) in ir_sharp_decode()
135 if (ev.pulse) in ir_sharp_decode()
[all...]
H A Drc-ir-raw.c2 // rc-ir-raw.c - handle IR pulse/space events
37 TO_STR(ev.pulse)); in ir_raw_event_thread()
38 if (raw->prev_ev.reset && ev.pulse == 0) in ir_raw_event_thread()
39 dev_warn_once(&dev->dev, "timing event after reset should be pulse"); in ir_raw_event_thread()
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)); in ir_raw_event_store()
92 * ir_raw_event_store_edge() - notify raw ir decoders of the start of a pulse/space
94 * @pulse
102 ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) ir_raw_event_store_edge() argument
465 unsigned int pulse; ir_raw_gen_pl() local
[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)); in ir_nec_decode()
58 if (!ev.pulse) in ir_nec_decode()
74 if (ev.pulse) in ir_nec_decode()
88 if (!ev.pulse) in ir_nec_decode()
98 if (ev.pulse) in ir_nec_decode()
125 if (!ev.pulse) in ir_nec_decode()
135 if (ev.pulse) in ir_nec_decode()
[all...]
H A Dserial_ir.c5 * serial_ir - Device driver that records pulse- and pause-lengths
222 unsigned int pulse, space; in send_pulse_homebrew_softcarrier() local
225 pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100), in send_pulse_homebrew_softcarrier()
235 edge = ktime_add_ns(edge, pulse); in send_pulse_homebrew_softcarrier()
267 static unsigned int ptr, pulse, space; in frbwrite() local
271 pulse += l; in frbwrite()
272 if (pulse > 250) { in frbwrite()
274 ev.pulse = false; in frbwrite()
276 ev.duration = pulse; in frbwrite()
277 ev.pulse in frbwrite()
[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) in ir_rcmm_decode()
91 if (ev.pulse) in ir_rcmm_decode()
101 if (!ev.pulse) in ir_rcmm_decode()
111 if (ev.pulse) in ir_rcmm_decode()
144 if (!ev.pulse) in ir_rcmm_decode()
168 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_rcmm_decode()
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)); in ir_rc6_decode()
106 if (!ev.pulse) in ir_rc6_decode()
109 /* Note: larger margin on first pulse since each RC6_UNIT in ir_rc6_decode()
120 if (ev.pulse) in ir_rc6_decode()
135 if (ev.pulse) in ir_rc6_decode()
154 data->toggle = ev.pulse; in ir_rc6_decode()
187 if (ev.pulse) in ir_rc6_decode()
[all...]
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)); in ir_rc5_decode()
66 if (!ev.pulse) in ir_rc5_decode()
75 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
84 if (!ev.pulse) in ir_rc5_decode()
100 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { in ir_rc5_decode()
109 if (ev.pulse) in ir_rc5_decode()
167 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_rc5_decode()
[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)); in ir_sony_decode()
56 if (!ev.pulse) in ir_sony_decode()
67 if (ev.pulse) in ir_sony_decode()
77 if (!ev.pulse) in ir_sony_decode()
91 if (ev.pulse) in ir_sony_decode()
108 if (ev.pulse) in ir_sony_decode()
157 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
[all...]
/kernel/linux/linux-6.6/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)); in ir_imon_decode()
118 if (!ev.pulse && ev.duration > MS_TO_US(10)) in ir_imon_decode()
131 if (ev.pulse) { in ir_imon_decode()
194 int i, pulse; ir_imon_encode() 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)); in ir_jvc_decode()
58 if (!ev.pulse) in ir_jvc_decode()
71 if (ev.pulse) in ir_jvc_decode()
81 if (!ev.pulse) in ir_jvc_decode()
91 if (ev.pulse) in ir_jvc_decode()
111 if (!ev.pulse) in ir_jvc_decode()
121 if (ev.pulse) in ir_jvc_decode()
[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)); in ir_sanyo_decode()
67 if (!ev.pulse) in ir_sanyo_decode()
79 if (ev.pulse) in ir_sanyo_decode()
90 if (!ev.pulse) in ir_sanyo_decode()
100 if (ev.pulse) in ir_sanyo_decode()
125 if (!ev.pulse) in ir_sanyo_decode()
135 if (ev.pulse) in ir_sanyo_decode()
[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)); in ir_sharp_decode()
57 if (!ev.pulse) in ir_sharp_decode()
70 if (!ev.pulse) in ir_sharp_decode()
82 if (ev.pulse) in ir_sharp_decode()
103 if (!ev.pulse) in ir_sharp_decode()
123 if (ev.pulse) in ir_sharp_decode()
135 if (ev.pulse) in ir_sharp_decode()
[all...]
H A Drc-ir-raw.c2 // rc-ir-raw.c - handle IR pulse/space events
37 TO_STR(ev.pulse)); in ir_raw_event_thread()
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)); in ir_raw_event_store()
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) ir_raw_event_store_edge() argument
463 unsigned int pulse; ir_raw_gen_pl() local
[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)); in ir_nec_decode()
58 if (!ev.pulse) in ir_nec_decode()
74 if (ev.pulse) in ir_nec_decode()
88 if (!ev.pulse) in ir_nec_decode()
98 if (ev.pulse) in ir_nec_decode()
125 if (!ev.pulse) in ir_nec_decode()
135 if (ev.pulse) in ir_nec_decode()
[all...]
H A Dserial_ir.c5 * serial_ir - Device driver that records pulse- and pause-lengths
222 unsigned int pulse, space; in send_pulse_homebrew_softcarrier() local
225 pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100), in send_pulse_homebrew_softcarrier()
235 edge = ktime_add_ns(edge, pulse); in send_pulse_homebrew_softcarrier()
267 static unsigned int ptr, pulse, space; in frbwrite() local
271 pulse += l; in frbwrite()
272 if (pulse > 250) { in frbwrite()
274 ev.pulse = false; in frbwrite()
276 ev.duration = pulse; in frbwrite()
277 ev.pulse in frbwrite()
[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) in ir_rcmm_decode()
91 if (ev.pulse) in ir_rcmm_decode()
101 if (!ev.pulse) in ir_rcmm_decode()
111 if (ev.pulse) in ir_rcmm_decode()
144 if (!ev.pulse) in ir_rcmm_decode()
168 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_rcmm_decode()
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)); in ir_rc6_decode()
106 if (!ev.pulse) in ir_rc6_decode()
109 /* Note: larger margin on first pulse since each RC6_UNIT in ir_rc6_decode()
120 if (ev.pulse) in ir_rc6_decode()
135 if (ev.pulse) in ir_rc6_decode()
154 data->toggle = ev.pulse; in ir_rc6_decode()
187 if (ev.pulse) in ir_rc6_decode()
[all...]
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)); in ir_rc5_decode()
66 if (!ev.pulse) in ir_rc5_decode()
75 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
84 if (!ev.pulse) in ir_rc5_decode()
100 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { in ir_rc5_decode()
109 if (ev.pulse) in ir_rc5_decode()
167 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_rc5_decode()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dselftest_engine_heartbeat.c37 struct pulse { struct
44 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active()
50 struct pulse *p = container_of(kref, typeof(*p), kref); in pulse_free()
56 static void pulse_put(struct pulse *p) in pulse_put()
63 pulse_put(container_of(active, struct pulse, active)); in pulse_retire()
66 static struct pulse *pulse_create(void) in pulse_create()
68 struct pulse *p; in pulse_create()
80 static void pulse_unlock_wait(struct pulse *p) in pulse_unlock_wait()
88 struct pulse *p; in __live_idle_pulse()
120 struct drm_printer m = drm_err_printer("pulse"); in __live_idle_pulse()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dselftest_engine_heartbeat.c42 struct pulse { struct
49 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active()
55 struct pulse *p = container_of(kref, typeof(*p), kref); in pulse_free()
61 static void pulse_put(struct pulse *p) in pulse_put()
68 pulse_put(container_of(active, struct pulse, active)); in pulse_retire()
71 static struct pulse *pulse_create(void) in pulse_create()
73 struct pulse *p; in pulse_create()
85 static void pulse_unlock_wait(struct pulse *p) in pulse_unlock_wait()
93 struct pulse *p; in __live_idle_pulse()
125 struct drm_printer m = drm_err_printer("pulse"); in __live_idle_pulse()
[all...]

Completed in 11 milliseconds

123456