/linux/include/trace/events/ |
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 …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | atomics.c | 10 __u32 duration = 0, retval; in test_add() local 19 NULL, NULL, &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 103 __u32 duration = 0, retval; in test_or() local 132 __u32 duration = 0, retval; in test_xor() local 160 __u32 duration = 0, retval; in test_cmpxchg() local 189 __u32 duration = 0, retval; in test_xchg() local [all …]
|
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 135 __u32 duration = 0, retval; in test_global_data() local 144 NULL, NULL, &retval, &duration); in test_global_data() 147 err, errno, retval, duration); in test_global_data() 149 test_global_data_number(obj, duration); in test_global_data() 150 test_global_data_string(obj, duration); in test_global_data() 151 test_global_data_struct(obj, duration); in test_global_data() [all …]
|
A D | tailcalls.c | 15 __u32 retval, duration; in test_tailcall_1() local 58 &duration, &retval, NULL); in test_tailcall_1() 68 &duration, &retval, NULL); in test_tailcall_1() 153 __u32 retval, duration; in test_tailcall_2() local 228 __u32 retval, duration; in test_tailcall_count() local 322 __u32 retval, duration; in test_tailcall_4() local 410 __u32 retval, duration; in test_tailcall_5() local 498 __u32 retval, duration; in test_tailcall_bpf2bpf_1() local 582 __u32 retval, duration; in test_tailcall_bpf2bpf_2() local 660 __u32 retval, duration; in test_tailcall_bpf2bpf_3() local [all …]
|
A D | pkt_access.c | 9 __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()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_progs.h | 168 static int duration = 0; \ 175 static int duration = 0; \ 182 static int duration = 0; \ 193 static int duration = 0; \ 204 static int duration = 0; \ 215 static int duration = 0; \ 226 static int duration = 0; \ 237 static int duration = 0; \ 248 static int duration = 0; \ 259 static int duration = 0; \ [all …]
|
/linux/net/mac80211/ |
A D | airtime.c | 390 u32 duration; in ieee80211_calc_legacy_rate_duration() local 395 duration >>= 1; in ieee80211_calc_legacy_rate_duration() 405 return duration; in ieee80211_calc_legacy_rate_duration() 415 u32 duration; in ieee80211_get_rate_duration() local 460 duration = airtime_mcs_groups[group].duration[idx]; in ieee80211_get_rate_duration() 464 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 …]
|
/linux/tools/power/cpupower/utils/ |
A D | cpufreq-info.c | 129 if (duration > 1000000) in print_duration() 132 else if (duration > 100000) in print_duration() 134 else if (duration > 1000) in print_duration() 138 printf("%lu ns", duration); in print_duration() 140 if (duration > 1000000) { in print_duration() 141 tmp = duration%10000; in print_duration() 143 duration += 10000; in print_duration() 147 tmp = duration%1000; in print_duration() 149 duration += 1000; in print_duration() 152 tmp = duration%100; in print_duration() [all …]
|
/linux/drivers/media/rc/ |
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 …]
|
A D | ir-sharp-decoder.c | 50 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 …]
|
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 …]
|
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 …]
|
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()
|
A D | streamzap.c | 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() 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() 154 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse() 171 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_space() 172 sz->sum += rawir.duration; in sz_push_full_space() [all …]
|
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()
|
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()
|
A D | rc-core-priv.h | 182 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()
|
A D | ir-rc6-decoder.c | 93 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/drivers/base/test/ |
A D | test_async_driver_probe.c | 106 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() 203 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init() 229 "registration took %lld msecs\n", duration); in test_async_probe_init() [all …]
|
/linux/tools/testing/selftests/netfilter/ |
A D | nft_zones_many.sh | 88 local duration=$((stop-start)) 89 echo "PASS: added 10000 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 10000 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/tools/testing/selftests/bpf/progs/ |
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()
|
/linux/drivers/char/tpm/ |
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 …]
|
/linux/Documentation/leds/ |
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 …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | sysfs_engines.c | 147 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() 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() 227 set_timer_ms(&engine->execlists.timer, duration); in timeslice_store() 259 unsigned long long duration; in stop_store() local 271 err = kstrtoull(buf, 0, &duration); in stop_store() 275 if (duration > jiffies_to_msecs(MAX_SCHEDULE_TIMEOUT)) in stop_store() [all …]
|
/linux/kernel/trace/ |
A D | trace_osnoise.c | 701 osn_var->irq.delta_start += duration; in cond_move_irq_delta_start() 717 osn_var->softirq.delta_start += duration; in cond_move_softirq_delta_start() 735 osn_var->thread.delta_start += duration; in cond_move_thread_delta_start() 769 s64 duration; in get_int_safe_duration() local 777 duration = (now - *delta_start); in get_int_safe_duration() 787 if (duration < 0) in get_int_safe_duration() 792 return duration; in get_int_safe_duration() 858 u64 duration; in trace_osnoise_callback() local 921 int duration; in osnoise_trace_irq_exit() local 1052 int duration; in trace_softirq_exit_callback() local [all …]
|