Home
last modified time | relevance | path

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

12345678910>>...16

/linux/drivers/comedi/
H A Dcomedi_buf.c1 // SPDX-License-Identifier: GPL-2.0+
5 * COMEDI - Linux Control and Measurement Device Interface
6 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
28 if (bm->page_list) { in comedi_buf_map_kref_release()
29 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release()
30 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release()
31 buf = &bm->page_list[i]; in comedi_buf_map_kref_release()
32 dma_free_coherent(bm->dma_hw_dev, PAGE_SIZE, in comedi_buf_map_kref_release()
33 buf->virt_addr, in comedi_buf_map_kref_release()
34 buf->dma_addr); in comedi_buf_map_kref_release()
[all …]
/linux/samples/livepatch/
H A Dlivepatch-callbacks-demo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * livepatch-callbacks-demo.c - (un)patching callbacks livepatch demo
11 * -------
17 * -----
19 * Step 1 - load the simple module
21 * insmod samples/livepatch/livepatch-callbacks-mod.ko
24 * Step 2 - load the demonstration livepatch (with callbacks)
26 * insmod samples/livepatch/livepatch-callbacks-demo.ko
29 * Step 3 - cleanup
38 * NOTE: swap the insmod order of livepatch-callbacks-mod.ko and
[all …]
/linux/tools/perf/util/
H A Devents_stats.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 * The kernel discards mixed up samples and sends the number in a
18 * PERF_RECORD_LOST_SAMPLES event. The number of lost-samples events is stored
20 * exactly how many samples the kernel in fact dropped, i.e. it is the sum of
24 * The BPF program can discard samples according to the filter expressions given
27 * lost samples, per
[all...]
/linux/tools/perf/tests/shell/common/
H A 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/samples/bpf/
H A DREADME.rst4 This directory contains a test stubs, verifier test-suite and examples
7 Note that the XDP-specific samples have been removed from this directory and
8 moved to the xdp-tools repository: https://github.com/xdp-project/xdp-tools
10 convert specific command invocations between the old samples and the utilities
11 in xdp-tools.
24 command: ``llc --version``
27 -----------------------
29 It can be needed to clean tools, samples or kernel before trying new arch or
32 make -C tools clean
33 make -C samples/bpf clean
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Dmicrochip,qt1050.txt1 Microchip AT42QT1050 Five-channel Touch Sensor IC
11 - compatible: Must be "microchip,qt1050"
12 - reg: The I2C address of the device
13 - interrupts: The sink for the touchpad's IRQ output,
14 see ../interrupt-controller/interrupts.txt
17 - wakeup-source: touch keys can be used as a wakeup source
19 Each button (key) is represented as a sub-node:
25 - linux,code: Keycode to emit.
26 - reg: The key number. Valid values: 0, 1, 2, 3, 4.
28 Optional subnode-properties:
[all …]
/linux/drivers/comedi/drivers/
H A Dquatech_daqp_cs.c1 // SPDX-License-Identifier: GPL-2.0
8 * COMEDI - Linux Control and Measurement Device Interface
13 * ftp://ftp.quatech.com/Manuals/daqp-208.pdf
15 * This manual is for both the DAQP-208 and the DAQP-308.
18 * - A/D conversion
19 * - 8 channels
20 * - 4 gain ranges
21 * - ground ref or differential
22 * - single-shot and timed both supported
23 * - D/A conversion, single-shot
[all …]
/linux/tools/testing/selftests/lkdtm/
H A Dstack-entropy.sh2 # SPDX-License-Identifier: GPL-2.0
5 set -e
6 samples="${1:-1000}"
7 TRIGGER=/sys/kernel/debug/provoke-crash/DIRECT
11 if [ ! -r $TRIGGER ] ; then
12 /sbin/modprobe -q lkdtm || true
13 if [ ! -r $TRIGGER ] ; then
22 # Capture dmesg continuously since it may fill up depending on sample size.
23 log=$(mktemp -t stack-entropy-XXXXXX)
24 dmesg --follow >"$log" & pid=$!
[all …]
/linux/drivers/input/touchscreen/
H A Dmainstone-wm97xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for
16 * - codecs supported:- WM9705, WM9712, WM9713
17 * - processors supported:- Intel XScale PXA25x, PXA26x, PXA27x
31 #include <sound/pxa2xx-lib.h>
33 #include <asm/mach-types.h>
122 * to buffer up samples otherwise we end up spinning polling in wm97xx_acc_pen_down()
123 * for samples. The controller can't have a suitably low in wm97xx_acc_pen_down()
146 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down()
149 /* are samples valid */ in wm97xx_acc_pen_down()
[all …]
H A Djornada720_ts.c1 // SPDX-License-Identifier: GPL-2.0-only
36 /* 3 low word X samples */ in jornada720_ts_collect_data()
37 jornada_ts->x_data[0] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
38 jornada_ts->x_data[1] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
39 jornada_ts->x_data[2] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
41 /* 3 low word Y samples */ in jornada720_ts_collect_data()
42 jornada_ts->y_data[0] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
43 jornada_ts->y_data[1] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
44 jornada_ts->y_data[2] = jornada_ssp_byte(TXDUMMY); in jornada720_ts_collect_data()
46 /* combined x samples bits */ in jornada720_ts_collect_data()
[all …]
/linux/tools/perf/Documentation/
H A Dtips.txt1 For a higher level overview, try: perf report --sort comm,dso
2 Sample related events with: perf record -e '{cycles,instructions}:S'
4 Boolean options have negative forms, e.g.: perf report --no-children
5 To not accumulate CPU time of children symbols add --no-children
6 Customize output of perf script with: perf script -
[all...]
H A Dperf-arm-spe.txt1 perf-arm-spe(1)
5 ----
6 perf-arm-spe - Support for Arm Statistical Profiling Extension within Perf tools
9 --------
11 'perf record' -e arm_spe//
14 -----------
17 events down to individual instructions. Rather than being interrupt-driven, it picks an
33 architectural instructions or all micro-ops. Sampling happens at a programmable interval. The
35 sample. This minimum interval is used by the driver if no interval is specified. A pseudo-random
62 ----------------
[all …]
H A Dexamples.txt2 ------------------------------
4 ------------------------------
6 [ From an e-mail by Ingo Molnar, https://lore.kernel.org/lkml/20090804195717.GA5998@elte.hu ]
31 titan:~> perf stat -e kmem:mm_page_pcpu_drain -e kmem:mm_page_alloc
32 -e kmem:mm_page_free_batched -e kmem:mm_page_free ./hackbench 10
47 titan:~> perf stat --repeat 5 -e kmem:mm_page_pcpu_drain -e
48 kmem:mm_page_alloc -e kmem:mm_page_free_batched -e
58 12920 kmem:mm_page_pcpu_drain ( +- 3.359% )
59 25035 kmem:mm_page_alloc ( +- 3.783% )
60 6104 kmem:mm_page_free_batched ( +- 0.934% )
[all …]
/linux/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
32 31 [30-28]27 [26:24] 23 22 21 20 [19:18] [17:16] 15 14 13 12 11 10 9 8 7 6 [5:0]
35 |H|_____ |H|_________|S_|D |__|__|______|_______|___|ne|__ |__ |__|__|_|_|_|_|_Count -1|
44 u32 npaw; /* Next-Page Address Word */
48 31-30 29 28 [27:16] [15:12] [11:3] [2:0]
50 |SV |LE|SE| Sample-end byte offset | | Page-map entry offset for next | |
51 |page|__|__| ___________________________|_________|__page, if !sample-end___________|____|
53 u32 npcw; /* Next-Page Control Word */
54 u32 lbaw; /* Loop-Begin Address Word */
55 u32 nplbaw; /* Next-Page after Loop-Begin Address Word */
[all …]
/linux/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 (((_val) * (1000 - (_jitter))) / 1000)
27 acc->values[acc->idx++] = val; in inv_update_acc()
28 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc()
29 acc->idx = 0; in inv_update_acc()
32 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc()
33 if (acc->values[i] == 0) in inv_update_acc()
35 sum += acc->values[i]; in inv_update_acc()
38 acc->val = div_u64(sum, i); in inv_update_acc()
47 ts->chip = *chip; in inv_sensors_timestamp_init()
[all …]
/linux/Documentation/hwmon/
H A Dina3221.rst10 Addresses: I2C 0x40 - 0x43
19 -----------
22 side of up to three D.C. power supplies. The INA3221 monitors both shunt drop
24 and power are calculated host-side from these.
27 -------------
56 samples Number of samples using in the averaging mode.
58 Supports the list of number of samples:
67 * S: number of samples
68 * BC: bus-voltage conversion time in millisecond
69 * SC: shunt-voltage conversion time in millisecond
[all …]
/linux/sound/soc/codecs/
H A Des8311.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8311.c -- es8311 ALSA SoC audio driver
38 static const DECLARE_TLV_DB_SCALE(es8311_adc_vol_tlv, -9550, 50, 0);
68 0, 1, TLV_DB_SCALE_ITEM(-3010, 600, 0),
69 2, 3, TLV_DB_SCALE_ITEM(-2060, 250, 0),
70 4, 5, TLV_DB_SCALE_ITEM(-1610, 160, 0),
71 6, 7, TLV_DB_SCALE_ITEM(-1320, 120, 0),
72 8, 9, TLV_DB_SCALE_ITEM(-1100, 90, 0),
73 10, 11, TLV_DB_SCALE_ITEM(-930, 80, 0),
74 12, 15, TLV_DB_SCALE_ITEM(-780, 60, 0),
[all …]
/linux/kernel/time/
H A Dposix-cpu-timers.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/posix-timers.h>
20 #include "posix-timers.h"
28 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init()
29 pct->timers_active = true; in posix_cputimers_group_init()
35 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if
39 * Returns 0 on success, -ESRCH on failure. Can fail if the task is exiting and
48 return -ESRCH; in update_rlimit_cpu()
102 ret = pid_for_clock(clock, false) ? 0 : -EINVAL; in validate_clock_permissions()
115 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu()
[all …]
/linux/tools/testing/selftests/ftrace/
H A DREADME39 minimal cross-build environments.
41 * Note that the tests are run with "set -e" (errexit) option. If any
61 or the test was set up incorrectly
73 There are some sample test scripts for result code under samples/.
74 You can also run samples as below:
76 # ./ftracetest samples/
/linux/net/ipv4/
H A Dtcp_vegas.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * IEEE Journal on Selected Areas in Communication, 13(8):1465--1480,
17 * using fine-grained timers, NewReno, and FACK.
19 * only every-other RTT during slow start, we increase during
29 * o When the sender re-starts from idle, it waits until it has
55 /* There are several situations when we must "re-start" Vegas:
65 * stale info -- both the saved cwnd and congestion feedback are
76 /* Begin taking Vegas samples next time we send something. */ in vegas_enable()
77 vegas->doing_vegas_now = 1; in vegas_enable()
80 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable()
[all …]
/linux/Documentation/sound/cards/
H A Dsb-live-mixer.rst19 (index 0) for a given card) allows to forward 48kHz, stereo, 16-bit
21 (coaxial or optical). The universal interface allows the creation of up
22 to 8 raw PCM devices operating at 48kHz, 16-bit little endian. It would
24 but the conversion routines exist only for stereo (2-channel streams)
34 functionality. Only the default built-in code in the ALSA driver is described
48 one-way three wire serial bus for digital sound by Philips Semiconductors
56 FX-bus
63 ---------------------------------------
64 This control is used to attenuate samples from left and right PCM FX-bus
65 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
[all …]
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_trigger.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2012-2013 STMicroelectronics Inc.
19 * st_sensors_new_samples_available() - check if more samples came in
24 * false - no new samples available or read error
25 * true - new samples available
33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
37 if (!indio_dev->active_scan_mask) in st_sensors_new_samples_available()
40 ret = regmap_read(sdata->regmap, in st_sensors_new_samples_available()
41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()
44 dev_err(indio_dev->dev.parent, in st_sensors_new_samples_available()
[all …]
/linux/tools/perf/arch/x86/tests/
H A Damd-ibs-period.c1 // SPDX-License-Identifier: GPL-2.0
9 #include "arch-tests.h"
13 #include "../perf-sys.h"
25 #define PERF_MMAP_DATA_MASK (PERF_MMAP_DATA_SIZE - 1)
45 /* Dummy workload to generate IBS samples. */
69 func = (void *)((unsigned long)(p + page_size - 1) & ~(page_size - 1)); in dummy_workload_1()
81 while (count--) { in dummy_workload_1()
85 ret = -1; in dummy_workload_1()
91 ret = -1; in dummy_workload_1()
101 /* Another dummy workload to generate IBS samples. */
[all …]
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * cros_ec_sensors_core - Common function for Chrome OS EC sensor driver.
42 buf->command = EC_CMD_GET_CMD_VERSIONS + cmd_offset; in cros_ec_get_host_cmd_version_mask()
43 buf->insize = sizeof(struct ec_response_get_cmd_versions); in cros_ec_get_host_cmd_version_mask()
44 buf->outsize = sizeof(struct ec_params_get_cmd_versions); in cros_ec_get_host_cmd_version_mask()
45 ((struct ec_params_get_cmd_versions *)buf->data)->cmd = cmd; in cros_ec_get_host_cmd_version_mask()
49 *mask = ((struct ec_response_get_cmd_versions *)buf->data)->version_mask; in cros_ec_get_host_cmd_version_mask()
110 mutex_lock(&st->cmd_lock); in cros_ec_sensor_set_report_latency()
111 st->param.cmd = MOTIONSENSE_CMD_EC_RATE; in cros_ec_sensor_set_report_latency()
112 st->param.ec_rate.data = min(U16_MAX, latency); in cros_ec_sensor_set_report_latency()
[all …]
/linux/tools/tracing/rtla/src/
H A Dosnoise_hist.c1 // SPDX-License-Identifier: GPL-2.0
19 int *samples; member
37 * osnoise_free_histogram - free runtime data
45 for (cpu = 0; cpu < data->nr_cpus; cpu++) { in osnoise_free_histogram()
46 if (data->hist[cpu].samples) in osnoise_free_histogram()
47 free(data->hist[cpu].samples); in osnoise_free_histogram()
51 if (data->hist) in osnoise_free_histogram()
52 free(data->hist); in osnoise_free_histogram()
59 osnoise_free_histogram(tool->data); in osnoise_free_hist_tool()
63 * osnoise_alloc_histogram - alloc runtime data
[all …]

12345678910>>...16