Home
last modified time | relevance | path

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

12345678910>>...23

/Linux-v5.15/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-v5.15/tools/testing/selftests/bpf/prog_tests/
Datomics.c10 __u32 duration = 0, retval; in test_add() local
19 NULL, NULL, &retval, &duration); in test_add()
21 "err %d errno %d retval %d duration %d\n", err, errno, retval, duration)) in test_add()
42 __u32 duration = 0, retval; in test_sub() local
51 NULL, NULL, &retval, &duration); in test_sub()
54 err, errno, retval, duration)) in test_sub()
75 __u32 duration = 0, retval; in test_and() local
84 NULL, NULL, &retval, &duration); in test_and()
86 "err %d errno %d retval %d duration %d\n", err, errno, retval, duration)) in test_and()
103 __u32 duration = 0, retval; in test_or() local
[all …]
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()
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()
144 test_global_data_struct(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 …]
Dpkt_access.c9 __u32 duration, retval; in test_pkt_access() local
17 NULL, NULL, &retval, &duration); in test_pkt_access()
20 err, errno, retval, duration); in test_pkt_access()
23 NULL, NULL, &retval, &duration); in test_pkt_access()
26 err, errno, retval, duration); in test_pkt_access()
Dtest_skb_pkt_end.c9 __u32 duration, retval; in sanity_run() local
14 NULL, NULL, &retval, &duration); in sanity_run()
17 err, errno, retval, duration)) in sanity_run()
25 __u32 duration = 0; in test_test_skb_pkt_end() local
/Linux-v5.15/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; \
141 static int duration = 0; \
148 static int duration = 0; \
159 static int duration = 0; \
170 static int duration = 0; \
181 static int duration = 0; \
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/net/mac80211/
Dairtime.c96 #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()
395 duration >>= 1; in ieee80211_calc_legacy_rate_duration()
397 duration += 10; /* SIFS */ in ieee80211_calc_legacy_rate_duration()
[all …]
/Linux-v5.15/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-v5.15/tools/testing/selftests/netfilter/
Dnft_zones_many.sh81 local duration=$((stop-start))
82 echo "PASS: added 10000 entries in $duration ms (now $i total, loop $j)"
87 local duration=$((stop-outerstart))
90 echo "PASS: inserted $count entries from packet path in $duration ms total"
93 …echo "FAIL: inserted $count entries from packet path in $duration ms total, expected $max_zones en…
127 local duration=$((stop-start))
128 echo "PASS: added 10000 entries in $duration ms (now $i total)"
134 local duration=$((stop-outerstart))
137 echo "PASS: inserted $count entries via ctnetlink in $duration ms"
140 …o "FAIL: inserted $count entries via ctnetlink in $duration ms, expected $max_zones entries ($dura…
/Linux-v5.15/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()
Dstreamzap.c117 (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()
153 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
[all …]
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-v5.15/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 …]
/Linux-v5.15/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-v5.15/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-v5.15/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c147 unsigned long long duration; in max_spin_store() local
167 err = kstrtoull(buf, 0, &duration); in max_spin_store()
171 if (duration > jiffies_to_nsecs(2)) in max_spin_store()
174 WRITE_ONCE(engine->props.max_busywait_duration_ns, duration); in max_spin_store()
206 unsigned long long duration; in timeslice_store() local
217 err = kstrtoull(buf, 0, &duration); in timeslice_store()
221 if (duration > jiffies_to_msecs(MAX_SCHEDULE_TIMEOUT)) in timeslice_store()
224 WRITE_ONCE(engine->props.timeslice_duration_ms, duration); in timeslice_store()
227 set_timer_ms(&engine->execlists.timer, duration); in timeslice_store()
259 unsigned long long duration; in stop_store() local
[all …]

12345678910>>...23