| /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-4.19/kernel/irq/ |
| D | timings.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2016, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> 25 u32 avg; member 44 * irqs_update - update the irq timing statistics with a new timestamp 63 * statistics from the previous busy-idle cycle. 79 * avg - 3 x stddev < value < avg + 3 x stddev 83 * -3 x stddev < value - avg < 3 x stddev 85 * abs(value - avg) < 3 x stddev 91 * abs(value - avg) < 3 x sqrt(variance) 95 * (value - avg) ^ 2 < (3 x sqrt(variance)) ^ 2 [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/adc/ |
| D | qcom,spmi-vadc.txt | 4 voltage. The VADC is a 15-bit sigma-delta ADC. 8 - compatible: 11 Definition: Should contain "qcom,spmi-vadc". 13 - reg: 15 Value type: <prop-encoded-array> 18 - #address-cells: 24 - #size-cells: 29 - #io-channel-cells: 33 Documentation/devicetree/bindings/iio/iio-bindings.txt 35 - interrupts: [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-4.19/drivers/power/supply/ |
| D | ab8500_fg.c | 2 * Copyright (C) ST-Ericsson AB 2012 4 * Main and Back-up battery management driver. 6 * Note: Backup battery management is required in case of Li-Ion battery and not 34 #include <linux/mfd/abx500/ab8500-bm.h> 35 #include <linux/mfd/abx500/ab8500-gpadc.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-4.19/include/linux/ |
| D | uwb.h | 5 * Copyright (C) 2005-2006 Intel Corporation 6 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 20 * 02110-1301, USA. 45 * struct uwb_dev - a UWB Device 50 * @mac_addr: the EUI-48 address of this device. 109 * struct uwb_mas_bm - a bitmap of all MAS in a superframe 120 * uwb_rsv_state - UWB Reservation state. 122 * NONE - reservation is not active (no DRP IE being transmitted). 126 * INITIATED - owner has sent an initial DRP request. 127 * PENDING - target responded with pending Reason Code. [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-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-4.19/drivers/cpuidle/governors/ |
| D | menu.c | 2 * menu.c - the menu idle governor 4 * Copyright (C) 2006-2007 Adam Belay <abelay@novell.com> 26 * If (MAX_INTERESTING-1) * RESOLUTION > UINT_MAX, the result of 52 * ----------------------- 80 * Repeatable-interval-detector 81 * ---------------------------- 91 * --------------------------- 100 * This rule-of-thumb is implemented using a performance-multiplier: 136 #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) 203 unsigned int max, thresh, avg; in get_typical_interval() local [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 …]
|
| D | walt.c | 1 // SPDX-License-Identifier: GPL-2.0 90 raw_spin_lock(&cpu_rq(cpu)->lock); in acquire_rq_locks_irqsave() 92 raw_spin_lock_nested(&cpu_rq(cpu)->lock, level); in acquire_rq_locks_irqsave() 103 raw_spin_unlock(&cpu_rq(cpu)->lock); in release_rq_locks_irqrestore() 121 /* 1 -> use PELT based load stats, 0 -> use window-based load stats */ 151 * A after-boot constant divisor for cpu_util_freq_walt() to apply the load 174 unsigned int max_capacity = 1024; /* max(rq->capacity) */ 175 unsigned int min_capacity = 1024; /* min(rq->capacity) */ 176 unsigned int max_possible_capacity = 1024; /* max(rq->max_possible_capacity) */ 178 min_max_possible_capacity = 1024; /* min(rq->max_possible_capacity) */ [all …]
|
| D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 55 * Targeted preemption latency for CPU-bound tasks: 58 * 'timeslice length' - timeslices in CFS are of variable length 59 * and have no persistent notion like in traditional, time-slice 63 * run vmstat and monitor the context-switches (cs) field) 71 * The initial- and re-scaling of tunables is configurable 75 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 76 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 77 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 84 * Minimal preemption granularity for CPU-bound tasks: [all …]
|
| /kernel/linux/linux-4.19/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/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/platform/chrome/ |
| D | cros_ec_sensorhub_ring.c | 1 // SPDX-License-Identifier: GPL-2.0-only 42 int id = sample->sensor_id; in cros_sensorhub_send_sample() 45 if (id >= sensorhub->sensor_num) in cros_sensorhub_send_sample() 46 return -EINVAL; in cros_sensorhub_send_sample() 48 cb = sensorhub->push_data[id].push_data_cb; in cros_sensorhub_send_sample() 52 indio_dev = sensorhub->push_data[id].indio_dev; in cros_sensorhub_send_sample() 54 if (sample->flag & MOTIONSENSE_SENSOR_FLAG_FLUSH) in cros_sensorhub_send_sample() 57 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample() 61 * cros_ec_sensorhub_register_push_data() - register the callback to the hub. 79 if (sensor_num >= sensorhub->sensor_num) in cros_ec_sensorhub_register_push_data() [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()
|
| /kernel/linux/linux-4.19/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()
|
| /kernel/linux/linux-4.19/drivers/iio/adc/ |
| 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) 143 int avg; member 187 ret = regmap_read(chip->regmap, chan->address, ®val); in ina2xx_read_raw() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| 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) 143 int avg; member 187 ret = regmap_read(chip->regmap, chan->address, ®val); in ina2xx_read_raw() [all …]
|
| /kernel/linux/linux-5.10/tools/perf/ |
| 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" 71 key->info = 0; in exit_event_get_key() 72 key->key = evsel__intval(evsel, sample, kvm_exit_reason); in exit_event_get_key() 77 return !strcmp(evsel->name, kvm_exit_trace); in kvm_exit_event() [all …]
|
| /kernel/linux/linux-4.19/tools/perf/ |
| D | builtin-kvm.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include <subcmd/parse-options.h> 16 #include "util/trace-event.h" 22 #include "util/ordered-events.h" 58 #include "util/kvm-stat.h" 64 key->info = 0; in exit_event_get_key() 65 key->key = perf_evsel__intval(evsel, sample, kvm_exit_reason); in exit_event_get_key() 70 return !strcmp(evsel->name, kvm_exit_trace); in kvm_exit_event() 86 return !strcmp(evsel->name, kvm_entry_trace); in kvm_entry_event() 100 while (tbl->reason != NULL) { in get_exit_reason() [all …]
|
| /kernel/linux/linux-4.19/drivers/platform/x86/ |
| D | intel_ips.c | 2 * Copyright (c) 2009-2010 Intel Corporation 21 * Some Intel Ibex Peak based platforms support so-called "intelligent 45 * - dual MCP configs 48 * - handle CPU hotplug 49 * - provide turbo enable/disable api 52 * - CDI 403777, 403778 - Auburndale EDS vol 1 & 2 53 * - CDI 401376 - Ibex Peak EDS 54 * - ref 26037, 26641 - IPS BIOS spec 55 * - ref 26489 - Nehalem BIOS writer's guide 56 * - ref 26921 - Ibex Peak BIOS Specification [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| 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 …]
|
| /kernel/linux/linux-4.19/kernel/sched/ |
| D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 28 * Targeted preemption latency for CPU-bound tasks: 31 * 'timeslice length' - timeslices in CFS are of variable length 32 * and have no persistent notion like in traditional, time-slice 36 * run vmstat and monitor the context-switches (cs) field) 44 * The initial- and re-scaling of tunables is configurable 48 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 49 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 50 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 57 * Minimal preemption granularity for CPU-bound tasks: [all …]
|