Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/linux-6.1.9/include/trace/events/
Dosnoise.h11 TP_PROTO(struct task_struct *t, u64 start, u64 duration),
13 TP_ARGS(t, start, duration),
18 __field( u64, duration)
26 __entry->duration = duration;
34 __entry->duration)
39 TP_PROTO(int vector, u64 start, u64 duration),
41 TP_ARGS(vector, start, duration),
45 __field( u64, duration)
52 __entry->duration = duration;
60 __entry->duration)
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_progs.h182 #define _CHECK(condition, tag, duration, format...) ({ \ argument
191 __func__, tag, duration); \
209 _CHECK(condition, tag, duration, format)
211 _CHECK(condition, tag, tattr.duration, format)
214 static int duration = 0; \
221 static int duration = 0; \
228 static int duration = 0; \
239 static int duration = 0; \
250 static int duration = 0; \
261 static int duration = 0; \
[all …]
/linux-6.1.9/tools/power/cpupower/utils/
Dcpufreq-info.c87 static void print_duration(unsigned long duration) in print_duration() argument
92 if (duration > 1000000) in print_duration()
93 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration()
94 ((unsigned int) duration%1000000)); in print_duration()
95 else if (duration > 100000) in print_duration()
96 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
97 else if (duration > 1000) in print_duration()
98 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
99 ((unsigned int) duration%1000)); in print_duration()
101 printf("%lu ns", duration); in print_duration()
[all …]
/linux-6.1.9/net/mac80211/
Dairtime.c91 #define GROUP_SHIFT(duration) \ argument
92 _MAX(0, 16 - __builtin_clz(duration))
98 .duration = { \
129 .duration = { \
171 .duration = { \
208 u16 duration[MCS_GROUP_RATES]; member
385 u32 duration; in ieee80211_calc_legacy_rate_duration() local
388 duration = 144 + 48; /* preamble + PLCP */ in ieee80211_calc_legacy_rate_duration()
390 duration >>= 1; in ieee80211_calc_legacy_rate_duration()
392 duration += 10; /* SIFS */ in ieee80211_calc_legacy_rate_duration()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/media/rc/
Dir-xmp-decoder.c46 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()
171 data->count, ev.duration); 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-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-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 …]
Dir-sanyo-decoder.c62 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sanyo_decode()
70 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
82 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
93 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
103 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
111 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
113 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
128 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
138 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
161 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_sanyo_decode()
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()
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()
Dir-rc6-decoder.c93 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
98 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc6_decode()
100 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
112 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
131 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) in ir_rc6_decode()
151 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
183 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
193 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { in ir_rc6_decode()
273 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc6_decode()
/linux-6.1.9/tools/testing/selftests/netfilter/
Dnft_zones_many.sh88 local duration=$((stop-start))
89 echo "PASS: added 1000 entries in $duration ms (now $i total, loop $j)"
94 local duration=$((stop-outerstart))
97 echo "PASS: inserted $count entries from packet path in $duration ms total"
100 …echo "FAIL: inserted $count entries from packet path in $duration ms total, expected $max_zones en…
134 local duration=$((stop-start))
135 echo "PASS: added 1000 entries in $duration ms (now $i total)"
141 local duration=$((stop-outerstart))
144 echo "PASS: inserted $count entries via ctnetlink in $duration ms"
147 …o "FAIL: inserted $count entries via ctnetlink in $duration ms, expected $max_zones entries ($dura…
/linux-6.1.9/drivers/base/test/
Dtest_async_driver_probe.c106 unsigned long long duration; in test_async_probe_init() local
136 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
137 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
138 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
163 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
165 "registration took %lld msecs\n", duration); in test_async_probe_init()
166 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
198 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
199 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
200 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init()
[all …]
/linux-6.1.9/tools/perf/util/bpf_skel/
Dlock_contention.bpf.c135 __u64 duration; in contention_end() local
145 duration = bpf_ktime_get_ns() - pelem->timestamp; in contention_end()
151 .total_time = duration, in contention_end()
152 .max_time = duration, in contention_end()
153 .min_time = duration, in contention_end()
163 __sync_fetch_and_add(&data->total_time, duration); in contention_end()
167 if (data->max_time < duration) in contention_end()
168 data->max_time = duration; in contention_end()
169 if (data->min_time > duration) in contention_end()
170 data->min_time = duration; in contention_end()
/linux-6.1.9/drivers/char/tpm/
Dtpm1-cmd.c294 int duration = 0; in tpm1_calc_ordinal_duration() local
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()
425 chip->duration[TPM_MEDIUM] = in tpm1_get_timeouts()
426 usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_medium)); in tpm1_get_timeouts()
427 chip->duration[TPM_LONG] = in tpm1_get_timeouts()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
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
151 test_global_data_number(obj, topts.duration); in test_global_data()
152 test_global_data_string(obj, topts.duration); in test_global_data()
153 test_global_data_struct(obj, topts.duration); in test_global_data()
154 test_global_data_rdonly(obj, topts.duration); in test_global_data()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c147 unsigned long long duration, clamped; in max_spin_store() local
167 err = kstrtoull(buf, 0, &duration); in max_spin_store()
171 clamped = intel_clamp_max_busywait_duration_ns(engine, duration); in max_spin_store()
172 if (duration != clamped) in max_spin_store()
175 WRITE_ONCE(engine->props.max_busywait_duration_ns, duration); in max_spin_store()
207 unsigned long long duration, clamped; in timeslice_store() local
218 err = kstrtoull(buf, 0, &duration); in timeslice_store()
222 clamped = intel_clamp_timeslice_duration_ms(engine, duration); in timeslice_store()
223 if (duration != clamped) in timeslice_store()
226 WRITE_ONCE(engine->props.timeslice_duration_ms, duration); in timeslice_store()
[all …]
/linux-6.1.9/tools/tracing/rtla/src/
Dosnoise_hist.c28 int duration; member
120 unsigned long long duration, int count) in osnoise_hist_update_multiple() argument
129 duration = duration / params->output_divisor; in osnoise_hist_update_multiple()
132 bucket = duration / data->bucket_size; in osnoise_hist_update_multiple()
136 update_min(&data->hist[cpu].min_sample, &duration); in osnoise_hist_update_multiple()
137 update_sum(&data->hist[cpu].sum_sample, &duration); in osnoise_hist_update_multiple()
138 update_max(&data->hist[cpu].max_sample, &duration); in osnoise_hist_update_multiple()
200 long long cpu, counter, duration; in osnoise_read_trace_hist() local
217 duration = get_llong_from_str(position); in osnoise_read_trace_hist()
218 if (duration == -1) in osnoise_read_trace_hist()
[all …]
/linux-6.1.9/net/mac802154/
Dmain.c118 u32 duration = 0; in ieee802154_configure_durations() local
124 duration = 50 * NSEC_PER_USEC; in ieee802154_configure_durations()
127 duration = 25 * NSEC_PER_USEC; in ieee802154_configure_durations()
130 duration = 16 * NSEC_PER_USEC; in ieee802154_configure_durations()
135 duration = 40 * NSEC_PER_USEC; in ieee802154_configure_durations()
138 duration = 16 * NSEC_PER_USEC; in ieee802154_configure_durations()
143 duration = 6 * NSEC_PER_USEC; in ieee802154_configure_durations()
149 if (!duration) { in ieee802154_configure_durations()
154 phy->symbol_duration = duration; in ieee802154_configure_durations()
/linux-6.1.9/arch/powerpc/kvm/
Dtiming.c44 static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type) in add_exit_timing() argument
54 vcpu->arch.timing_sum_duration[type] += duration; in add_exit_timing()
64 vcpu->arch.timing_sum_quad_duration[type] += (duration*duration); in add_exit_timing()
74 if (unlikely(duration < vcpu->arch.timing_min_duration[type])) in add_exit_timing()
75 vcpu->arch.timing_min_duration[type] = duration; in add_exit_timing()
76 if (unlikely(duration > vcpu->arch.timing_max_duration[type])) in add_exit_timing()
77 vcpu->arch.timing_max_duration[type] = duration; in add_exit_timing()
/linux-6.1.9/tools/testing/selftests/rcutorture/bin/
Dtorture.sh175 --duration)
176 checkarg --duration "(minutes)" $# "$2" '^[0-9][0-9]*\(m\|h\|d\|\)$' '^error'
350 …torture_set "rcutorture" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration "$dura…
356 …ools/testing/selftests/rcutorture/bin/kvm.sh --torture lock --allcpus --duration "$duration_lockto…
362 …tools/testing/selftests/rcutorture/bin/kvm.sh --torture scf --allcpus --duration "$duration_scftor…
369 …torture_set "rcurttorture" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration "$du…
373 …torture_set "rcurttorture-exp" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration
397 …/testing/selftests/rcutorture/bin/kvm.sh --torture rcuscale --allcpus --duration 5 --kconfig "CONF…
403 …/testing/selftests/rcutorture/bin/kvm.sh --torture rcuscale --allcpus --duration 10 --kconfig "CON…
409 …torture_set "clocksourcewd-1" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 4…
[all …]

12345678910>>...24