/Linux-v5.15/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 …]
|
/Linux-v5.15/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" 61 * struct ab8500_fg_interrupts - ab8500 fg interrupts 107 int avg; member 108 int samples[NBR_AVG_SAMPLES]; member 156 * struct ab8500_fg - ab8500 FG device information [all …]
|
/Linux-v5.15/drivers/thermal/intel/ |
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 …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/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> 13 const: qcom,spmi-adc-tm5 21 "#thermal-sensor-cells": 27 "#address-cells": 30 "#size-cells": 33 qcom,avg-samples: [all …]
|
/Linux-v5.15/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 …]
|
D | perf-script-python.txt | 1 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.15/kernel/sched/ |
D | psi.c | 33 * In the FULL state of a given resource, all non-idle tasks are 38 * system level, but exist at the cgroup level, means all non-idle tasks 57 * unrealized due to resource contention *also* scales with non-idle 76 * we have to base our calculation on the number of non-idle tasks in 84 * FULL = (threads - min(nr_running_tasks, threads)) / threads 90 * FULL = (256 - min(257, 256)) / 256 = 0% 92 * For the 1 out of 4 memory-delayed tasks, this yields: 96 * FULL = (4 - min(3, 4)) / 4 = 25% 99 * extension of the single-CPU model. ] 129 * cost-wise, yet way more sensitive and accurate than periodic [all …]
|
D | fair.c | 1 // 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.15/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 …]
|
/Linux-v5.15/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 …]
|
/Linux-v5.15/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()
|
/Linux-v5.15/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 …]
|
D | builtin-sched.c | 1 // 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 …]
|
/Linux-v5.15/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 …]
|
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 …]
|
D | qcom-spmi-vadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 10 #include <linux/iio/adc/qcom-vadc-common.h> 22 #include <dt-bindings/iio/qcom,spmi-vadc.h> 75 * struct vadc_channel_prop - VADC channel property. 98 * struct vadc_priv - VADC private structure. 138 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read() 143 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write() 202 dev_err(vadc->dev, in vadc_show_status() 221 ret = vadc_write(vadc, VADC_ADC_CH_SEL_CTL, prop->channel); in vadc_configure() [all …]
|
D | ab8500-gpadc.c | 1 // 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.15/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 …]
|
/Linux-v5.15/drivers/thermal/qcom/ |
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. 9 #include <linux/iio/adc/qcom-vadc-common.h> 96 * struct adc_tm5_channel - ADC Thermal Monitoring channel data. 119 * struct adc_tm5_chip - ADC Thermal Monitoring properties 151 return regmap_bulk_read(adc_tm->regmap, adc_tm->base + offset, data, len); in adc_tm5_read() 156 return regmap_bulk_write(adc_tm->regmap, adc_tm->base + offset, data, len); in adc_tm5_write() 161 return regmap_write_bits(adc_tm->regmap, adc_tm->base + offset, mask, val); in adc_tm5_reg_update() 172 dev_err(chip->dev, "read status low failed: %d\n", ret); in adc_tm5_isr() 178 dev_err(chip->dev, "read status high failed: %d\n", ret); in adc_tm5_isr() [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | bpf_cubic.c | 1 // 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.15/net/ipv4/ |
D | tcp_cubic.c | 1 // 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 */ 108 ca->found = 0; in bictcp_reset() 113 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us() 121 ca->round_start = ca->last_ack = bictcp_clock_us(sk); in bictcp_hystart_reset() 122 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset() [all …]
|
D | tcp_bbr.c | 21 * +---> 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.15/drivers/media/platform/atmel/ |
D | atmel-isc-base.c | 1 // 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.15/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 4 * Copyright (C) 2017-2021 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 …]
|