| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 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 …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | samples.py | 53 # discard incomplete samples 65 self.buffers = mem_sample.records['MemTotal'] - mem_sample.records['MemFree'] 66 …self.used = mem_sample.records['MemTotal'] - mem_sample.records['MemFree'] - mem_sample.records['B… 68 self.swap = mem_sample.records['SwapTotal'] - mem_sample.records['SwapFree'] 99 writer.info ("%d samples, avg. sample length %f" % (self.sample_count, self.sample_period)) 112 self.samples = [] 124 # split this process' run - triggered by a name change 135 … " ".join([str(self.pid), self.cmd, str(self.ppid), '[ ' + str(len(self.samples)) + ' samples ]' ]) 138 if self.samples: 139 firstSample = self.samples[0] [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/mce/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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> 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 …]
|
| /OK3568_Linux_fs/yocto/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 …]
|
| /OK3568_Linux_fs/kernel/tools/perf/Documentation/ |
| 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-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 …]
|
| /OK3568_Linux_fs/kernel/kernel/sched/ |
| H A 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 163 /* Running averages - we need to be higher-res than loadavg */ [all …]
|
| H A D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 30 * Targeted preemption latency for CPU-bound tasks: 33 * 'timeslice length' - timeslices in CFS are of variable length 34 * and have no persistent notion like in traditional, time-slice 38 * run vmstat and monitor the context-switches (cs) field) 47 * The initial- and re-scaling of tunables is configurable 51 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 52 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 53 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 60 * Minimal preemption granularity for CPU-bound tasks: [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/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 …]
|
| /OK3568_Linux_fs/kernel/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" 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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() 137 if (llabs(eppm - ppm) > 1000) { in main()
|
| /OK3568_Linux_fs/kernel/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) 143 int avg; member 187 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 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 …]
|
| H A D | qcom-spmi-vadc.c | 1 // 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 …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/ |
| H A D | ChangeLog | 2 -------------- 5 sox-11gamma, followed by a list of prior authors and features. 7 $ox-14.4.2 2015-02-22 8 ---------- 12 Deprec- Feature [O(ption)] 14 ------- ---------------------- ---------------------- 15 14.3.0 O -1/-2/-3/-4/-8 -b 16 14.3.0 O -s/-u/-f -e 17 14.3.0 O -A/-U/-o/-i/-a/-g -e 39 o Allow mixing time and sample-count arguments for the delay [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A 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 */ 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 …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | sunaudio.c | 48 * Do anything required before you start reading samples. 51 * size and encoding of samples, 57 priv_t* pPriv = (priv_t*)ft->priv; in sunstartread() 68 if (ft->filename == 0 || ft->filename[0] == 0 || !strcasecmp("default", ft->filename)) { in sunstartread() 71 szDevname = ft->filename; in sunstartread() 74 pPriv->device = open(szDevname, O_RDONLY); in sunstartread() 75 if (pPriv->device < 0) { in sunstartread() 80 if (ft->encoding.encoding == SOX_ENCODING_UNKNOWN) ft->encoding.encoding = SOX_ENCODING_ULAW; in sunstartread() 84 if (ioctl(pPriv->device, AUDIO_GETDEV, &audio_dev) < 0) { in sunstartread() 98 if (ft->encoding.bits_per_sample == 8) in sunstartread() [all …]
|
| /OK3568_Linux_fs/device/rockchip/common/tools/armhf/ |
| HD | perf-4.4 | ... _version SEC("version") = LINUX_VERSION_CODE; perf [--version] [--help] [OPTIONS ... |
| HD | perf-5.10 | ... _version SEC("version") = LINUX_VERSION_CODE; perf [--version] [--help] [OPTIONS ... |