| /kernel/linux/linux-5.10/include/linux/iio/adc/ |
| D | ad_sigma_delta.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Support code for Analog Devices Sigma-Delta ADCs 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 19 * struct ad_sigma_delta_calib_data - Calibration data for Sigma Delta devices 32 * struct ad_sigma_delta_info - Sigma Delta driver specific callbacks and options 38 * if there is just one read-only sample data shift register. 57 * struct ad_sigma_delta - Sigma Delta device struct 58 * @spi: The spi device associated with the Sigma Delta device. 59 * @trig: The IIO trigger associated with the Sigma Delta device. 61 * Most of the fields are private to the sigma delta library code and should not [all …]
|
| /kernel/linux/linux-4.19/include/linux/iio/adc/ |
| D | ad_sigma_delta.h | 2 * Support code for Analog Devices Sigma-Delta ADCs 5 * Author: Lars-Peter Clausen <lars@metafoo.de> 7 * Licensed under the GPL-2. 20 * struct ad_sigma_delta_calib_data - Calibration data for Sigma Delta devices 33 * struct ad_sigma_delta_info - Sigma Delta driver specific callbacks and options 39 * if there is just one read-only sample data shift register. 53 * struct ad_sigma_delta - Sigma Delta device struct 54 * @spi: The spi device associated with the Sigma Delta device. 55 * @trig: The IIO trigger associated with the Sigma Delta device. 57 * Most of the fields are private to the sigma delta library code and should not [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/adc/ |
| D | st,stm32-dfsdm-adc.txt | 4 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 5 interface external sigma delta modulators to STM32 micro controllers. 7 - Sigma delta modulators (motor control, metering...) 8 - PDM microphones (audio digital microphone) 16 ------------------------------------ 18 - compatible: Should be one of: 19 "st,stm32h7-dfsdm" 20 "st,stm32mp1-dfsdm" 21 - reg: Offset and length of the DFSDM block register set. 22 - clocks: IP and serial interfaces clocking. Should be set according [all …]
|
| D | sigma-delta-modulator.txt | 1 Device-Tree bindings for sigma delta modulator 4 - compatible: should be "ads1201", "sd-modulator". "sd-modulator" can be use 6 - #io-channel-cells = <0>: See the IIO bindings section "IIO consumers". 11 compatible = "sd-modulator"; 12 #io-channel-cells = <0>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Fabrice Gasnier <fabrice.gasnier@st.com> 11 - Olivier Moysan <olivier.moysan@st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 15 interface external sigma delta modulators to STM32 micro controllers. 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) [all …]
|
| D | sigma-delta-modulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Device-Tree bindings for sigma delta modulator 10 - Arnaud Pouliquen <arnaud.pouliquen@st.com> 15 "sd-modulator" can be used as a generic SD modulator, 18 - sd-modulator 19 - ads1201 21 '#io-channel-cells': [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | ad_sigma_delta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support code for Analog Devices Sigma-Delta ADCs 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 34 * ad_sd_set_comm() - Set communications register 36 * @sigma_delta: The sigma delta device 43 sigma_delta->comm = comm & AD_SD_COMM_CHAN_MASK; in ad_sd_set_comm() 48 * ad_sd_write_reg() - Write a register 50 * @sigma_delta: The sigma delta device 52 * @size: Size of the register (0-3) 60 uint8_t *data = sigma_delta->tx_buf; in ad_sd_write_reg() [all …]
|
| D | sd_adc_modulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic sigma delta modulator driver 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 29 struct device *dev = &pdev->dev; in iio_sd_mod_probe() 34 return -ENOMEM; in iio_sd_mod_probe() 36 iio->name = dev_name(dev); in iio_sd_mod_probe() 37 iio->info = &iio_sd_mod_iio_info; in iio_sd_mod_probe() 38 iio->modes = INDIO_BUFFER_HARDWARE; in iio_sd_mod_probe() 40 iio->num_channels = 1; in iio_sd_mod_probe() 41 iio->channels = &iio_sd_mod_ch; in iio_sd_mod_probe() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 bool "ST-Ericsson AB8500 GPADC driver" 29 Say yes here to build support for Analog Devices AD7091R-5 ADC. 32 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver" 36 Say yes here to build support for Analog Devices AD7124-4 and AD7124-8 100 tristate "Analog Devices AD7476 1-channel ADCs driver and other similar devices from AD an TI" 126 ad7605-4, ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC). 137 ad7605-4, ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC). 148 Say yes here to build support for Analog Devices AD7766, AD7766-1, 149 AD7766-2, AD7767, AD7767-1, AD7767-2 SPI analog to digital converters. [all …]
|
| /kernel/linux/linux-4.19/drivers/iio/adc/ |
| D | ad_sigma_delta.c | 2 * Support code for Analog Devices Sigma-Delta ADCs 5 * Author: Lars-Peter Clausen <lars@metafoo.de> 7 * Licensed under the GPL-2. 35 * ad_sd_set_comm() - Set communications register 37 * @sigma_delta: The sigma delta device 44 sigma_delta->comm = comm & AD_SD_COMM_CHAN_MASK; in ad_sd_set_comm() 49 * ad_sd_write_reg() - Write a register 51 * @sigma_delta: The sigma delta device 53 * @size: Size of the register (0-3) 61 uint8_t *data = sigma_delta->data; in ad_sd_write_reg() [all …]
|
| D | sd_adc_modulator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic sigma delta modulator driver 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 28 struct device *dev = &pdev->dev; in iio_sd_mod_probe() 33 return -ENOMEM; in iio_sd_mod_probe() 35 iio->dev.parent = dev; in iio_sd_mod_probe() 36 iio->dev.of_node = dev->of_node; in iio_sd_mod_probe() 37 iio->name = dev_name(dev); in iio_sd_mod_probe() 38 iio->info = &iio_sd_mod_iio_info; in iio_sd_mod_probe() 39 iio->modes = INDIO_BUFFER_HARDWARE; in iio_sd_mod_probe() [all …]
|
| D | Kconfig | 49 tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" 67 Say yes here to build support for Analog Devices AD7766, AD7766-1, 68 AD7766-2, AD7767, AD7767-1, AD7767-2 SPI analog to digital converters. 167 called at91-sama5d2_adc. 170 tristate "X-Powers AXP20X and AXP22X ADC driver" 173 Say yes here to have support for X-Powers power management IC (PMIC) 180 tristate "X-Powers AXP288 ADC driver" 183 Say yes here to have support for X-Powers power management IC (PMIC) ADC 229 called cpcap-adc. 238 will be da9150-gpadc. [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | ts_kmp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lib/ts_kmp.c Knuth-Morris-Pratt text search implementation 9 * Implements a linear-time string-matching algorithm due to Knuth, 11 * computation of the transition function DELTA altogether. Its 15 * the transition function DELTA to be computed efficiently 17 * "q" = 0,1,...,m and any character "a" in SIGMA, the value 19 * is needed to compute DELTA("q", "a") [2]. Since the array PI 20 * has only m entries, whereas DELTA has O(m|SIGMA|) entries, we 21 * save a factor of |SIGMA| in the preprocessing time by computing 22 * PI rather than DELTA. [all …]
|
| /kernel/linux/linux-4.19/lib/ |
| D | ts_kmp.c | 2 * lib/ts_kmp.c Knuth-Morris-Pratt text search implementation 13 * Implements a linear-time string-matching algorithm due to Knuth, 15 * computation of the transition function DELTA altogether. Its 19 * the transition function DELTA to be computed efficiently 21 * "q" = 0,1,...,m and any character "a" in SIGMA, the value 23 * is needed to compute DELTA("q", "a") [2]. Since the array PI 24 * has only m entries, whereas DELTA has O(m|SIGMA|) entries, we 25 * save a factor of |SIGMA| in the preprocessing time by computing 26 * PI rather than DELTA. 49 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find() [all …]
|
| /kernel/linux/linux-4.19/kernel/bpf/ |
| D | tnum.c | 13 const struct tnum tnum_unknown = { .value = 0, .mask = -1 }; 22 u64 chi = min ^ max, delta; in tnum_range() local 28 /* e.g. if chi = 4, bits = 3, delta = (1<<3) - 1 = 7. in tnum_range() 29 * if chi = 0, bits = 0, delta = (1<<0) - 1 = 0, so we return in tnum_range() 32 delta = (1ULL << bits) - 1; in tnum_range() 33 return TNUM(min & ~delta, delta); in tnum_range() 63 u64 sm, sv, sigma, chi, mu; in tnum_add() local 67 sigma = sm + sv; in tnum_add() 68 chi = sigma ^ sv; in tnum_add() 77 dv = a.value - b.value; in tnum_sub() [all …]
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| D | tnum.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 const struct tnum tnum_unknown = { .value = 0, .mask = -1 }; 23 u64 chi = min ^ max, delta; in tnum_range() local 29 /* e.g. if chi = 4, bits = 3, delta = (1<<3) - 1 = 7. in tnum_range() 30 * if chi = 0, bits = 0, delta = (1<<0) - 1 = 0, so we return in tnum_range() 33 delta = (1ULL << bits) - 1; in tnum_range() 34 return TNUM(min & ~delta, delta); in tnum_range() 64 u64 sm, sv, sigma, chi, mu; in tnum_add() local 68 sigma = sm + sv; in tnum_add() 69 chi = sigma ^ sv; in tnum_add() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
| D | ccu_sdm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 6 #include <linux/clk-provider.h> 15 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_is_enabled() 18 if (sdm->enable && !(readl(common->base + common->reg) & sdm->enable)) in ccu_sdm_helper_is_enabled() 21 return !!(readl(common->base + sdm->tuning_reg) & sdm->tuning_enable); in ccu_sdm_helper_is_enabled() 32 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_enable() 36 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_enable() 37 if (sdm->table[i].rate == rate) in ccu_sdm_helper_enable() 38 writel(sdm->table[i].pattern, in ccu_sdm_helper_enable() [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/sunxi-ng/ |
| D | ccu_sdm.c | 2 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 10 #include <linux/clk-provider.h> 18 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_is_enabled() 21 if (sdm->enable && !(readl(common->base + common->reg) & sdm->enable)) in ccu_sdm_helper_is_enabled() 24 return !!(readl(common->base + sdm->tuning_reg) & sdm->tuning_enable); in ccu_sdm_helper_is_enabled() 35 if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD)) in ccu_sdm_helper_enable() 39 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_enable() 40 if (sdm->table[i].rate == rate) in ccu_sdm_helper_enable() 41 writel(sdm->table[i].pattern, in ccu_sdm_helper_enable() 42 common->base + sdm->tuning_reg); in ccu_sdm_helper_enable() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/ |
| D | ak5558.txt | 1 AK5558 8 channel differential 32-bit delta-sigma ADC 7 - compatible : "asahi-kasei,ak5558" 8 - reg : The I2C address of the device. 12 - reset-gpios: A GPIO specifier for the power down & reset pin. 18 compatible = "asahi-kasei,ak5558"; 20 reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
| D | ak5386.txt | 1 AK5386 Single-ended 24-Bit 192kHz delta-sigma ADC 7 - compatible : "asahi-kasei,ak5386" 11 - reset-gpio : a GPIO spec for the reset/power down pin. 13 - va-supply : a regulator spec, providing 5.0V 14 - vd-supply : a regulator spec, providing 3.3V 19 compatible = "asahi-kasei,ak5386"; 20 reset-gpio = <&gpio0 23>; 21 va-supply = <&vdd_5v0_reg>; 22 vd-supply = <&vdd_3v3_reg>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | ak5558.txt | 1 AK5558 8 channel differential 32-bit delta-sigma ADC 7 - compatible : "asahi-kasei,ak5558" 8 - reg : The I2C address of the device. 12 - reset-gpios: A GPIO specifier for the power down & reset pin. 13 - AVDD-supply: Analog power supply 14 - DVDD-supply: Digital power supply 20 compatible = "asahi-kasei,ak5558"; 22 reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
|
| D | ak5386.txt | 1 AK5386 Single-ended 24-Bit 192kHz delta-sigma ADC 7 - compatible : "asahi-kasei,ak5386" 11 - reset-gpio : a GPIO spec for the reset/power down pin. 13 - va-supply : a regulator spec, providing 5.0V 14 - vd-supply : a regulator spec, providing 3.3V 19 compatible = "asahi-kasei,ak5386"; 20 reset-gpio = <&gpio0 23>; 21 va-supply = <&vdd_5v0_reg>; 22 vd-supply = <&vdd_3v3_reg>;
|
| /kernel/linux/linux-5.10/sound/soc/stm/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 44 for Sigma Delta Modulators (DFSDM) driver used
|
| /kernel/linux/linux-5.10/drivers/mtd/nand/raw/atmel/ |
| D | pmecc.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 22 * Derived from Das U-Boot source code 23 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 37 * sub-section. 41 * to expose the needed lib/bch.c helpers/functions and re-use them here. 75 #define PMECC_CFG_NSECTORS(x) ((fls(x) - 1) << 8) 178 s32 *delta; member 188 /* polynomial degree is the most-significant bit index */ in deg() 189 return fls(poly) - 1; in deg() [all …]
|
| /kernel/linux/linux-4.19/drivers/mtd/nand/raw/atmel/ |
| D | pmecc.c | 5 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 21 * Derived from Das U-Boot source code 22 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 40 * sub-section. 44 * to expose the needed lib/bch.c helpers/functions and re-use them here. 78 #define PMECC_CFG_NSECTORS(x) ((fls(x) - 1) << 8) 181 s32 *delta; member 191 /* polynomial degree is the most-significant bit index */ in deg() 192 return fls(poly) - 1; in deg() 200 unsigned int nn = BIT(mm) - 1; in atmel_pmecc_build_gf_tables() [all …]
|