| /kernel/linux/linux-4.19/Documentation/leds/ |
| D | ledtrig-transient.txt | 72 This trigger exports three properties, activate, state, and duration. When 75 - duration allows setting timer value in msecs. The initial value is 0. 77 duration as needed. The initial and default value is 0. This will allow 78 duration to be set after trigger activation. 80 duration. 85 to allow duration to be set. 88 duration running. 92 duration - one shot timer value. When activate is set, duration value 95 echo new_value > duration 99 held for the duration of the one shot timer and then the [all …]
|
| /kernel/linux/linux-4.19/drivers/media/rc/ |
| D | rc-core-priv.h | 160 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument 162 if (duration > ev->duration) in decrease_duration() 163 ev->duration = 0; in decrease_duration() 165 ev->duration -= duration; in decrease_duration() 174 #define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000) argument 182 u32 duration) in init_ir_raw_event_duration() argument 185 ev->duration = duration; in init_ir_raw_event_duration() 191 * @leader_pulse: duration of leader pulse (if any) 0 if continuing 193 * @leader_space: duration of leader space (if any) 194 * @clock: duration of each pulse/space in ns [all …]
|
| D | streamzap.c | 125 dev_dbg(sz->dev, "Storing %s with duration %u us\n", in sz_push() 126 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push() 145 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse() 147 rawir.duration = delta; in sz_push_full_pulse() 148 rawir.duration -= sz->sum; in sz_push_full_pulse() 149 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse() 150 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse() 151 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse() 160 rawir.duration = ((int) value) * SZ_RESOLUTION; in sz_push_full_pulse() 161 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_pulse() [all …]
|
| D | ir-jvc-decoder.c | 56 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode() 60 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode() 69 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode() 82 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode() 92 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode() 103 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode() 106 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode() 122 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode() 132 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode() 159 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode() [all …]
|
| /kernel/linux/linux-5.10/Documentation/leds/ |
| D | ledtrig-transient.rst | 68 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/ |
| 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() 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 …]
|
| D | ir-xmp-decoder.c | 19 /* 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/net/mac80211/ |
| D | airtime.c | 29 /* 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/ |
| D | pkt_access.c | 9 __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()
|
| 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 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 …]
|
| 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() 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 …]
|
| D | signal_pending.c | 16 __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-4.19/drivers/base/test/ |
| D | test_async_driver_probe.c | 50 unsigned long long duration; in test_async_probe_init() local 72 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init() 73 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init() 74 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init() 91 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init() 92 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init() 93 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init() 118 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init() 119 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init() 120 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/char/tpm/ |
| D | tpm1-cmd.c | 282 * 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-4.19/tools/power/cpupower/utils/ |
| D | cpufreq-info.c | 125 static void print_duration(unsigned long duration) in print_duration() argument 130 if (duration > 1000000) in print_duration() 131 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration() 132 ((unsigned int) duration%1000000)); in print_duration() 133 else if (duration > 100000) in print_duration() 134 printf("%u us", ((unsigned int) duration/1000)); in print_duration() 135 else if (duration > 1000) in print_duration() 136 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration() 137 ((unsigned int) duration%1000)); in print_duration() 139 printf("%lu ns", duration); in print_duration() [all …]
|
| /kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
| D | teo.c | 20 * 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/ |
| D | time-event.h | 77 * 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-4.19/drivers/watchdog/ |
| D | aspeed_wdt.c | 66 * * Pulse duration 70 * Pulse duration configuration is available on both the AST2400 and AST2500, 197 u32 duration; in aspeed_wdt_probe() local 293 if (!of_property_read_u32(np, "aspeed,ext-pulse-duration", &duration)) { in aspeed_wdt_probe() 296 if (duration == 0 || duration > max_duration) { in aspeed_wdt_probe() 297 dev_err(&pdev->dev, "Invalid pulse duration: %uus\n", in aspeed_wdt_probe() 298 duration); in aspeed_wdt_probe() 299 duration = max(1U, min(max_duration, duration)); in aspeed_wdt_probe() 300 dev_info(&pdev->dev, "Pulse duration set to %uus\n", in aspeed_wdt_probe() 301 duration); in aspeed_wdt_probe() [all …]
|
| /kernel/linux/linux-5.10/tools/power/cpupower/utils/ |
| D | cpufreq-info.c | 124 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/ |
| 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() 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/ |
| D | test_progs.h | 102 #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/ |
| D | aspeed_wdt.c | 64 * * 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/ |
| D | kvm-recheck-rcuscale.sh | 38 /-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];
|