| /linux/drivers/iio/adc/ |
| H A D | ad7380.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * ad7380/1 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7380-7381.pdf 10 * ad7383/4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-7384.pdf 11 …* ad7386/7/8 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7386-7387-738… 12 * ad7380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7380-4.pdf 13 * ad7381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf 14 …* ad7383/4-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384… 15 …* ad7386/7/8-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387… 16 * ad7389-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7389-4.pdf 17 * adaq4370-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf [all …]
|
| H A D | ad4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 109 #define AD4030_TCYC_ADJUSTED_NS (AD4030_TCYC_NS - AD4030_TCNVL_NS) 112 #define AD4632_TCYC_ADJUSTED_NS (AD4632_TCYC_NS - AD4030_TCNVL_NS) 138 const struct iio_chan_spec channels[AD4030_MAX_IIO_CHANNEL_NB]; member 141 /* Number of hardware channels */ 165 s32 diff; member 169 s32 diff[2]; member 176 * For a chip with 2 hardware channel this will be used to create 2 common-mode 177 * channels: 178 * - voltage4 [all …]
|
| H A D | ad4170-4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Analog Devices AD4170-4 ADC driver 6 * Author: Ana-Maria Cusco <ana-maria.cusco@analog.com> 17 #include <linux/clk-provider.h> 81 /* AD4170_CONFIG_A_REG - INTERFACE_CONFIG_A REGISTER */ 246 [AD4170_CHAN_SETUP_REG(0) ... AD4170_CHAN_MAP_REG(AD4170_MAX_ADC_CHANNELS - 1)] = 2, 249 * also interleaved but MISC, AFE, FILTER, FILTER_FS, OFFSET are 16-bit 250 * while OFFSET, GAIN are 24-bit registers so we can't init them all to 278 AD4170_REF_BUF_PRE, /* Pre-charge referrence buffer */ 283 /* maps adi,positive/negative-reference-buffer property values to enum */ [all …]
|
| H A D | max11410.c | 1 // SPDX-License-Identifier: GPL-2.0-only 142 struct max11410_channel_config *channels; member 175 /* This driver only needs to write 8-bit registers */ in max11410_write_reg() 177 return -EINVAL; in max11410_write_reg() 179 return regmap_write(st->regmap, reg, val); in max11410_write_reg() 188 ret = regmap_bulk_read(st->regmap, reg, &st->scan.data, 3); in max11410_read_reg() 192 *val = get_unaligned_be24(&st->scan.data); in max11410_read_reg() 196 return regmap_read(st->regmap, reg, val); in max11410_read_reg() 204 return st->avdd; in max11410_get_vrefp() 206 return st->vrefp[refsel]; in max11410_get_vrefp() [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | ti,ads1119.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com> 13 The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and 28 reset-gpios: 31 avdd-supply: true 32 dvdd-supply: true 34 vref-supply: 38 "#address-cells": [all …]
|
| H A D | adi,ad4130.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Cosmin Tanislav <cosmin.tanislav@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf 20 - adi,ad4130 29 clock-names: 31 - const: mclk 36 interrupt-names: 42 - int [all …]
|
| H A D | adi,ad4170-4.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad4170-4.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD4170-4 and similar Analog to Digital Converters 10 - Marcelo Schmitt <marcelo.schmitt@analog.com> 13 Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters. 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf [all …]
|
| H A D | microchip,mcp3564.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marius Cristea <marius.cristea@microchip.com> 13 Bindings for the Microchip family of 153.6 ksps, Low-Noise 16/24-Bit 14 Delta-Sigma ADCs with an SPI interface. Datasheet can be found here: 16 …s/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181… 18 …ds/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf 20 …ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-S… 22 …/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404… [all …]
|
| H A D | adi,max11410.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Ibrahim Tilki <Ibrahim.Tilki@analog.com> 21 - adi,max11410 30 interrupt-names: 34 - enum: [gpio0, gpio1] 35 - const: gpio1 37 '#address-cells': 40 '#size-cells': [all …]
|
| H A D | adi,ad4851.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Sergiu Cuciurean <sergiu.cuciurean@analog.com> 12 - Dragos Bogdan <dragos.bogdan@analog.com> 13 - Antoniu Miclaus <antoniu.miclaus@analog.com> 16 Analog Devices AD485X fully buffered, 8-channel simultaneous sampling, 17 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide 18 common-mode range inputs. 20 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf [all …]
|
| H A D | adi,ad7292.yaml | 1 # 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 …]
|
| /linux/sound/core/ |
| H A D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 43 delta = new_ptr - ptr; in update_silence_vars() 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am62p-verdin-ivy.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62p 8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board 11 #include <dt-bindings/mux/mux.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/net/ti-dp83867.h> 21 ain1_voltage_unmanaged: voltage-divider-ain1 { 22 compatible = "voltage-divider"; 23 #io-channel-cells = <1>; 24 io-channels = <&ivy_adc1 0>; [all …]
|
| H A D | k3-am62-verdin-ivy.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62 8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board 11 #include <dt-bindings/mux/mux.h> 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/net/ti-dp83867.h> 17 ain1_voltage_unmanaged: voltage-divider-ain1 { 18 compatible = "voltage-divider"; 19 #io-channel-cells = <1>; 20 io-channels = <&ivy_adc1 0>; [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | pcm-test.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include "alsa-local.h" 69 timestamp_t now, diff; in timestamp_diff_ms() local 71 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_ms() 72 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_ms() 73 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_ms() 75 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_ms() 76 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_ms() 78 return (diff.tv_sec * 1000) + ((diff.tv_nsec + 500000L) / 1000000L); in timestamp_diff_ms() 92 return -1; in device_from_id() [all …]
|
| /linux/Documentation/devicetree/bindings/iio/proximity/ |
| H A D | tyhx,hx9023s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Yasin Lee <yasin.lee.x@gmail.com> 29 vdd-supply: true 31 "#address-cells": 34 "#size-cells": 38 "^channel@[0-4]$": 50 - compatible 51 - reg [all …]
|
| /linux/drivers/dma/ |
| H A D | dmatest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/dma-mapping.h> 44 "Maximum number of channels to use (default: all)"); 54 "dmatest 0-memcpy 1-memset (default: 0)"); 69 "Pass -1 for infinite timeout"); 83 static int alignment = -1; 85 …M_DESC(alignment, "Custom data address alignment taken as 2^(alignment) (default: not used (-1))"); 96 * struct dmatest_params - test parameters. 102 * @max_channels: maximum number of channels to use 106 * @timeout: transfer timeout in msec, -1 for infinite timeout [all …]
|
| /linux/net/rxrpc/ |
| H A D | conn_client.c | 1 // 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" 39 atomic_inc(&bundle->active); in rxrpc_activate_bundle() 48 idr_remove(&local->conn_ids, conn->proto.cid >> RXRPC_CIDSHIFT); in rxrpc_put_client_connection_id() 59 if (!idr_is_empty(&local->conn_ids)) { in rxrpc_destroy_client_conn_ids() 60 idr_for_each_entry(&local->conn_ids, conn, id) { in rxrpc_destroy_client_conn_ids() 62 conn, refcount_read(&conn->ref)); in rxrpc_destroy_client_conn_ids() 67 idr_destroy(&local->conn_ids); in rxrpc_destroy_client_conn_ids() [all …]
|
| /linux/Documentation/devicetree/bindings/mux/ |
| H A D | adi,adg792a.txt | 4 - 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.yaml 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 …]
|
| /linux/sound/soc/fsl/ |
| H A D | lpc3xxx-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 #include "lpc3xxx-i2s.h" 42 u32 diff, trate, baseclk; in __lpc3xxx_find_clkdiv() local 44 /* Adjust rate for sample size (bits) and 2 channels and offset for in __lpc3xxx_find_clkdiv() 56 diff = ~0; in __lpc3xxx_find_clkdiv() 60 if (abs(trate - i2srate) < diff) { in __lpc3xxx_find_clkdiv() 61 diff = abs(trate - i2srate); in __lpc3xxx_find_clkdiv() 72 struct device *dev = i2s_info_p->dev; in lpc3xxx_i2s_startup() 76 guard(mutex)(&i2s_info_p->lock); in lpc3xxx_i2s_startup() 78 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in lpc3xxx_i2s_startup() [all …]
|
| /linux/drivers/leds/flash/ |
| H A D | leds-tps6131x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/led-class-flash.h> 14 #include <media/v4l2-flash-led-clas 213 u32 diff, min_diff = U32_MAX; tps6131x_find_closest_timer_config() local 536 u32 channels[TPS6131X_MAX_CHANNELS]; tps6131x_parse_node() local [all...] |
| /linux/drivers/gpu/drm/renesas/rcar-du/ |
| H A D | rcar_du_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * R-Car Display Unit CRTCs 5 * Copyright (C) 2013-2015 Renesas Electronics Corporation 36 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read() 38 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read() 43 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write() 45 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write() 50 struct rcar_du_device *rcdu = rcrtc->de in rcar_du_crtc_clr() 88 unsigned long diff; rcar_du_dpll_divider() local 168 unsigned long diff; global() member 176 unsigned long diff; rcar_du_escr_divider() local [all...] |
| /linux/sound/usb/usx2y/ |
| H A D | usbusx2y.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * usbusx2y.c - ALSA USB US-428 Driver 5 2005-04-14 Karsten Wiese 8 Tested ok with kernel 2.6.12-rc2. 10 2004-12-14 Karsten Wiese 12 …snd_pcm_open for rawusb pcm-devices now returns -EBUSY if called without rawusb's hwdep device bei… 14 2004-12-02 Karsten Wiese 18 2004-10-26 Karsten Wiese 22 2004-10-21 Karsten Wiese 26 2004-10-03 Karsten Wiese [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | amplc_pci230.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * COMEDI - Linux Control and Measurement Device Interface 35 * --------- --------- 43 * The AI subdevice has 16 single-ended channels or 8 differential 44 * channels. 46 * The PCI230 and PCI260 cards have 12-bit resolution. The PCI230+ and 47 * PCI260+ cards have 16-bit resolution. 51 * or PCI260 then it actually uses a "pseudo-differential" mode where the 62 * 0 => [-10, +10] V 63 * 1 => [-5, +5] V [all …]
|
| /linux/drivers/input/keyboard/ |
| H A D | sun4i-lradc-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * There are 2 channels, currently this driver only supports channel 0 since 62 /* struct lradc_variant - Describe sun4i-a10-lradc-keys hardware variant 111 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local 113 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq() 121 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq() 122 lradc->chan0_keycode = 0; in sun4i_lradc_irq() 125 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq() 126 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq() 127 voltage = val * lradc->vref / 63; in sun4i_lradc_irq() [all …]
|