/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | qcom,spmi-vadc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 voltage. The VADC is a 15-bit sigma-delta ADC. 17 voltage. The VADC is a 16-bit sigma-delta ADC. 22 - items: 23 - const: qcom,pms405-adc [all …]
|
/linux/Documentation/devicetree/bindings/thermal/ |
H A D | qcom-spmi-adc-tm5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 11 $ref: thermal-sensor.yaml# 16 - qcom,spmi-adc-tm5 17 - qcom,spmi-adc-tm5-gen2 18 - qcom,adc-tm7 # Incomplete / subject to change 26 "#thermal-sensor-cells": [all …]
|
H A D | qcom-spmi-adc-tm-hc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 11 $ref: thermal-sensor.yaml# 15 const: qcom,spmi-adc-tm-hc 23 "#thermal-sensor-cells": 26 "#address-cells": 29 "#size-cells": [all …]
|
/linux/tools/perf/tests/shell/common/ |
H A D | patterns.sh | 1 # SPDX-License-Identifier: GPL-2.0 3 export RE_NUMBER="[0-9\.]+" 9 export RE_NUMBER_HEX="[0-9A-Fa-f]+" 18 …xport RE_DATE_YYYYMMDD="[0-9]{4}-(?:(?:01|03|05|07|08|10|12)-(?:[0-2][0-9]|3[0-1])|02-[0-2][0-9]|(… 19 # Date in YYYY-MM-DD form 21 # 1990-02-29 22 # 0015-07-31 23 # 2456-12-31 24 #! 2012-13-01 25 #! 1963-09-31 [all …]
|
/linux/drivers/cpuidle/governors/ |
H A 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> 39 * ----------------------- 61 * Repeatable-interval-detector 62 * ---------------------------- 110 s64 value, min_thresh = -1, max_thresh = UINT_MAX; in get_typical_interval() 112 u64 avg, variance, avg_sq; in get_typical_interval() local 119 avg = 0; in get_typical_interval() 123 value = data->intervals[i]; in get_typical_interval() [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc8280xp-microsoft-blackrock.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 9 /dts-v1/; 11 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/gpio-keys.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 18 #include "sc8280xp-pmics.dtsi" 23 chassis-type = "desktop"; 31 wcd938x: audio-codec { [all …]
|
H A D | sc8280xp-lenovo-thinkpad-x13s.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/gpio-keys.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 17 #include "sc8280xp-pmics.dtsi" 21 compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp"; [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | adm1275.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 116 [0] = { 27169, 0, -1 }, /* voltage */ 117 [1] = { 806, 20475, -1 }, /* current, irange25 */ 118 [2] = { 404, 20475, -1 }, /* current, irange50 */ 119 [3] = { 8549, 0, -1 }, /* power, irange25 */ 120 [4] = { 4279, 0, -1 }, /* power, irange50 */ 124 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */ 125 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */ 126 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */ [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-kwork.txt | 1 perf-kwork(1) 5 ---- 6 perf-kwork - Tool to trace/measure kernel work properties (latencies) 9 -------- 14 ----------- 29 perf kwork record -- sleep 1 31 perf kwork report -b 33 perf kwork latency -b 36 perf kwork top -b 43 ----------------- ----------------- ------ ------------------------- ---------- ---------- [all …]
|
H A D | perf-report.txt | 1 perf-report(1) 5 ---- 6 perf-report - Read perf.data (created by perf record) and display the profile 9 -------- 11 'perf report' [-i <file> | --input=file] 14 ----------- 19 ------- 20 -i:: 21 --input=:: 24 -v:: [all …]
|
H A D | perf-lock.txt | 1 perf-lock(1) 5 ---- 6 perf-lock - Analyze lock events 9 -------- 14 ----------- 33 -------------- 35 -i:: 36 --input=<file>:: 39 --output=<file>:: 42 -v:: [all …]
|
/linux/Documentation/tools/rtla/ |
H A D | rtla-osnoise-hist.rst | 2 rtla-osnoise-hist 4 ------------------------------------------------------ 5 Display a histogram of the osnoise tracer samples 6 ------------------------------------------------------ 19 occurrence in a histogram, displaying the results in a user-friendly way. 33 In the example below, *osnoise* tracer threads are set to run with real-time 34 priority *FIFO:1*, on CPUs *0-11*, for *900ms* at each period (*1s* by 39 [root@f34 ~/]# rtla osnoise hist -P F:1 -c 0-11 -r 900000 -d 1M -b 10 -E 25 43 …Index CPU-000 CPU-001 CPU-002 CPU-003 CPU-004 CPU-005 CPU-006 CPU-007 CPU-008 … 53 …avg: 0 0 0 0 0 0 0 0 0 … [all …]
|
/linux/kernel/sched/ |
H A D | psi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 * In the FULL state of a given resource, all non-idle tasks are 44 * CPU, productive means an on-CPU task. 48 * FULL means all non-idle tasks in the cgroup are delayed on the CPU 64 * unrealized due to resource contention *also* scales with non-idle 83 * we have to base our calculation on the number of non-idle tasks in 91 * FULL = (threads - min(nr_productive_tasks, threads)) / threads 97 * FULL = (256 - min(256, 256)) / 256 = 0% 99 * For the 1 out of 4 memory-delayed tasks, this yields: 103 * FULL = (4 - min(3, 4)) / 4 = 25% [all …]
|
H A D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 44 #include <linux/memory-tiers.h> 62 * The initial- and re-scaling of tunables is configurable 66 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 67 * SCHED_TUNABLESCALING_LOG - scaled logarithmically, *1+ilog(ncpus) 68 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 75 * Minimal preemption granularity for CPU-bound tasks: 96 return -cpu; in arch_asym_cpu_priority() 116 * Amount of runtime to allocate from global (tg) to local (per-cfs_rq) pool 167 lw->weight += inc; in update_load_add() [all …]
|
/linux/drivers/platform/chrome/ |
H A D | cros_ec_sensorhub_ring.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 int id = sample->sensor_id; in cros_sensorhub_send_sample() 46 if (id >= sensorhub->sensor_num) in cros_sensorhub_send_sample() 47 return -EINVAL; in cros_sensorhub_send_sample() 49 cb = sensorhub->push_data[id].push_data_cb; in cros_sensorhub_send_sample() 53 indio_dev = sensorhub->push_data[id].indio_dev; in cros_sensorhub_send_sample() 55 if (sample->flag & MOTIONSENSE_SENSOR_FLAG_FLUSH) in cros_sensorhub_send_sample() 58 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample() 62 * cros_ec_sensorhub_register_push_data() - register the callback to the hub. 80 if (sensor_num >= sensorhub->sensor_num) in cros_ec_sensorhub_register_push_data() [all …]
|
/linux/drivers/media/platform/st/sti/hva/ |
H A 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 …]
|
/linux/drivers/thermal/mediatek/ |
H A D | lvts_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 15 #include <linux/nvmem-consumer.h> 20 #include <dt-bindings/thermal/mediatek,lvts-thermal.h> 86 #define LVTS_COEFF_A_MT8195 -250460 88 #define LVTS_COEFF_A_MT7988 -204650 122 if (!((lvts_ctrl)->valid_sensor_mask & BIT(i))) \ 224 debugfs_remove_recursive(lvts_td->dom_dentry); in lvts_debugfs_exit() 235 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init() 236 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init() [all …]
|
/linux/tools/perf/util/ |
H A D | annotate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Parts came from builtin-annotate.c, see those files for further 16 #include "build-id.h" 30 #include "annotate-data.h" 33 #include "bpf-event.h" 34 #include "bpf-utils.h" 35 #include "block-range.h" 37 #include "dwarf-regs.h" 50 #include <subcmd/parse-options.h> 51 #include <subcmd/run-command.h> [all …]
|
H A D | annotate.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 107 u64 avg; member 150 return which < PERCENT_MAX ? data->percent[which] : -1; in annotation_data__percent() 179 return dl->ops.target.offset_avail && !dl->ops.target.outside; in disasm_line__has_local_offset() 214 * struct sym_hist - symbol histogram information for an event 216 * @nr_samples: Total number of samples. 225 * struct cyc_hist - (CPU) cycle histogram for a basic block 233 * @num: Number of samples for the longest basic block. 234 * @num_aggr: Total number of samples for this address. 264 * struct annotated_source - symbols with hits have this attached as in annotation [all …]
|
/linux/drivers/iio/adc/ |
H A D | ina2xx-adc.c | 11 * Copyright 2010-2011 Analog Devices Inc. 14 * Copyright 2012 Lothar Felten <l-felten@ti.com> 16 * Licensed under the GPL-2 or later. 18 * IIO driver for INA219-220-226-230-231 20 * Configurable 7-bit I2C slave address from 0x40 to 0x4F 51 /* settings - depend on use case */ 98 #define SAMPLING_PERIOD(c) ((c->int_time_vbus + c->int_time_vshunt) \ 99 * c->avg) 144 int avg; member 190 ret = regmap_read(chip->regmap, chan->address, ®val); in ina2xx_read_raw() [all …]
|
/linux/tools/perf/ui/ |
H A D | hist.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "../util/mem-events.h" 44 double avg = nr_samples ? (1.0 * val / nr_samples) : 0; in __hpp__fmt_print() local 46 return hpp__call_print_fn(hpp, print_fn, fmt, len, avg); in __hpp__fmt_print() 55 int samples; member 63 struct hists *hists = he->hists; in __hpp__fmt() 66 char *buf = hpp->buf; in __hpp__fmt() 67 size_t size = hpp->size; in __hpp__fmt() 72 nr_members = evsel->core.nr_members; in __hpp__fmt() 80 values[0].samples = he->stat.nr_events; in __hpp__fmt() [all …]
|
/linux/tools/perf/ |
H A D | builtin-kvm.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include "util/build-id.h" 16 #include <subcmd/parse-options.h> 17 #include "util/trace-event.h" 21 #include "util/synthetic-events.h" 24 #include "util/ordered-events.h" 25 #include "util/kvm-stat.h" 59 if (vcpu == -1) \ 60 return event->total.field; \ 62 if (vcpu >= event->max_vcpu) \ [all …]
|
/linux/drivers/platform/x86/ |
H A D | intel_ips.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2009-2010 Intel Corporation 10 * Some Intel Ibex Peak based platforms support so-called "intelligent 34 * - dual MCP configs 37 * - handle CPU hotplug 38 * - provide turbo enable/disable api 41 * - CDI 403777, 403778 - Auburndale EDS vol 1 & 2 42 * - CDI 401376 - Ibex Peak EDS 43 * - ref 26037, 26641 - IPS BIOS spec 44 * - ref 26489 - Nehalem BIOS writer's guide [all …]
|
/linux/tools/tracing/rtla/src/ |
H A D | osnoise_hist.c | 1 // SPDX-License-Identifier: GPL-2.0 19 int *samples; member 37 * osnoise_free_histogram - free runtime data 45 for (cpu = 0; cpu < data->nr_cpus; cpu++) { in osnoise_free_histogram() 46 if (data->hist[cpu].samples) in osnoise_free_histogram() 47 free(data->hist[cpu].samples); in osnoise_free_histogram() 51 if (data->hist) in osnoise_free_histogram() 52 free(data->hist); in osnoise_free_histogram() 58 * osnoise_alloc_histogram - alloc runtime data 70 data->entries = entries; in osnoise_alloc_histogram() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent 14 * "ca->ack_cnt / delta" operation. 27 return (__s32)(seq1-seq2) < 0; in before() 43 /* Number of delay samples for detecting the increase of delay */ 62 / (BICTCP_BETA_SCALE - beta); 63 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3 64 * so K = cubic_root( (wmax-cwnd)*rtt/c ) 73 * HZ < 1,000,00 (corresponding to 10 nano-second) 94 __u8 sample_cnt; /* number of samples to decide curr_rtt */ [all …]
|