Home
last modified time | relevance | path

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

12

/Linux-v5.10/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 <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-v5.10/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
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 …]
/Linux-v5.10/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 <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 …]
/Linux-v5.10/arch/x86/kernel/cpu/mce/
Dtherm_throt.c1 // 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 …]
/Linux-v5.10/tools/perf/Documentation/
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 …]
Dperf-script-python.txt1 perf-script-python(1)
5 ----
6 perf-script-python - Process trace data with a Python script
9 --------
11 'perf script' [-s [Python]:script[.py] ]
14 -----------
17 built-in Python interpreter. It reads and processes the input file and
22 ---------------
32 'syscall-counts' script you see when you list the available perf script
33 scripts via 'perf script -l'. As such, this script also shows how to
[all …]
/Linux-v5.10/kernel/sched/
Dpsi.c33 * 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 …]
Dfair.c1 // SPDX-License-Identifier: GPL-2.0
26 * Targeted preemption latency for CPU-bound tasks:
29 * 'timeslice length' - timeslices in CFS are of variable length
30 * and have no persistent notion like in traditional, time-slice
34 * run vmstat and monitor the context-switches (cs) field)
42 * The initial- and re-scaling of tunables is configurable
46 * SCHED_TUNABLESCALING_NONE - unscaled, always *1
47 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus)
48 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus
55 * Minimal preemption granularity for CPU-bound tasks:
[all …]
/Linux-v5.10/drivers/media/platform/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-v5.10/drivers/platform/chrome/
Dcros_ec_sensorhub_ring.c1 // SPDX-License-Identifier: GPL-2.0-only
40 int id = sample->sensor_id; in cros_sensorhub_send_sample()
43 if (id >= sensorhub->sensor_num) in cros_sensorhub_send_sample()
44 return -EINVAL; in cros_sensorhub_send_sample()
46 cb = sensorhub->push_data[id].push_data_cb; in cros_sensorhub_send_sample()
50 indio_dev = sensorhub->push_data[id].indio_dev; in cros_sensorhub_send_sample()
52 if (sample->flag & MOTIONSENSE_SENSOR_FLAG_FLUSH) in cros_sensorhub_send_sample()
55 return cb(indio_dev, sample->vector, sample->timestamp); in cros_sensorhub_send_sample()
59 * cros_ec_sensorhub_register_push_data() - register the callback to the hub.
77 if (sensor_num >= sensorhub->sensor_num) in cros_ec_sensorhub_register_push_data()
[all …]
/Linux-v5.10/tools/testing/selftests/timers/
Draw_skew.c9 * $ 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()
/Linux-v5.10/drivers/iio/adc/
Dina2xx-adc.c11 * 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, &regval); in ina2xx_read_raw()
[all …]
Dqcom-spmi-adc5.c1 // SPDX-License-Identifier: GPL-2.0
21 #include <dt-bindings/iio/qcom,spmi-vadc.h>
22 #include "qcom-vadc-common.h"
74 * samples and measurements queued across different VADC peripherals.
103 * struct adc5_channel_prop - ADC channel property.
132 * struct adc5_chip - ADC private structure.
171 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read()
176 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write()
181 return regmap_update_bits(adc->regmap, adc->base + offset, mask, val); in adc5_masked_write()
194 return -EINVAL; in adc5_prescaling_from_dt()
[all …]
Dqcom-spmi-vadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
21 #include <dt-bindings/iio/qcom,spmi-vadc.h>
23 #include "qcom-vadc-common.h"
76 * struct vadc_channel_prop - VADC channel property.
99 * struct vadc_priv - VADC private structure.
139 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read()
144 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write()
203 dev_err(vadc->dev, in vadc_show_status()
222 ret = vadc_write(vadc, VADC_ADC_CH_SEL_CTL, prop->channel); in vadc_configure()
[all …]
Dab8500-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
54 /* 0 = use VTVOUT, 1 = use VRTC as pull-up supply for battery temp NTC */
63 * the bit layout is the same for SW and HW conversion set-up
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
167 #define AB8500_GPADC_IBAT_VDROP_L (-56) /* mV */
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
207 * struct ab8500_gpadc_chan_info - per-channel GPADC info
216 * @avg_sample: how many samples to average: must be 1, 4, 8 or 16.
[all …]
/Linux-v5.10/tools/perf/
Dbuiltin-kvm.c1 // 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 …]
Dbuiltin-sched.c1 // SPDX-License-Identifier: GPL-2.0
4 #include "perf-sys.h"
21 #include "util/time-utils.h"
24 #include <subcmd/parse-options.h>
25 #include "util/trace-event.h"
102 /* in tsk->exit_state */
106 /* in tsk->state again */
191 * Track the current task - that way we can know whether there's any
257 u64 dt_delay; /* time between wakeup and sched-in */
310 } while (T1 + sched->run_measurement_overhead < T0 + nsecs); in burn_nsecs()
[all …]
Dbuiltin-trace.c2 * builtin-trace.c
8 * event may be specified using --event.
18 #include <traceevent/event-parse.h>
33 #include "util/synthetic-events.h"
38 #include <subcmd/exec-cmd.h>
45 #include <subcmd/parse-options.h>
53 #include "trace-event.h"
54 #include "util/parse-events.h"
55 #include "util/bpf-loader.h"
214 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \
[all …]
/Linux-v5.10/drivers/platform/x86/
Dintel_ips.c1 // 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-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c1 // 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.
35 /* Number of delay samples for detecting the increase of delay */
54 / (BICTCP_BETA_SCALE - beta);
55 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3
56 * so K = cubic_root( (wmax-cwnd)*rtt/c )
65 * HZ < 1,000,00 (corresponding to 10 nano-second)
86 __u8 sample_cnt; /* number of samples to decide curr_rtt */
96 ca->cnt = 0; in bictcp_reset()
[all …]
/Linux-v5.10/net/ipv4/
Dtcp_cubic.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * "CUBIC: A New TCP-Friendly High-Speed TCP Variant"
41 /* Number of delay samples for detecting the increase of delay */
62 /* Note parameters that are used for precomputing scale factors are read-only */
77 " 1: packet-train 2: delay 3: both packet-train and delay");
97 u8 sample_cnt; /* number of samples to decide curr_rtt */
107 ca->cnt = 0; in bictcp_reset()
108 ca->last_max_cwnd = 0; in bictcp_reset()
109 ca->last_cwnd = 0; in bictcp_reset()
110 ca->last_time = 0; in bictcp_reset()
[all …]
Dtcp_bbr.c21 * +---> STARTUP ----+
24 * | DRAIN ----+
27 * +---> PROBE_BW ----+
30 * | +----+ |
32 * +---- PROBE_RTT <--+
37 * A long-lived BBR flow spends the vast majority of its time remaining
42 * it briefly enters PROBE_RTT to cut inflight to a minimum value to re-probe
43 * the path's two-way propagation delay (min_rtt). When exiting PROBE_RTT, if
48 * "BBR: Congestion-Based Congestion Control",
50 * Van Jacobson. ACM Queue, Vol. 14 No. 5, September-October 2016.
[all …]
/Linux-v5.10/drivers/media/platform/atmel/
Datmel-isc-base.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2019 Microchip Technology, Inc.
14 #include <linux/clk-provider.h>
25 #include <linux/atmel-isc-media.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-device.h>
29 #include <media/v4l2-event.h>
30 #include <media/v4l2-image-sizes.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/v4l2-fwnode.h>
[all …]
/Linux-v5.10/drivers/scsi/lpfc/
Dlpfc_debugfs.c4 * Copyright (C) 2017-2019 Broadcom. All Rights Reserved. The term *
6 * Copyright (C) 2007-2015 Emulex. All rights reserved. *
16 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
26 #include <linux/dma-mapping.h>
64 * # mount -t debugfs none /sys/kernel/debug
127 * lpfc_debugfs_disc_trc_data - Dump discovery logging to a buffer
161 index = (atomic_read(&vport->disc_trc_cnt) + 1) & in lpfc_debugfs_disc_trc_data()
162 (lpfc_debugfs_max_disc_trc - 1); in lpfc_debugfs_disc_trc_data()
164 dtp = vport->disc_trc + i; in lpfc_debugfs_disc_trc_data()
165 if (!dtp->fmt) in lpfc_debugfs_disc_trc_data()
[all …]
/Linux-v5.10/drivers/phy/
Dphy-xgene.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * AppliedMicro X-Gene Multi-purpose PHY driver
10 * The APM X-Gene PHY consists of two PLL clock macro's (CMU) and lanes.
19 * -----------------
20 * | Internal | |------|
21 * | Ref PLL CMU |----| | ------------- ---------
22 * ------------ ---- | MUX |-----|PHY PLL CMU|----| Serdes|
23 * | | | | ---------
24 * External Clock ------| | -------------
25 * |------|
[all …]

12