Home
last modified time | relevance | path

Searched +full:diff +full:- +full:channels (Results 1 – 25 of 143) sorted by relevance

123456

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7124.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Stefan Popa <stefan.popa@analog.com>
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf
21 - adi,ad7124-4
22 - adi,ad7124-8
32 clock-names:
34 - const: mclk
40 '#address-cells':
[all …]
Dadc.txt4 - bipolar : Boolean, if set the channel is used in bipolar mode.
5 - diff-channels : Differential channels muxed for this ADC. The first value
15 diff-channels = <0 1>;
20 diff-channels = <2 3>;
Dst,stm32-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: "http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
10 STM32 ADC is a successive approximation analog-to-digital converter.
11 It has several multiplexed input channels. Conversions can be performed
13 stored in a left-aligned or right-aligned 32-bit data register.
17 voltage goes beyond the user-defined, higher or lower thresholds.
22 - Fabrice Gasnier <fabrice.gasnier@st.com>
27 - st,stm32f4-adc-core
[all …]
Dadi,ad7292.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7292 10-Bit Monitor and Control System
10 - Marcelo Schmitt <marcelo.schmitt1@gmail.com>
13 Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs,
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
22 - adi,ad7292
27 vref-supply:
31 spi-cpha: true
[all …]
/kernel/linux/linux-5.10/include/linux/iio/
Devents.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* The industrial I/O - event passing to userspace
4 * Copyright (c) 2008-2011 Jonathan Cameron
13 * IIO_EVENT_CODE() - create event identifier
15 * @diff: Whether the event is for an differential channel or not.
19 * @chan: Channel number for non-differential channels.
20 * @chan1: First channel number for differential channels.
21 * @chan2: Second channel number for differential channels.
24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument
26 (((u64)type << 56) | ((u64)diff << 55) | \
[all …]
/kernel/linux/linux-4.19/include/linux/iio/
Devents.h1 /* The industrial I/O - event passing to userspace
3 * Copyright (c) 2008-2011 Jonathan Cameron
16 * IIO_EVENT_CODE() - create event identifier
18 * @diff: Whether the event is for an differential channel or not.
22 * @chan: Channel number for non-differential channels.
23 * @chan1: First channel number for differential channels.
24 * @chan2: Second channel number for differential channels.
27 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument
29 (((u64)type << 56) | ((u64)diff << 55) | \
36 * IIO_MOD_EVENT_CODE() - create event identifier for modified channels
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/adc/
Dst,stm32-adc.txt3 STM32 ADC is a successive approximation analog-to-digital converter.
4 It has several multiplexed input channels. Conversions can be performed
6 stored in a left-aligned or right-aligned 32-bit data register.
10 voltage goes beyond the user-defined, higher or lower thresholds.
16 - regular conversion can be done in sequence, running in background
17 - injected conversions have higher priority, and so have the ability to
22 -----------------------------------
24 - compatible: Should be one of:
25 "st,stm32f4-adc-core"
26 "st,stm32h7-adc-core"
[all …]
/kernel/linux/linux-4.19/drivers/iio/adc/
Dstm32-adc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
11 #include <linux/dma-mapping.h>
15 #include <linux/iio/timer/stm32-lptim-trigger.h>
16 #include <linux/iio/timer/stm32-timer-trigger.h>
28 #include "stm32-adc-core.h"
36 #define STM32_ADC_CH_MAX 20 /* max number of channels */
53 /* extsel - trigger mux selection value */
79 * struct stm32_adc_trig_info - ADC trigger info
89 * struct stm32_adc_calib - optional adc calibration data
[all …]
Dstx104.c35 #define STX104_IN_CHAN(chan, diff) { \ argument
43 .differential = diff \
56 * struct stx104_iio - IIO device private data structure
57 * @chan_out_states: channels' output states
66 * struct stx104_gpio - GPIO device private data structure
90 adc_config = inb(priv->base + 11); in stx104_read_raw()
96 if (chan->output) { in stx104_read_raw()
97 *val = priv->chan_out_states[chan->channel]; in stx104_read_raw()
102 outb(chan->channel | (chan->channel << 4), priv->base + 2); in stx104_read_raw()
105 outb(0, priv->base); in stx104_read_raw()
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_lib.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Abramo Bagnara <abramo@alsa-project.org>
38 * runtime->silence_start: starting pointer to silence area
39 * runtime->silence_filled: size filled with silence
40 * runtime->silence_threshold: threshold from application
41 * runtime->silence_size: maximal size from application
43 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately
47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence()
51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
53 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence()
[all …]
/kernel/linux/linux-4.19/sound/core/
Dpcm_lib.c4 * Abramo Bagnara <abramo@alsa-project.org>
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
53 * runtime->silence_start: starting pointer to silence area
54 * runtime->silence_filled: size filled with silence
55 * runtime->silence_threshold: threshold from application
56 * runtime->silence_size: maximal size from application
58 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately
62 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence()
66 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence()
68 snd_pcm_uframes_t appl_ptr = READ_ONCE(runtime->control->appl_ptr); in snd_pcm_playback_silence()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dstm32-adc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
11 #include <linux/dma-mapping.h>
15 #include <linux/iio/timer/stm32-lptim-trigger.h>
16 #include <linux/iio/timer/stm32-timer-trigger.h>
29 #include "stm32-adc-core.h"
37 #define STM32_ADC_CH_MAX 20 /* max number of channels */
55 /* extsel - trigger mux selection value */
81 * struct stm32_adc_trig_info - ADC trigger info
91 * struct stm32_adc_calib - optional adc calibration data
[all …]
Dstx104.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #define STX104_IN_CHAN(chan, diff) { \ argument
35 .differential = diff \
48 * struct stx104_iio - IIO device private data structure
49 * @chan_out_states: channels' output states
58 * struct stx104_gpio - GPIO device private data structure
82 adc_config = inb(priv->base + 11); in stx104_read_raw()
88 if (chan->output) { in stx104_read_raw()
89 *val = priv->chan_out_states[chan->channel]; in stx104_read_raw()
94 outb(chan->channel | (chan->channel << 4), priv->base + 2); in stx104_read_raw()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com
30 "avdd", /* Analog power supply. Connect to 3.3-V supply. */
31 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
32 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */
45 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
49 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
55 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
58 PCM186X_PGA_VAL_CH2_R, 0, -24, 80, 7, 0,
85 "{VIN1P, VIN1M}[DIFF]",
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dpcm186x.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com
30 "avdd", /* Analog power supply. Connect to 3.3-V supply. */
31 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */
32 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */
45 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
49 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
55 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0,
58 PCM186X_PGA_VAL_CH2_R, 0, -24, 80, 7, 0,
85 "{VIN1P, VIN1M}[DIFF]",
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Ddmatest.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
41 "Maximum number of channels to use (default: all)");
51 "dmatest 0-memcpy 1-memset (default: 0)");
66 "Pass -1 for infinite timeout");
80 static int alignment = -1;
82 …M_DESC(alignment, "Custom data address alignment taken as 2^(alignment) (default: not used (-1))");
93 * struct dmatest_params - test parameters.
98 * @max_channels: maximum number of channels to use
102 * @timeout: transfer timeout in msec, -1 for infinite timeout
[all …]
/kernel/linux/linux-4.19/drivers/dma/
Ddmatest.c14 #include <linux/dma-mapping.h>
48 "Maximum number of channels to use (default: all)");
58 "dmatest 0-memcpy 1-memset (default: 0)");
73 "Pass -1 for infinite timeout");
88 * struct dmatest_params - test parameters.
93 * @max_channels: maximum number of channels to use
97 * @timeout: transfer timeout in msec, -1 for infinite timeout
114 * struct dmatest_info - test information.
123 struct list_head channels; member
128 .channels = LIST_HEAD_INIT(test_info.channels),
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mux/
Dadi,adg792a.txt4 - compatible : "adi,adg792a" or "adi,adg792g"
5 - #mux-control-cells : <0> if parallel (the three muxes are bound together
8 * Standard mux-controller bindings as described in mux-controller.txt
11 - gpio-controller : if present, #gpio-cells below is required.
12 - #gpio-cells : should be <2>
13 - First cell is the GPO line number, i.e. 0 or 1
14 - Second cell is used to specify active high (0)
18 - idle-state : if present, array of states that the mux controllers will have
32 mux: mux-controller@50 {
35 #mux-control-cells = <1>;
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/mux/
Dadi,adg792a.txt4 - compatible : "adi,adg792a" or "adi,adg792g"
5 - #mux-control-cells : <0> if parallel (the three muxes are bound together
8 * Standard mux-controller bindings as described in mux-controller.txt
11 - gpio-controller : if present, #gpio-cells below is required.
12 - #gpio-cells : should be <2>
13 - First cell is the GPO line number, i.e. 0 or 1
14 - Second cell is used to specify active high (0)
18 - idle-state : if present, array of states that the mux controllers will have
32 mux: mux-controller@50 {
35 #mux-control-cells = <1>;
[all …]
/kernel/linux/linux-4.19/net/rxrpc/
Dconn_client.c1 /* Client connection-specific management code.
18 * (1) INACTIVE - The connection is not held in any list and may not have been
22 * (2) WAITING - The connection is waiting for the number of client conns to
27 * in to-be-granted order. Culled conns with waiters go to the back of
30 * (3) ACTIVE - The connection has at least one call in progress upon it, it
31 * may freely grant available channels to new calls and calls may be
32 * waiting on it for channels to become available.
34 * The connection is on the rxnet->active_client_conns list which is kept
39 * (4) UPGRADE - As for ACTIVE, but only one call may be in progress and is
42 * (5) CULLED - The connection got summarily culled to try and free up
[all …]
/kernel/linux/linux-4.19/sound/drivers/
Daloop.c7 * More accurate positioning and full-duplex support:
8 * Copyright (c) Ahmet İnan <ainan at mathematik.uni-freiburg.de>
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
53 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
55 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
56 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8};
66 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-8) for loopback driver.");
68 MODULE_PARM_DESC(pcm_notify, "Break capture when PCM format/rate/channels changes.");
89 unsigned int channels; member
114 unsigned int pcm_salign; /* bytes per sample * channels */
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Dconn_client.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Client connection-specific management code.
13 * (2) DONT_REUSE - The connection should be discarded as soon as possible and
31 #include "ar-internal.h"
38 * We use machine-unique IDs for our client connections.
52 struct rxrpc_net *rxnet = conn->params.local->rxnet; in rxrpc_get_client_connection_id()
68 conn->proto.epoch = rxnet->epoch; in rxrpc_get_client_connection_id()
69 conn->proto.cid = id << RXRPC_CIDSHIFT; in rxrpc_get_client_connection_id()
70 set_bit(RXRPC_CONN_HAS_IDR, &conn->flags); in rxrpc_get_client_connection_id()
71 _leave(" [CID %x]", conn->proto.cid); in rxrpc_get_client_connection_id()
[all …]
/kernel/linux/linux-4.19/drivers/iio/imu/
Dadis16480.c104 ADIS16480_REG((page) + 1, (x) - 60 + 8))
112 const struct iio_chan_spec *channels; member
130 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_revision()
136 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_REV, &rev); in adis16480_show_firmware_revision()
155 struct adis16480 *adis16480 = file->private_data; in adis16480_show_firmware_date()
161 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_Y, &year); in adis16480_show_firmware_date()
165 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_DM, &md); in adis16480_show_firmware_date()
169 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", in adis16480_show_firmware_date()
188 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_SERIAL_NUM, in adis16480_show_serial_number()
206 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_PROD_ID, in adis16480_show_product_id()
[all …]
/kernel/linux/linux-4.19/drivers/input/keyboard/
Dsun4i-lradc-keys.c22 * There are 2 channels, currently this driver only supports channel 0 since
85 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local
87 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq()
95 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq()
96 lradc->chan0_keycode = 0; in sun4i_lradc_irq()
99 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq()
100 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq()
101 voltage = val * lradc->vref / 63; in sun4i_lradc_irq()
103 for (i = 0; i < lradc->chan0_map_count; i++) { in sun4i_lradc_irq()
104 diff = abs(lradc->chan0_map[i].voltage - voltage); in sun4i_lradc_irq()
[all …]
/kernel/linux/linux-5.10/sound/pci/pcxhr/
Dpcxhr_mix22.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 #define PCXHR_INPB(mgr, x) inb((mgr)->port[PCXHR_DSP] + (x))
37 #define PCXHR_OUTPB(mgr, x, data) outb((data), (mgr)->port[PCXHR_DSP] + (x))
72 /* values for PCHR_XLX_STATUS register - READ */
78 /* values for PCHR_XLX_STATUS register - WRITE */
96 /* values for PCXHR_XLX_SELMIC register - WRITE */
103 0x00, /* [000] -49.5 dB: AKM[000] = -1.#INF dB (mute) */
104 0x01, /* [001] -49.0 dB: AKM[001] = -48.131 dB (diff=0.86920 dB) */
105 0x01, /* [002] -48.5 dB: AKM[001] = -48.131 dB (diff=0.36920 dB) */
106 0x01, /* [003] -48.0 dB: AKM[001] = -48.131 dB (diff=0.13080 dB) */
[all …]

123456