/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
D | kvm-recheck-rcuscale-ftrace.sh | 2 # SPDX-License-Identifier: GPL-2.0+ 6 # printed. Intended to be invoked from kvm-recheck-rcuscale.sh after 9 # Usage: kvm-recheck-rcuscale-ftrace.sh resdir 18 if test "`grep -c 'rcu_exp_grace_period.*start' < $i/console.log`" -lt 100 23 sed -e 's/^\[[^]]*]//' < $i/console.log | 24 grep 'us : rcu_exp_grace_period' | 25 sed -e 's/us : / : /' | 26 tr -d '\015' | 39 curgpdur = $3 - starttime; 44 print "Long GP " starttime "us to " $3 "us (" curgpdur "us)"; [all …]
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | ir-xmp-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-xmp-decoder.c - handle XMP IR Pulse/Space protocol 6 * - Based on info from http://www.hifi-remote.com 7 * - Ignore Toggle=9 frames 8 * - Ignore XMP-1 XMP-2 difference, always store 16 bit OBC 13 #include "rc-core-priv.h" 15 #define XMP_UNIT 136 /* us */ 16 #define XMP_LEADER 210 /* us */ 17 #define XMP_NIBBLE_PREFIX 760 /* us */ 18 #define XMP_HALFFRAME_SPACE 13800 /* us */ [all …]
|
D | ir-sharp-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-sharp-decoder.c - handle Sharp IR Pulse/Space protocol 4 * Copyright (C) 2013-2014 Imagination Technologies Ltd. 12 #include "rc-core-priv.h" 15 #define SHARP_UNIT 40 /* us */ 16 #define SHARP_BIT_PULSE (8 * SHARP_UNIT) /* 320us */ 17 #define SHARP_BIT_0_PERIOD (25 * SHARP_UNIT) /* 1ms (680us space) */ 32 * ir_sharp_decode() - Decode one Sharp pulse or space 36 * This function returns -EINVAL if the pulse violates the state machine 40 struct sharp_dec *data = &dev->raw->sharp; in ir_sharp_decode() [all …]
|
D | ir-jvc-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-jvc-decoder.c - handle JVC IR Pulse/Space protocol 9 #include "rc-core-priv.h" 12 #define JVC_UNIT 525 /* us */ 13 #define JVC_HEADER_PULSE (16 * JVC_UNIT) /* lack of header -> repeat */ 32 * ir_jvc_decode() - Decode one JVC pulse or space 36 * This function returns -EINVAL if the pulse violates the state machine 40 struct jvc_dec *data = &dev->raw->jvc; in ir_jvc_decode() 44 data->state = STATE_INACTIVE; in ir_jvc_decode() 48 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode() [all …]
|
D | ir-sony-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ir-sony-decoder.c - handle Sony IR Pulse/Space protocol 9 #include "rc-core-priv.h" 11 #define SONY_UNIT 600 /* us */ 28 * ir_sony_decode() - Decode one Sony pulse or space 32 * This function returns -EINVAL if the pulse violates the state machine 36 struct sony_dec *data = &dev->raw->sony; in ir_sony_decode() 43 data->state = STATE_INACTIVE; in ir_sony_decode() 47 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode() 50 dev_dbg(&dev->dev, "Sony decode started at state %d (%uus %s)\n", in ir_sony_decode() [all …]
|
D | ir-nec-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // ir-nec-decoder.c - handle NEC IR Pulse/Space protocol 8 #include "rc-core-priv.h" 11 #define NEC_UNIT 563 /* us */ 33 * ir_nec_decode() - Decode one NEC pulse or space 37 * This function returns -EINVAL if the pulse violates the state machine 41 struct nec_dec *data = &dev->raw->nec; in ir_nec_decode() 48 data->state = STATE_INACTIVE; in ir_nec_decode() 52 dev_dbg(&dev->dev, "NEC decode started at state %d (%uus %s)\n", in ir_nec_decode() 53 data->state, ev.duration, TO_STR(ev.pulse)); in ir_nec_decode() [all …]
|
D | ir-sanyo-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // ir-sanyo-decoder.c - handle SANYO IR Pulse/Space protocol 17 #include "rc-core-priv.h" 20 #define SANYO_UNIT 563 /* us */ 40 * ir_sanyo_decode() - Decode one SANYO pulse or space 44 * This function returns -EINVAL if the pulse violates the state machine 48 struct sanyo_dec *data = &dev->raw->sanyo; in ir_sanyo_decode() 55 dev_dbg(&dev->dev, "SANYO event reset received. reset to state 0\n"); in ir_sanyo_decode() 56 data->state = STATE_INACTIVE; in ir_sanyo_decode() 61 dev_dbg(&dev->dev, "SANYO decode started at state %d (%uus %s)\n", in ir_sanyo_decode() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/ |
D | thermal-idle.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/thermal/thermal-idle.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Daniel Lezcano <daniel.lezcano@linaro.org> 22 const: thermal-idle 24 A thermal-idle node describes the idle cooling device properties to 27 '#cooling-cells': 31 the cooling-maps reference. The first cell is the minimum cooling state 34 duration-us: [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/ |
D | domain-idle-state.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/domain-idle-state.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 18 const: domain-idle-states 21 "^(cpu|cluster|domain)-": 28 const: domain-idle-state 30 entry-latency-us: 33 state. Note that, the exit-latency-us duration may be guaranteed only [all …]
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | airtime.c | 1 // SPDX-License-Identifier: ISC 15 /* Number of kilo-symbols (symbols * 1024) for a packet with (bps) bits per 16 * symbol. We use k-symbols to avoid rounding in the _TIME macros below. 25 ((ksyms) * 4 * 18) / 20 : /* 3.6 us per sym */ \ 26 ((ksyms) * 4) /* 4.0 us per sym */ \ 29 /* Transmit duration for the raw data part of an average sized packet */ 41 /* Transmission time (1024 usec) for a packet containing (ksyms) * k-symbols */ 44 ((ksyms) * 16 * 17) / 20 : /* 13.6 us per sym */ \ 46 ((ksyms) * 16 * 18) / 20 : /* 14.4 us per sym */ \ 47 ((ksyms) * 16) /* 16.0 us per sym */ \ [all …]
|
D | offchannel.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Off-channel operation helpers 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 16 #include "driver-ops.h" 21 * the frames while we are doing off-channel work. This is optional 22 * because we *may* be doing work on-operating channel, and want our 23 * hardware unconditionally awake, but still let the AP send us normal frames. 27 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_enable() 28 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_offchannel_ps_enable() 31 /* FIXME: what to do when local->pspolling is true? */ in ieee80211_offchannel_ps_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
D | hwt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * 28-Jun-1994 sw Edit v1.6. 21 * MCA: Added support for the SK-NET FDDI-FM2 adapter. The 37 /* 28-Jun-1994 sw - Note: hwt_restart() is also used in module 'drvfbi.c'. */ 44 * Start hardware timer (clock ticks are 16us). 50 * smc - A pointer to the SMT Context structure. 52 * time - The time in units of 16us to load the timer with. 66 smc->hw.t_start = time ; in hwt_start() 67 smc->hw.t_stop = 0L ; in hwt_start() 71 * if time < 16 us in hwt_start() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/vt6655/ |
D | rxtx.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 21 #define DEFAULT_MSDU_LIFETIME_RES_64us 8000 /* 64us */ 22 #define DEFAULT_MGN_LIFETIME_RES_64us 125 /* 64us */ 25 /*--------------------- Export Definitions -------------------------*/ 27 /*--------------------- Export Variables --------------------------*/ 29 /*--------------------- Export Functions --------------------------*/ 93 __le16 duration; member 99 __le16 duration; member 132 __le16 duration; member 139 __le16 duration; member [all …]
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.de> 39 value[LINE_LEN - 1] = '\0'; in count_cpus() 40 if (strlen(value) < (LINE_LEN - 2)) in count_cpus() 64 printf(_(" minimum CPU frequency - maximum CPU frequency - governor\n")); in proc_cpufreq_output() 75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output() 76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output() 78 printf("CPU%3d %9lu kHz (%3d %%) - %9lu kHz (%3d %%) - %s\n", in proc_cpufreq_output() 79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output() 80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output() [all …]
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | cpuidle_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 20 * struct cpuidle_cooling_device - data for the idle cooling device 32 * cpuidle_cooling_runtime - Running time computation 36 * The running duration is computed from the idle injection duration 38 * means the running duration is zero. If we have a 50% ratio 39 * injection, that means we have equal duration for idle and for 40 * running duration. 44 * running = idle x ((100 / ratio) - 1) 48 * running = (idle x 100) / ratio - idle 50 * For example, if we have an injected duration of 50%, then we end up [all …]
|
/kernel/linux/linux-5.10/Documentation/driver-api/thermal/ |
D | cpu-idle-cooling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ---------- 26 budget lower than the requested one and under-utilize the CPU, thus 27 losing performance. In other words, one OPP under-utilizes the CPU 33 ---------- 36 duration in a controlled period, the SoC temperature will 37 decrease. Acting on the idle state duration or the idle cycle 48 belong to the same cluster, with a duration greater than the cluster 58 --------------- 69 We use a fixed duration of idle injection that gives an acceptable [all …]
|
/kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
D | menu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * menu.c - the menu idle governor 5 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com> 40 * ----------------------- 43 * provides us this duration in the "target_residency" field. So all that we 51 * duration always was 50% of the next timer tick, the correction factor will 57 * duration; if we expect 500 milliseconds of idle time the likelihood of 65 * indexed based on the magnitude of the expected duration as well as the 68 * Repeatable-interval-detector 69 * ---------------------------- [all …]
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | aspeed_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 { .compatible = "aspeed,ast2400-wdt", .data = &ast2400_config }, 36 { .compatible = "aspeed,ast2500-wdt", .data = &ast2500_config }, 37 { .compatible = "aspeed,ast2600-wdt", .data = &ast2500_config }, 64 * * Pulse duration 65 * * Drive mode: push-pull vs open-drain 68 * Pulse duration configuration is available on both the AST2400 and AST2500, 78 * and bit 30 represents push-pull or open-drain. With respect to write, magic 106 wdt->ctrl |= WDT_CTRL_ENABLE; in aspeed_wdt_enable() 108 writel(0, wdt->base + WDT_CTRL); in aspeed_wdt_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/md/bcache/ |
D | util.c | 1 // SPDX-License-Identifier: GPL-2.0 32 return -EINVAL; \ 55 return -EINVAL; \ 64 return -EINVAL; \ 66 while (u--) { \ 69 return -EINVAL; \ 71 (i < 0 && -ANYSINT_MAX(type) / 1024 > i)) \ 72 return -EINVAL; \ 86 * bch_hprint - formats @v to human readable string for sysfs. in STRTO_H() 100 q = -v; in STRTO_H() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_engine_pm.c | 2 * SPDX-License-Identifier: MIT 28 intel_gt_pm_get(engine->gt); in __engine_unpark() 31 ce = engine->kernel_context; in __engine_unpark() 33 GEM_BUG_ON(test_bit(CONTEXT_VALID_BIT, &ce->flags)); in __engine_unpark() 36 if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM) && ce->state) { in __engine_unpark() 37 struct drm_i915_gem_object *obj = ce->state->obj; in __engine_unpark() 38 int type = i915_coherent_map_type(engine->i915); in __engine_unpark() 43 memset(map, CONTEXT_REDZONE, obj->base.size); in __engine_unpark() 49 ce->ops->reset(ce); in __engine_unpark() 52 if (engine->unpark) in __engine_unpark() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/ |
D | idle-states.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/arm/idle-states.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 14 1 - Introduction 18 where cores can be put in different low-power states (ranging from simple wfi 20 range of dynamic idle states that a processor can enter at run-time, can be 27 - Running 28 - Idle_standby [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/ |
D | hva-debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "hva-hw.h" 15 struct hva_streaminfo *stream = &ctx->streaminfo; in format_ctx() 16 struct hva_frameinfo *frame = &ctx->frameinfo; in format_ctx() 17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx() 18 struct hva_ctx_dbg *dbg = &ctx->dbg; in format_ctx() 21 seq_printf(s, "|-%s\n |\n", ctx->name); in format_ctx() 23 seq_printf(s, " |-[%sframe info]\n", in format_ctx() 24 ctx->flags & HVA_FLAG_FRAMEINFO ? "" : "default "); in format_ctx() 25 seq_printf(s, " | |- pixel format=%4.4s\n" in format_ctx() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/vt6656/ |
D | rxtx.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 23 #define DEFAULT_MGN_LIFETIME_RES_64us 125 /* 64us */ 84 __le16 duration; member 102 __le16 duration; member 171 __le16 duration; member
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | timing.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Authors: Hollis Blanchard <hollisb@us.ibm.com> 18 #include <asm-generic/div64.h> 27 mutex_lock(&vcpu->arch.exit_timing_lock); in kvmppc_init_timing_stats() 29 vcpu->arch.last_exit_type = 0xDEAD; in kvmppc_init_timing_stats() 31 vcpu->arch.timing_count_type[i] = 0; in kvmppc_init_timing_stats() 32 vcpu->arch.timing_max_duration[i] = 0; in kvmppc_init_timing_stats() 33 vcpu->arch.timing_min_duration[i] = 0xFFFFFFFF; in kvmppc_init_timing_stats() 34 vcpu->arch.timing_sum_duration[i] = 0; in kvmppc_init_timing_stats() 35 vcpu->arch.timing_sum_quad_duration[i] = 0; in kvmppc_init_timing_stats() [all …]
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_hwlat.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * trace_hwlat.c - A simple Hardware Latency detector. 20 * Although certain hardware-inducing latencies are necessary (for example, 22 * and remote management) they can wreak havoc upon any OS-level performance 23 * guarantees toward low-latency, especially when the OS is not even made 27 * sampling the built-in CPU timer, looking for discontiguous readings. 31 * environment requiring any kind of low-latency performance 34 * Copyright (C) 2008-2009 Jon Masters, Red Hat, Inc. <jcm@redhat.com> 35 * Copyright (C) 2013-2016 Steven Rostedt, Red Hat, Inc. <srostedt@redhat.com> 55 #define DEFAULT_LAT_THRESHOLD 10 /* 10us */ [all …]
|