| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/thermal/ |
| 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> 14 - qcom,spmi-adc-tm5 15 - qcom,spmi-adc-tm5-gen2 16 - qcom,adc-tm7 # Incomplete / subject to change 24 "#thermal-sensor-cells": 30 "#address-cells": [all …]
|
| 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> 13 const: qcom,spmi-adc-tm-hc 21 "#thermal-sensor-cells": 27 "#address-cells": 30 "#size-cells": 33 qcom,avg-samples: [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| D | ab8500_fg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson AB 2012 5 * Main and Back-up battery management driver. 7 * Note: Backup battery management is required in case of Li-Ion battery and not 34 #include <linux/mfd/abx500/ab8500-bm.h> 58 ((y1) + ((((y2) - (y1)) * ((x) - (x1))) / ((x2) - (x1)))); 61 * struct ab8500_fg_interrupts - ab8500 fg interupts 107 int avg; member 108 int samples[NBR_AVG_SAMPLES]; member 156 * struct ab8500_fg - ab8500 FG device information [all …]
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | ab8500_fg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson AB 2012 5 * Main and Back-up battery management driver. 7 * Note: Backup battery management is required in case of Li-Ion battery and not 37 #include <linux/fixp-arith.h> 39 #include "ab8500-bm.h" 49 /* Currents higher than -500mA (dissipating) will make compensation unstable */ 50 #define IGNORE_VBAT_HIGHCUR -500000 63 * struct ab8500_fg_interrupts - ab8500 fg interrupts 109 int avg; member [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/ |
| D | sc8280xp-lenovo-thinkpad-x13s.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 11 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 12 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 13 #include <dt-bindings/input/gpio-keys.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/leds/common.h> 16 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> [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 * ----------------------- 68 * Repeatable-interval-detector 69 * ---------------------------- 79 * --------------------------- 88 * This rule-of-thumb is implemented using a performance-multiplier: 173 unsigned int min, max, thresh, avg; in get_typical_interval() local 186 unsigned int value = data->intervals[i]; in get_typical_interval() [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/intel/ |
| D | therm_throt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 45 * struct _thermal_state - Represent the current thermal event state 61 * This is used for the purpose of rate-control. 69 * @sample_count: Total number of samples collected in the buffer 71 * @average: The last moving average of temperature samples 74 * @temp_samples: Storage for temperature samples to calculate 142 unsigned int cpu = dev->id; \ 206 * "Table 2-2. IA-32 Architectural MSRs", MSR 0x19C in thermal_intr_init_core_clear_mask() 242 * "Table 2-2. IA-32 Architectural MSRs", MSR 0x1B1 in thermal_intr_init_pkg_clear_mask() 303 unsigned int i, avg, this_cpu = smp_processor_id(); in throttle_active_work() local [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
| D | therm_throt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 * struct _thermal_state - Represent the current thermal event state 60 * This is used for the purpose of rate-control. 68 * @sample_count: Total number of samples collected in the buffer 70 * @average: The last moving average of temperature samples 73 * @temp_samples: Storage for temperature samples to calculate 141 unsigned int cpu = dev->id; \ 242 unsigned int i, avg, this_cpu = smp_processor_id(); in throttle_active_work() local 247 get_therm_status(state->level, &hot, &temp); in throttle_active_work() 249 if (!hot && temp > state->baseline_temp) { in throttle_active_work() [all …]
|
| /kernel/linux/linux-6.6/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> 42 * ----------------------- 70 * Repeatable-interval-detector 71 * ---------------------------- 81 * --------------------------- 90 * This rule-of-thumb is implemented using a performance-multiplier: 174 unsigned int min, max, thresh, avg; in get_typical_interval() local 187 unsigned int value = data->intervals[i]; in get_typical_interval() [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/pmbus/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
| D | adm1275.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 113 [0] = { 27169, 0, -1 }, /* voltage */ 114 [1] = { 806, 20475, -1 }, /* current, irange25 */ 115 [2] = { 404, 20475, -1 }, /* current, irange50 */ 116 [3] = { 8549, 0, -1 }, /* power, irange25 */ 117 [4] = { 4279, 0, -1 }, /* power, irange50 */ 121 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */ 122 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */ 123 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */ [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/mediatek/ |
| 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> 83 #define LVTS_COEFF_A -250460 206 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init() 207 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init() 210 for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { in lvts_debugfs_init() 212 lvts_ctrl = &lvts_td->lvts_ctrl[i]; in lvts_debugfs_init() 215 dentry = debugfs_create_dir(name, lvts_td->dom_dentry); in lvts_debugfs_init() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/Documentation/ |
| D | perf-kwork.txt | 1 perf-kowrk(1) 5 ---- 6 perf-kwork - Tool to trace/measure kernel work properties (latencies) 9 -------- 14 ----------- 27 perf kwork record -- sleep 1 29 perf kwork report -b 31 perf kwork latency -b 39 ----------------- ----------------- ------ ------------------------- ---------- ---------- 58 ------- [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/tools/perf/Documentation/ |
| 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 …]
|
| /kernel/linux/linux-5.10/kernel/sched/ |
| D | psi.c | 33 * In the FULL state of a given resource, all non-idle tasks are 54 * unrealized due to resource contention *also* scales with non-idle 73 * we have to base our calculation on the number of non-idle tasks in 81 * FULL = (threads - min(nr_running_tasks, threads)) / threads 87 * FULL = (256 - min(257, 256)) / 256 = 0% 89 * For the 1 out of 4 memory-delayed tasks, this yields: 93 * FULL = (4 - min(3, 4)) / 4 = 25% 96 * extension of the single-CPU model. ] 126 * cost-wise, yet way more sensitive and accurate than periodic 160 /* Running averages - we need to be higher-res than loadavg */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/tools/rtla/ |
| 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 …]
|
| /kernel/linux/linux-6.6/kernel/sched/ |
| D | psi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 * In the FULL state of a given resource, all non-idle tasks are 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% 106 * extension of the single-CPU model. ] [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/chrome/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/chrome/ |
| 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 …]
|
| /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-6.6/drivers/media/platform/st/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/tools/testing/selftests/timers/ |
| D | raw_skew.c | 9 * $ gcc raw_skew.c -o raw_skew -lrt 36 __x < 0 ? -(-__x >> __s) : __x >> __s; \ 42 val = -val; in llabs() 66 return end_ns - start_ns; in diff_timespec() 102 return -1; in main() 127 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main() 128 eppm = -eppm; in main() 131 /* Avg the two actual freq samples adjtimex gave us */ in main() 137 if (llabs(eppm - ppm) > 1000) { in main()
|