Home
last modified time | relevance | path

Searched full:duration (Results 1 – 25 of 1046) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/Documentation/leds/
Dledtrig-transient.rst68 This trigger exports three properties, activate, state, and duration. When
71 - duration allows setting timer value in msecs. The initial value is 0.
73 duration as needed. The initial and default value is 0. This will allow
74 duration to be set after trigger activation.
76 duration.
82 to allow duration to be set.
85 duration running.
89 duration
90 - one shot timer value. When activate is set, duration value
93 echo new_value > duration
[all …]
/kernel/linux/linux-5.10/drivers/media/rc/
Drc-core-priv.h182 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
184 if (duration > ev->duration) in decrease_duration()
185 ev->duration = 0; in decrease_duration()
187 ev->duration -= duration; in decrease_duration()
203 u32 duration) in init_ir_raw_event_duration() argument
206 .duration = duration, in init_ir_raw_event_duration()
213 * @leader_pulse: duration of leader pulse (if any) 0 if continuing
215 * @leader_space: duration of leader space (if any)
216 * @clock: duration of each pulse/space in ns
219 * @trailer_space: duration of trailer space in ns
[all …]
Dir-xmp-decoder.c19 /* should be 80ms but not all duration supliers can go that high */
46 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_xmp_decode()
54 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
65 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
74 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
82 data->count, ev.duration); in ir_xmp_decode()
147 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
151 data->count, ev.duration); in ir_xmp_decode()
162 data->count, ev.duration); in ir_xmp_decode()
167 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { in ir_xmp_decode()
[all …]
Dir-jvc-decoder.c48 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode()
61 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
74 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
84 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
95 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
98 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
114 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
124 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
151 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
[all …]
Dir-nec-decoder.c53 data->state, ev.duration, TO_STR(ev.pulse)); in ir_nec_decode()
61 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
64 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
77 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
80 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
91 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
102 geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
111 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
113 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
128 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
[all …]
Dstreamzap.c116 dev_dbg(sz->dev, "Storing %s with duration %u us\n", in sz_push()
117 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
136 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
138 rawir.duration = delta; in sz_push_full_pulse()
139 rawir.duration -= sz->sum; in sz_push_full_pulse()
140 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
141 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse()
150 rawir.duration = ((int) value) * SZ_RESOLUTION; in sz_push_full_pulse()
151 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_pulse()
152 sz->sum += rawir.duration; in sz_push_full_pulse()
[all …]
Dir-sharp-decoder.c50 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sharp_decode()
58 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
63 data->pulse_len = ev.duration; in ir_sharp_decode()
71 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
75 data->pulse_len = ev.duration; in ir_sharp_decode()
84 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode()
87 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode()
104 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
124 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode()
136 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, in ir_sharp_decode()
[all …]
Dir-sony-decoder.c47 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
51 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
59 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
70 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
81 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
83 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
94 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
99 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
111 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
157 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
Dir-rcmm-decoder.c82 if (!eq_margin(ev.duration, RCMM_PREFIX_PULSE, RCMM_UNIT)) in ir_rcmm_decode()
94 if (!eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT)) in ir_rcmm_decode()
104 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
114 if (eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT / 2)) in ir_rcmm_decode()
116 else if (eq_margin(ev.duration, RCMM_PULSE_1, RCMM_UNIT / 2)) in ir_rcmm_decode()
118 else if (eq_margin(ev.duration, RCMM_PULSE_2, RCMM_UNIT / 2)) in ir_rcmm_decode()
120 else if (eq_margin(ev.duration, RCMM_PULSE_3, RCMM_UNIT / 2)) in ir_rcmm_decode()
147 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
168 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_rcmm_decode()
/kernel/linux/linux-5.10/net/mac80211/
Dairtime.c29 /* Transmit duration for the raw data part of an average sized packet */
50 /* Transmit duration for the raw data part of an average sized packet */
96 #define GROUP_SHIFT(duration) \ argument
97 _MAX(0, 16 - __builtin_clz(duration))
103 .duration = { \
134 .duration = { \
176 .duration = { \
213 u16 duration[MCS_GROUP_RATES]; member
390 u32 duration; in ieee80211_calc_legacy_rate_duration() local
393 duration = 144 + 48; /* preamble + PLCP */ in ieee80211_calc_legacy_rate_duration()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dpkt_access.c9 __u32 duration, retval; in test_pkt_access() local
17 NULL, NULL, &retval, &duration); in test_pkt_access()
19 "err %d errno %d retval %d duration %d\n", in test_pkt_access()
20 err, errno, retval, duration); in test_pkt_access()
23 NULL, NULL, &retval, &duration); in test_pkt_access()
25 "err %d errno %d retval %d duration %d\n", in test_pkt_access()
26 err, errno, retval, duration); in test_pkt_access()
Dglobal_data.c5 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number() argument
40 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string() argument
75 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct() argument
103 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly() argument
128 __u32 duration = 0, retval; in test_global_data() local
137 NULL, NULL, &retval, &duration); in test_global_data()
139 "err %d errno %d retval %d duration %d\n", in test_global_data()
140 err, errno, retval, duration); in test_global_data()
142 test_global_data_number(obj, duration); in test_global_data()
143 test_global_data_string(obj, duration); in test_global_data()
[all …]
Dtailcalls.c15 __u32 retval, duration; in test_tailcall_1() local
58 &duration, &retval, NULL); in test_tailcall_1()
68 &duration, &retval, NULL); in test_tailcall_1()
89 &duration, &retval, NULL); in test_tailcall_1()
114 &duration, &retval, NULL); in test_tailcall_1()
124 &duration, &retval, NULL); in test_tailcall_1()
134 &duration, &retval, NULL); in test_tailcall_1()
153 __u32 retval, duration; in test_tailcall_2() local
195 &duration, &retval, NULL); in test_tailcall_2()
205 &duration, &retval, NULL); in test_tailcall_2()
[all …]
Dsignal_pending.c16 __u32 duration = 0, retval; in test_signal_pending_by_type() local
36 NULL, NULL, &retval, &duration); in test_signal_pending_by_type()
37 CHECK(duration > 500000000, /* 500ms */ in test_signal_pending_by_type()
38 "test-run-signal-duration", in test_signal_pending_by_type()
39 "duration %dns > 500ms\n", in test_signal_pending_by_type()
40 duration); in test_signal_pending_by_type()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_lirc_mode2_kern.c14 unsigned int duration = LIRC_VALUE(*sample); in bpf_decoder() local
16 if (duration & 0x10000) in bpf_decoder()
17 bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0); in bpf_decoder()
18 if (duration & 0x20000) in bpf_decoder()
19 bpf_rc_pointer_rel(sample, (duration >> 8) & 0xff, in bpf_decoder()
20 duration & 0xff); in bpf_decoder()
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm1-cmd.c282 * tpm1_calc_ordinal_duration() - calculate the maximum command duration
289 * Return: A maximal duration time for an ordinal in jiffies.
294 int duration = 0; in tpm1_calc_ordinal_duration() local
297 * We only have a duration table for protected commands, where the upper in tpm1_calc_ordinal_duration()
304 duration = chip->duration[duration_idx]; in tpm1_calc_ordinal_duration()
305 if (duration <= 0) in tpm1_calc_ordinal_duration()
308 return duration; in tpm1_calc_ordinal_duration()
419 sizeof(cap.duration)); in tpm1_get_timeouts()
423 chip->duration[TPM_SHORT] = in tpm1_get_timeouts()
424 usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_short)); in tpm1_get_timeouts()
[all …]
/kernel/linux/linux-5.10/drivers/cpuidle/governors/
Dteo.c20 * idle duration values greater than the time till the closest timer, as the
35 * duration in the past more often than it matched the sleep length alone
36 * (i.e. the observed idle duration was significantly shorter than the sleep
42 * - If the majority of the most recent idle duration values are below the
44 * compute the new expected idle duration and find an idle state matching it
62 * Number of the most recent idle duration values to take into consideration for
73 * A CPU wakeup is "matched" by a given idle state if the idle duration measured
76 * "matches" a CPU wakeup when the measured idle duration is at least equal to
100 * @intervals: Saved idle duration values.
136 * duration fall into the same "bin", so use last_residency_ns in teo_update()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dtime-event.h77 * and for a certain duration, the driver needs to issue a time event.
89 * time and for a certain duration, it sends a Time Event. The flow against the
98 * What is the duration of the event?
122 * @duration: the duration of the session in TU.
138 u32 duration, u32 min_duration,
165 * @duration: the requested duration in millisecond for the fw to be on the
170 * which means that the fw will stay in the channel for the request %duration
178 int duration, enum ieee80211_roc_type type);
226 * @duration: the duration of the NoA in TU.
234 u32 duration, u32 apply_time);
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
Dcpufreq-info.c124 static void print_duration(unsigned long duration) in print_duration() argument
129 if (duration > 1000000) in print_duration()
130 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration()
131 ((unsigned int) duration%1000000)); in print_duration()
132 else if (duration > 100000) in print_duration()
133 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
134 else if (duration > 1000) in print_duration()
135 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
136 ((unsigned int) duration%1000)); in print_duration()
138 printf("%lu ns", duration); in print_duration()
[all …]
/kernel/linux/linux-5.10/drivers/base/test/
Dtest_async_driver_probe.c106 unsigned long long duration; in test_async_probe_init() local
137 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
138 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
139 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
165 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
167 "registration took %lld msecs\n", duration); in test_async_probe_init()
168 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
201 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
202 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
203 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_progs.h102 #define _CHECK(condition, tag, duration, format...) ({ \ argument
111 __func__, tag, duration); \
129 _CHECK(condition, tag, duration, format)
131 _CHECK(condition, tag, tattr.duration, format)
134 static int duration = 0; \
145 static int duration = 0; \
156 static int duration = 0; \
164 static int duration = 0; \
172 static int duration = 0; \
180 static int duration = 0; \
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
Daspeed_wdt.c64 * * Pulse duration
68 * Pulse duration configuration is available on both the AST2400 and AST2500,
249 u32 duration; in aspeed_wdt_probe() local
344 if (!of_property_read_u32(np, "aspeed,ext-pulse-duration", &duration)) { in aspeed_wdt_probe()
347 if (duration == 0 || duration > max_duration) { in aspeed_wdt_probe()
348 dev_err(dev, "Invalid pulse duration: %uus\n", in aspeed_wdt_probe()
349 duration); in aspeed_wdt_probe()
350 duration = max(1U, min(max_duration, duration)); in aspeed_wdt_probe()
351 dev_info(dev, "Pulse duration set to %uus\n", in aspeed_wdt_probe()
352 duration); in aspeed_wdt_probe()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/
Dkvm-recheck-rcuscale.sh38 /-scale: .*writer-duration/ {
75 print "Average grace-period duration: " sum / newNR " microseconds";
76 print "Minimum grace-period duration: " gptimes[1];
77 print "50th percentile grace-period duration: " gptimes[pct50];
78 print "90th percentile grace-period duration: " gptimes[pct90];
79 print "99th percentile grace-period duration: " gptimes[pct99];
80 print "Maximum grace-period duration: " gptimes[newNR];
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/powerpc/power8/
Dmarked.json41 …"BriefDescription": "Duration in cycles to reload with Modified (M) data from another chip's L2 or…
53 …"BriefDescription": "Duration in cycles to reload with Shared (S) data from another chip's L2 or L…
65 …"BriefDescription": "Duration in cycles to reload from another chip's L4 on a different Node or Gr…
77 …"BriefDescription": "Duration in cycles to reload from another chip's memory on the same Node or G…
95 …"BriefDescription": "Duration in cycles to reload from a location other than the local core's L2 d…
101 "BriefDescription": "Duration in cycles to reload from local core's L2 due to a marked load",
113 …"BriefDescription": "Duration in cycles to reload from local core's L2 with load hit store conflic…
125 …"BriefDescription": "Duration in cycles to reload from local core's L2 with dispatch conflict due …
137 …"BriefDescription": "Duration in cycles to reload from local core's L2 hit without dispatch confli…
149 …"BriefDescription": "Duration in cycles to reload from local core's L2 without conflict due to a m…
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dwith_stress.sh47 duration=5
58 duration=$OPTARG
61 echo "Usage $0 [ -s stress ] ... [ -d duration ] [-c controller] cmd args .."
62 echo -e "\t default duration $duration seconds"
89 while [ $time -lt $duration ] ; do

12345678910>>...42