/openbmc/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 …]
|
/openbmc/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> 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 …]
|
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> 13 const: qcom,spmi-adc-tm-hc 21 "#thermal-sensor-cells": 27 "#address-cells": 30 "#size-cells": 33 qcom,avg-samples: [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A 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 …]
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
H A D | samples.py | 78 # discard incomplete samples 90 self.buffers = mem_sample.records['MemTotal'] - mem_sample.records['MemFree'] 91 …self.used = mem_sample.records['MemTotal'] - mem_sample.records['MemFree'] - mem_sample.records['B… 93 self.swap = mem_sample.records['SwapTotal'] - mem_sample.records['SwapFree'] 124 writer.info ("%d samples, avg. sample length %f" % (self.sample_count, self.sample_period)) 137 self.samples = [] 149 # split this process' run - triggered by a name change 160 … " ".join([str(self.pid), self.cmd, str(self.ppid), '[ ' + str(len(self.samples)) + ' samples ]' ]) 163 if self.samples: 164 firstSample = self.samples[0] [all …]
|
/openbmc/linux/drivers/thermal/intel/ |
H A 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 …]
|
/openbmc/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> 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 …]
|
/openbmc/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 …]
|
/openbmc/openbmc/poky/meta/recipes-rt/rt-tests/files/ |
H A D | rt_bmark.py | 2 # -*- coding: utf-8 -*- 4 # SPDX-License-Identifier: BSD-3-Clause 19 # value for a real-time system. Also presented because it is easy to do. 22 # This is the interesting number for a real-time system. The number 42 # Samples: 66 # samples is too small. 69 # then suspect that the number of samples is probably large enough. 72 # Steps 1-2 are done in run_cyclictest_suite 73 # Steps 3-5 are done in gen_minmax_list. 89 #------------------------------------------------------------------------------- [all …]
|
/openbmc/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> 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 …]
|
/openbmc/linux/tools/perf/Documentation/ |
H A 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 …]
|
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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A 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() 136 if (llabs(eppm - ppm) > 1000) { in main()
|
/openbmc/linux/drivers/thermal/qcom/ |
H A D | qcom-spmi-adc-tm5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. 12 #include <linux/iio/adc/qcom-vadc-common.h> 178 * struct adc_tm5_channel - ADC Thermal Monitoring channel data. 212 * struct adc_tm5_chip - ADC Thermal Monitoring properties 243 return regmap_bulk_read(adc_tm->regmap, adc_tm->base + offset, data, len); in adc_tm5_read() 248 return regmap_bulk_write(adc_tm->regmap, adc_tm->base + offset, data, len); in adc_tm5_write() 253 return regmap_write_bits(adc_tm->regmap, adc_tm->base + offset, mask, val); in adc_tm5_reg_update() 264 dev_err(chip->dev, "read status low failed: %d\n", ret); in adc_tm5_isr() 270 dev_err(chip->dev, "read status high failed: %d\n", ret); in adc_tm5_isr() [all …]
|
/openbmc/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 …]
|
H A D | qcom-spmi-adc5.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/iio/adc/qcom-vadc-common.h> 23 #include <dt-bindings/iio/qcom,spmi-vadc.h> 75 * samples and measurements queued across different VADC peripherals. 104 * struct adc5_channel_prop - ADC channel property. 133 * struct adc5_chip - ADC private structure. 160 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read() 165 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write() 170 return regmap_update_bits(adc->regmap, adc->base + offset, mask, val); in adc5_masked_write() 189 dev_err(adc->dev, "Invalid data:0x%x\n", *data); in adc5_read_voltage_data() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | osnoise_hist.c | 1 // SPDX-License-Identifier: GPL-2.0 49 int *samples; member 67 * osnoise_free_histogram - free runtime data 75 for (cpu = 0; cpu < data->nr_cpus; cpu++) { in osnoise_free_histogram() 76 if (data->hist[cpu].samples) in osnoise_free_histogram() 77 free(data->hist[cpu].samples); in osnoise_free_histogram() 81 if (data->hist) in osnoise_free_histogram() 82 free(data->hist); in osnoise_free_histogram() 88 * osnoise_alloc_histogram - alloc runtime data 100 data->entries = entries; in osnoise_alloc_histogram() [all …]
|