Home
last modified time | relevance | path

Searched +full:avg +full:- +full:samples (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.14.4/Documentation/devicetree/bindings/iio/adc/
Dqcom,spmi-vadc.yaml1 # 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 <[email protected]>
11 - Bjorn Andersson <[email protected]>
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-6.14.4/Documentation/devicetree/bindings/thermal/
Dqcom-spmi-adc-tm5.yaml1 # 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 <[email protected]>
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 …]
Dqcom-spmi-adc-tm-hc.yaml1 # 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 <[email protected]>
11 $ref: thermal-sensor.yaml#
15 const: qcom,spmi-adc-tm-hc
23 "#thermal-sensor-cells":
26 "#address-cells":
29 "#size-cells":
[all …]
/linux-6.14.4/tools/perf/tests/shell/common/
Dpatterns.sh1 # 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-6.14.4/drivers/crypto/intel/qat/qat_common/
Dadf_tl_debugfs.c1 // SPDX-License-Identifier: GPL-2.0-only
29 unsigned int samples, hb_idx, i; in tl_collect_values_u32() local
33 samples = min(telemetry->msg_cnt, telemetry->hbuffs); in tl_collect_values_u32()
34 hb_idx = telemetry->hb_num + telemetry->hbuffs - samples; in tl_collect_values_u32()
36 mutex_lock(&telemetry->regs_hist_lock); in tl_collect_values_u32()
38 for (i = 0; i < samples; i++) { in tl_collect_values_u32()
39 regs_hist_buff = telemetry->regs_hist_buff[hb_idx % telemetry->hbuffs]; in tl_collect_values_u32()
45 mutex_unlock(&telemetry->regs_hist_lock); in tl_collect_values_u32()
47 return samples; in tl_collect_values_u32()
53 unsigned int samples, hb_idx, i; in tl_collect_values_u64() local
[all …]
/linux-6.14.4/drivers/power/supply/
Dab8500_fg.c1 // 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 …]
/linux-6.14.4/arch/arm64/boot/dts/qcom/
Dsc8280xp-microsoft-blackrock.dts1 // 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 …]
Dsc8280xp-huawei-gaokun3.dts1 // SPDX-License-Identifier: BSD-3-Clause
12 /dts-v1/;
14 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/gpio-keys.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
19 #include <dt-bindings/phy/phy.h>
22 #include "sc8280xp-pmics.dtsi"
25 chassis-type = "tablet";
[all …]
Dsc8280xp-lenovo-thinkpad-x13s.dts1 // 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-6.14.4/drivers/cpuidle/governors/
Dmenu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * menu.c - the menu idle governor
5 * Copyright (C) 2006-2007 Adam Belay <[email protected]>
39 * -----------------------
67 * Repeatable-interval-detector
68 * ----------------------------
120 unsigned int min, max, thresh, avg; in get_typical_interval() local
133 unsigned int value = data->intervals[i]; in get_typical_interval()
149 avg = sum >> INTERVAL_SHIFT; in get_typical_interval()
151 avg = div_u64(sum, divisor); in get_typical_interval()
[all …]
/linux-6.14.4/drivers/thermal/intel/
Dtherm_throt.c1 // 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 …]
/linux-6.14.4/tools/perf/Documentation/
Dperf-sched.txt1 perf-sched(1)
5 ----
6 perf-sched - Tool to trace/measure scheduler properties (latencies)
9 --------
14 -----------
24 perf sched record -- sleep 1
27--------------------------------------------------------------------------------------------------…
28 …Task | Runtime ms | Count | Avg delay ms | Max delay ms | Max delay s…
29--------------------------------------------------------------------------------------------------…
30 …perf:(2) | 2.804 ms | 66 | avg: 0.524 ms | max: 1.069 ms | max start: …
[all …]
Dperf-kwork.txt1 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 …]
Dperf-report.txt1 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 …]
/linux-6.14.4/drivers/hwmon/pmbus/
Dadm1275.c1 // 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-6.14.4/Documentation/ABI/testing/
Ddebugfs-driver-qat_telemetry4 Contact: qat-[email protected]
12 and average for each counter over 2, 3 or 4 samples
16 * 1-4: telemetry is enabled and running
22 telemetry metrics. Samples are collected every second and
40 Contact: qat-[email protected]
56 samples for AE0)
98 <counter_name> <current> <min> <max> <avg>
108 Contact: qat-[email protected]
114 * 0 to ``<num_rps - 1>``:
117 See Documentation/ABI/testing/sysfs-driver-qat.
[all …]
/linux-6.14.4/tools/perf/ui/
Dhist.c1 // SPDX-License-Identifier: GPL-2.0
41 double avg = nr_samples ? (1.0 * val / nr_samples) : 0; in __hpp__fmt_print() local
43 return hpp__call_print_fn(hpp, print_fn, fmt, len, avg); in __hpp__fmt_print()
52 int samples; member
60 struct hists *hists = he->hists; in __hpp__fmt()
63 char *buf = hpp->buf; in __hpp__fmt()
64 size_t size = hpp->size; in __hpp__fmt()
69 nr_members = evsel->core.nr_members; in __hpp__fmt()
77 values[0].samples = he->stat.nr_events; in __hpp__fmt()
85 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt()
[all …]
/linux-6.14.4/Documentation/tools/rtla/
Drtla-osnoise-hist.rst2 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 …
53avg: 0 0 0 0 0 0 0 0 0 …
[all …]
/linux-6.14.4/drivers/platform/chrome/
Dcros_ec_sensorhub_ring.c1 // 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-6.14.4/kernel/sched/
Dpsi.c1 // 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 …]
/linux-6.14.4/drivers/media/platform/st/sti/hva/
Dhva-debugfs.c1 // 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-6.14.4/drivers/thermal/mediatek/
Dlvts_thermal.c1 // 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_MT8195 -250460
85 #define LVTS_COEFF_A_MT7988 -204650
119 if (!((lvts_ctrl)->valid_sensor_mask & BIT(i))) \
221 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init()
222 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init()
225 for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { in lvts_debugfs_init()
[all …]
/linux-6.14.4/tools/testing/selftests/timers/
Draw_skew.c9 * $ gcc raw_skew.c -o raw_skew -lrt
34 __x < 0 ? -(-__x >> __s) : __x >> __s; \
40 val = -val; in llabs()
64 return end_ns - start_ns; in diff_timespec()
100 return -1; in main()
125 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main()
126 eppm = -eppm; in main()
129 /* Avg the two actual freq samples adjtimex gave us */ in main()
134 if (llabs(eppm - ppm) > 1000) { in main()
/linux-6.14.4/drivers/thermal/qcom/
Dqcom-spmi-adc-tm5.c1 // 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 …]
/linux-6.14.4/tools/perf/util/
Dannotate.h1 /* SPDX-License-Identifier: GPL-2.0 */
104 u64 avg; member
147 return which < PERCENT_MAX ? data->percent[which] : -1; in annotation_data__percent()
176 return dl->ops.target.offset_avail && !dl->ops.target.outside; in disasm_line__has_local_offset()
211 * struct sym_hist - symbol histogram information for an event
213 * @nr_samples: Total number of samples.
222 * struct cyc_hist - (CPU) cycle histogram for a basic block
230 * @num: Number of samples for the longest basic block.
231 * @num_aggr: Total number of samples for this address.
261 * struct annotated_source - symbols with hits have this attached as in annotation
[all …]

12