Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v6.1/samples/livepatch/
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 …]
Dlivepatch-shadow-mod.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * livepatch-shadow-mod.c - Shadow variables, buggy module demo
10 * -------
14 * livepatch-shadow-fix1.ko and livepatch-shadow-fix2.ko correct and
17 * WARNING - even though the livepatch-shadow-fix modules patch the
18 * memory leak, please load these modules at your own risk -- some
23 * -----
25 * Step 1 - Load the buggy demonstration module:
27 * insmod samples/livepatch/livepatch-shadow-mod.ko
34 * Step 2 - Load livepatch fix1:
[all …]
/Linux-v6.1/drivers/comedi/
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()
34 buf = &bm->page_list[0]; in comedi_buf_map_kref_release()
35 dma_free_coherent(bm->dma_hw_dev, in comedi_buf_map_kref_release()
36 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release()
37 buf->virt_addr, buf->dma_addr); in comedi_buf_map_kref_release()
39 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release()
[all …]
/Linux-v6.1/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_timestamp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 /* allow a jitter of +/- 2% */
19 (((_p) * (100 - INV_ICM42600_TIMESTAMP_JITTER)) / 100)
29 acc->values[acc->idx++] = val; in inv_update_acc()
30 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc()
31 acc->idx = 0; in inv_update_acc()
34 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc()
35 if (acc->values[i] == 0) in inv_update_acc()
37 sum += acc->values[i]; in inv_update_acc()
40 acc->val = div_u64(sum, i); in inv_update_acc()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/input/
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-v6.1/tools/testing/selftests/lkdtm/
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-v6.1/drivers/comedi/drivers/
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-v6.1/drivers/input/touchscreen/
Dfsl-imx25-tcq.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de>
14 #include <linux/mfd/imx25-tsadc.h>
20 static const char mx25_tcq_name[] = "mx25-tcq";
50 { .compatible = "fsl,imx25-tcq", },
103 regmap_write(priv->core_regs, MX25_TSC_TICR, precharge_cfg); in imx25_setup_queue_cfgs()
106 regmap_write(priv->regs, MX25_ADCQ_CFG(MX25_CFG_PRECHARGE), in imx25_setup_queue_cfgs()
110 regmap_write(priv->regs, MX25_ADCQ_CFG(MX25_CFG_TOUCH_DETECT), in imx25_setup_queue_cfgs()
114 regmap_write(priv->regs, MX25_ADCQ_CFG(MX25_CFG_X_MEASUREMENT), in imx25_setup_queue_cfgs()
121 MX25_ADCQ_CFG_NOS(priv->sample_count) | in imx25_setup_queue_cfgs()
[all …]
Dzylonite-wm97xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * zylonite-wm97xx.c -- Zylonite Continuous Touch screen driver
27 #include <sound/pxa2xx-lib.h>
92 * to buffer up samples otherwise we end up spinning polling in wm97xx_acc_pen_down()
93 * for samples. The controller can't have a suitably low in wm97xx_acc_pen_down()
116 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down()
119 /* are samples valid */ in wm97xx_acc_pen_down()
123 goto up; in wm97xx_acc_pen_down()
127 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down()
128 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down()
[all …]
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 …]
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-v6.1/drivers/iio/pressure/
Dzpa2326.c1 // SPDX-License-Identifier: GPL-2.0-only
30 * process continuously pushing samples into an internal hardware FIFO (for
31 * pressure samples only). Measurement cycle completion may be signaled by a
34 * - get device out of low power mode,
35 * - setup hardware sampling period,
36 * - at end of period, upon data ready interrupt: pop pressure samples out of
38 * - when no longer needed, stop sampling process by putting device into
51 * hardware samples averaging.
70 /* 200 ms should be enough for the longest conversion time in one-shot mode. */
78 * struct zpa2326_frequency - Hardware sampling frequency descriptor
[all …]
/Linux-v6.1/tools/perf/util/
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
23 * The total_period is needed because by default auto-freq is used, so
/Linux-v6.1/kernel/time/
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-v6.1/tools/perf/Documentation/
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 …]
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 …]
Dperf.data-directory-format.txt8 This document describes the on-disk perf.data directory format.
20 - there is a single perf.data file named 'data' within the directory.
23 $ tree -ps perf.data
25 └── [-rw------- 25912] data
31 the --kcore option which puts a copy of /proc/kcore into the directory.
34 $ sudo perf record --kcore uname
36 [ perf record: Woken up 1 times to write data ]
37 [ perf record: Captured and wrote 0.015 MB perf.data (9 samples) ]
38 $ sudo tree -ps perf.data
40 ├── [-rw------- 23744] data
[all …]
/Linux-v6.1/sound/pci/cs46xx/
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-v6.1/Documentation/hwmon/
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-v6.1/tools/testing/selftests/ftrace/
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-v6.1/net/ipv4/
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-v6.1/Documentation/sound/cards/
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 build-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 for left and right PCM FX-bus
65 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
[all …]
/Linux-v6.1/drivers/iio/common/st_sensors/
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-v6.1/drivers/gpu/drm/amd/display/dc/dce/
Ddce_audio.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
35 aud->base.ctx
40 (aud->regs->reg)
44 aud->shifts->field_name, aud->masks->field_name
99 for (index = 0; index < audio_info->mode_count; index++) { in is_audio_format_supported()
100 if (audio_info->modes[index].format_code == audio_format_code) { in is_audio_format_supported()
104 if (audio_info->modes[index].channel_count > in is_audio_format_supported()
105 audio_info->modes[max_channe_index].channel_count) { in is_audio_format_supported()
129 uint32_t samples; in check_audio_bandwidth_hdmi() local
142 if ((crtc_info->requested_pixel_clock_100Hz <= 270000) && in check_audio_bandwidth_hdmi()
[all …]
/Linux-v6.1/sound/soc/sh/
Drz-ssi.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver
74 #define SSI_RATES SNDRV_PCM_RATE_8000_48000 /* 8k-44.1kHz */
116 * The SSI supports full-duplex transmission and reception.
119 * So it is better to use as half-duplex (playing and recording
139 writel(data, (priv->base + reg)); in rz_ssi_reg_writel()
144 return readl(priv->base + reg); in rz_ssi_reg_readl()
152 val = readl(priv->base + reg); in rz_ssi_reg_mask_setl()
154 writel(val, (priv->base + reg)); in rz_ssi_reg_mask_setl()
168 return substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in rz_ssi_stream_is_play()
[all …]

12345678910>>...18