/openbmc/linux/include/trace/events/ |
H A D | osnoise.h | 18 __field( u64, duration) 26 __entry->duration = duration; 34 __entry->duration) 52 __entry->duration = duration; 60 __entry->duration) 81 __entry->duration = duration; 89 __entry->duration) 105 __entry->duration = duration; 111 __entry->duration) 128 __entry->duration = duration; [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | rcutorture.c | 178 g_usleep(duration * G_USEC_PER_SEC); in perftestrun() 200 perftestrun(i + 1, duration, nreaders, 1); in perftest() 211 perftestrun(i, duration, nreaders, 0); in rperftest() 222 perftestrun(i, duration, 0, nupdaters); in uperftest() 377 g_usleep(duration * G_USEC_PER_SEC); in stresstest() 407 g_usleep(duration * G_USEC_PER_SEC); in gtest_stress() 450 int duration = 1; in main() local 472 stresstest(nreaders, duration); in main() 474 rperftest(nreaders, duration); in main() 476 uperftest(nreaders, duration); in main() [all …]
|
H A D | test-coroutine.c | 518 double duration; in perf_lifecycle() local 527 duration = g_test_timer_elapsed(); in perf_lifecycle() 535 double duration; in perf_nesting() local 551 duration = g_test_timer_elapsed(); in perf_nesting() 574 double duration; in perf_yield() local 584 duration = g_test_timer_elapsed(); in perf_yield() 597 double duration; in perf_baseline() local 606 duration = g_test_timer_elapsed(); in perf_baseline() 620 double duration; in perf_cost() local 630 duration = g_test_timer_elapsed(); in perf_cost() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_lirc_mode2_kern.c | 14 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()
|
/openbmc/linux/tools/power/cpupower/utils/ |
H A D | cpufreq-info.c | 92 if (duration > 1000000) in print_duration() 95 else if (duration > 100000) in print_duration() 97 else if (duration > 1000) in print_duration() 101 printf("%lu ns", duration); in print_duration() 103 if (duration > 1000000) { in print_duration() 104 tmp = duration%10000; in print_duration() 106 duration += 10000; in print_duration() 110 tmp = duration%1000; in print_duration() 112 duration += 1000; in print_duration() 115 tmp = duration%100; in print_duration() [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | airtime.c | 385 u32 duration; in ieee80211_calc_legacy_rate_duration() local 390 duration >>= 1; in ieee80211_calc_legacy_rate_duration() 400 return duration; in ieee80211_calc_legacy_rate_duration() 410 u32 duration; in ieee80211_get_rate_duration() local 458 duration = airtime_mcs_groups[group].duration[idx]; in ieee80211_get_rate_duration() 462 return duration; in ieee80211_get_rate_duration() 495 if (!duration) in ieee80211_calc_rx_airtime() 498 duration *= len; in ieee80211_calc_rx_airtime() 500 duration /= 1024; in ieee80211_calc_rx_airtime() 609 u32 duration = 0; in ieee80211_calc_tx_airtime() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_progs.h | 218 static int duration = 0; \ 224 static int duration = 0; \ 231 static int duration = 0; \ 238 static int duration = 0; \ 249 static int duration = 0; \ 260 static int duration = 0; \ 271 static int duration = 0; \ 282 static int duration = 0; \ 293 static int duration = 0; \ 304 static int duration = 0; \ [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | ir-xmp-decoder.c | 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() 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() 175 data->durations[data->count] = ev.duration; in ir_xmp_decode() [all …]
|
H A D | ir-sharp-decoder.c | 52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sharp_decode() 60 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode() 65 data->pulse_len = ev.duration; in ir_sharp_decode() 73 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode() 77 data->pulse_len = ev.duration; in ir_sharp_decode() 86 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode() 89 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode() 106 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode() 126 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode() 138 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, in ir_sharp_decode() [all …]
|
H A D | ir-jvc-decoder.c | 48 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 …]
|
H A D | ir-nec-decoder.c | 53 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() 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() 138 if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) in ir_nec_decode() [all …]
|
H A D | ir-sanyo-decoder.c | 62 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()
|
H A D | ir-sony-decoder.c | 47 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()
|
H A D | ir-rcmm-decoder.c | 82 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()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_zones_many.sh | 88 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…
|
/openbmc/telemetry/src/metrics/ |
H A D | collection_data.cpp | 37 CollectionDuration duration) : in DataInterval() argument 38 function(std::move(function)), duration(duration) in DataInterval() 40 if (duration.t.count() == 0) in DataInterval() 77 timestamp - nextItemTimestamp > duration.t) in cleanup() 85 if (timestamp > duration.t) in cleanup() 88 timestamp - duration.t); in cleanup() 94 CollectionDuration duration; member in metrics::DataInterval 128 CollectionDuration duration) in makeCollectionData() argument 140 [cf = makeCollectionFunction(op), duration] { in makeCollectionData() 141 return std::make_unique<DataInterval>(cf, duration); in makeCollectionData()
|
H A D | collection_function.cpp | 65 const auto duration = kt->first - it->first; in calculate() local 66 valueSum += it->second * duration.count(); in calculate() 67 timeSum += duration; in calculate() 71 const auto duration = timestamp - readings.back().first; in calculate() local 72 valueSum += readings.back().second * duration.count(); in calculate() 73 timeSum += duration; in calculate() 93 using Multiplier = std::chrono::duration<double>; 139 static constexpr Multiplier calculateMultiplier(Milliseconds duration) in calculateMultiplier() argument 142 return Multiplier{duration / m}; in calculateMultiplier()
|
/openbmc/linux/drivers/base/test/ |
H A D | test_async_driver_probe.c | 106 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() 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() 225 "registration took %lld msecs\n", duration); in test_async_probe_init() [all …]
|
/openbmc/phosphor-webui/app/common/styles/base/ |
H A D | variables.scss | 1 $duration--fast-01: 70ms; //Micro-interactions such as button and toggle 2 $duration--fast-02: 110ms; //Micro-interactions such as fade 3 $duration--moderate-01: 150ms; //Micro-interactions, small expansion, short distance movements 4 $duration--moderate-02: 240ms; //Expansion, system communication, toast 5 $duration--slow-01: 400ms; //Large expansion, important system notifications 6 $duration--slow-02: 700ms; //Background dimming
|
/openbmc/webui-vue/src/assets/styles/bmc/helpers/ |
H A D | _motion.scss | 1 $duration--fast-01: 70ms; //Micro-interactions such as button and toggle 2 $duration--fast-02: 110ms; //Micro-interactions such as fade 3 $duration--moderate-01: 150ms; //Micro-interactions, small expansion, short distance movements 4 $duration--moderate-02: 240ms; //Expansion, system communication, toast 5 $duration--slow-01: 400ms; //Large expansion, important system notifications 6 $duration--slow-02: 700ms; //Background dimming
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm1-cmd.c | 294 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() 425 chip->duration[TPM_MEDIUM] = in tpm1_get_timeouts() 427 chip->duration[TPM_LONG] = in tpm1_get_timeouts() 451 chip->duration[TPM_SHORT] = HZ; in tpm1_get_timeouts() 453 chip->duration[TPM_LONG] *= 1000; in tpm1_get_timeouts() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | time_utils.hpp | 212 if (duration.empty()) in toDurationStringFromUint() 217 return std::make_optional(duration); in toDurationStringFromUint() 250 using seconds = std::chrono::duration<int>; in toISO8061ExtendedStr() 251 using minutes = std::chrono::duration<int, std::ratio<60>>; in toISO8061ExtendedStr() 252 using hours = std::chrono::duration<int, std::ratio<3600>>; in toISO8061ExtendedStr() 253 using days = std::chrono::duration< in toISO8061ExtendedStr() 274 t = days(1) - std::chrono::duration<IntType, Period>(1); in toISO8061ExtendedStr() 281 t = std::chrono::duration<IntType, Period>::zero(); in toISO8061ExtendedStr() 320 using DurationType = std::chrono::duration<uint64_t>; in getDateTimeUint() 346 using DurationType = std::chrono::duration<std::time_t>; in getDateTimeStdtime() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | global_data.c | 5 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()
|
/openbmc/u-boot/lib/dhry/ |
H A D | cmd_dhry.c | 13 ulong start, duration, vax_mips; in do_dhry() local 22 duration = get_timer(start); in do_dhry() 23 dhry_per_sec = lldiv(iterations * 1000ULL, duration); in do_dhry() 26 duration, (ulong)dhry_per_sec, vax_mips); in do_dhry()
|
/openbmc/linux/Documentation/leds/ |
H A D | ledtrig-transient.rst | 74 duration to be set after trigger activation. 76 duration. 82 to allow duration to be set. 85 duration running. 89 duration 93 echo new_value > duration 119 echo 1 > activate starts timer = duration when duration is not 0. 128 held for the specified duration. 130 held for the specified duration. 145 echo n > duration [all …]
|