Home
last modified time | relevance | path

Searched +full:gain +full:- +full:offset (Results 1 – 25 of 904) sorted by relevance

12345678910>>...37

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/dac/
Dadi,ad3552r.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Nuno Sá <nuno.sa@analog.com>
16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf
22 - adi,ad3542r
23 - adi,ad3552r
28 spi-max-frequency:
31 reset-gpios:
[all …]
/kernel/linux/linux-5.10/include/linux/
Datmel-isc-media.h1 /* SPDX-License-Identifier: GPL-2.0-only */
13 * 4 gain controls, sliders, for each of the BAYER components: R, B, GR, GB.
16 * 4 offset controls, sliders, for each of the BAYER components: R, B, GR, GB.
18 * 1:12:0 with a default value of 0 (+/- 0)
30 * configure the gain/offsets directly.
32 * pressed, the driver will perform one-time-adjustment, (preferably with color
40 /* Red component gain control */
42 /* Blue component gain control */
44 /* Green Red component gain control */
46 /* Green Blue gain control */
[all …]
/kernel/linux/linux-6.6/include/linux/
Datmel-isc-media.h1 /* SPDX-License-Identifier: GPL-2.0-only */
13 * 4 gain controls, sliders, for each of the BAYER components: R, B, GR, GB.
16 * 4 offset controls, sliders, for each of the BAYER components: R, B, GR, GB.
18 * 1:12:0 with a default value of 0 (+/- 0)
30 * configure the gain/offsets directly.
32 * pressed, the driver will perform one-time-adjustment, (preferably with color
40 /* Red component gain control */
42 /* Blue component gain control */
44 /* Green Red component gain control */
46 /* Green Blue gain control */
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dqcom-spmi-iadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
95 * struct iadc_chip - IADC Current ADC device structure.
98 * @base: base offset for the ADC peripheral.
101 * @offset: Raw offset values for the internal and external channels.
102 * @gain: Raw gain of the channels.
112 u16 offset[2]; member
113 u16 gain; member
118 static int iadc_read(struct iadc_chip *iadc, u16 offset, u8 *data) in iadc_read() argument
123 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read()
[all …]
Dstx104.c1 // SPDX-License-Identifier: GPL-2.0-only
50 * struct stx104_reg - device register structure
72 * struct stx104_iio - IIO device private data structure
75 * @reg: I/O address offset for the device registers
84 * struct stx104_gpio - GPIO device private data structure
101 struct stx104_reg __iomem *const reg = priv->reg; in stx104_read_raw()
104 int gain; in stx104_read_raw() local
108 /* get gain configuration */ in stx104_read_raw()
109 adc_config = ioread8(&reg->acfg); in stx104_read_raw()
110 gain = adc_config & 0x3; in stx104_read_raw()
[all …]
Dqcom-vadc-common.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 /* Max ADC code represents full-scale range of 1.8V */
32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
45 #define PMI_CHG_SCALE_1 -138890
55 #define DIE_TEMP_ADC7_SCALE_1 -60000
61 * struct vadc_map_pt - Map the graph representation for ADC channel
82 * struct vadc_linear_graph - Represent ADC characteristics.
83 * @dy: numerator slope to calculate the gain.
84 * @dx: denominator slope to calculate the gain.
87 * Each ADC device has different offset and gain parameters which are
[all …]
Dab8500-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
54 /* 0 = use VTVOUT, 1 = use VRTC as pull-up supply for battery temp NTC */
63 * the bit layout is the same for SW and HW conversion set-up
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
167 #define AB8500_GPADC_IBAT_VDROP_L (-56) /* mV */
170 /* This is used to not lose precision when dividing to get gain and offset */
174 * when dividing to get ibat gain.
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
[all …]
Dmax9611.c1 // SPDX-License-Identifier: GPL-2.0
6 * 12-bit ADC interface.
12 * This driver supports input common-mode voltage, current-sense
16 * Op-amp, analog comparator, and watchdog functionalities are not
50 * LSB and offset values depends on selected gain (1x, 4x, 8x)
52 * GAIN LSB (nV) OFFSET (LSB steps)
58 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3)
69 * max9611 common input mode (CIM): LSB is 14mV, with 14mV offset at 25 C
72 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000)
114 * max9611_mux_conf - associate ADC mux configuration with register address
[all …]
/kernel/linux/linux-6.6/drivers/iio/adc/
Dqcom-spmi-iadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
94 * struct iadc_chip - IADC Current ADC device structure.
97 * @base: base offset for the ADC peripheral.
100 * @offset: Raw offset values for the internal and external channels.
101 * @gain: Raw gain of the channels.
111 u16 offset[2]; member
112 u16 gain; member
117 static int iadc_read(struct iadc_chip *iadc, u16 offset, u8 *data) in iadc_read() argument
122 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read()
[all …]
Dab8500-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
54 /* 0 = use VTVOUT, 1 = use VRTC as pull-up supply for battery temp NTC */
63 * the bit layout is the same for SW and HW conversion set-up
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
167 #define AB8500_GPADC_IBAT_VDROP_L (-56) /* mV */
170 /* This is used to not lose precision when dividing to get gain and offset */
174 * when dividing to get ibat gain.
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
[all …]
Dmax9611.c1 // SPDX-License-Identifier: GPL-2.0
6 * 12-bit ADC interface.
12 * This driver supports input common-mode voltage, current-sense
16 * Op-amp, analog comparator, and watchdog functionalities are not
51 * LSB and offset values depends on selected gain (1x, 4x, 8x)
53 * GAIN LSB (nV) OFFSET (LSB steps)
59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3)
70 * max9611 common input mode (CIM): LSB is 14mV, with 14mV offset at 25 C
73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000)
115 * max9611_mux_conf - associate ADC mux configuration with register address
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dphy.c1 // SPDX-License-Identifier: ISC
13 mt76x2_adjust_high_lna_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_high_lna_gain() argument
15 s8 gain; in mt76x2_adjust_high_lna_gain() local
17 gain = FIELD_GET(MT_BBP_AGC_LNA_HIGH_GAIN, in mt76x2_adjust_high_lna_gain()
19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain()
20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain()
24 mt76x2_adjust_agc_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_agc_gain() argument
26 s8 gain; in mt76x2_adjust_agc_gain() local
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
29 gain += offset; in mt76x2_adjust_agc_gain()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
Dphy.c1 // SPDX-License-Identifier: ISC
13 mt76x2_adjust_high_lna_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_high_lna_gain() argument
15 s8 gain; in mt76x2_adjust_high_lna_gain() local
17 gain = FIELD_GET(MT_BBP_AGC_LNA_HIGH_GAIN, in mt76x2_adjust_high_lna_gain()
19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain()
20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain()
24 mt76x2_adjust_agc_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_agc_gain() argument
26 s8 gain; in mt76x2_adjust_agc_gain() local
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
29 gain += offset; in mt76x2_adjust_agc_gain()
[all …]
/kernel/linux/linux-6.6/include/uapi/linux/
Domap3isp.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * TI OMAP3 ISP - User-space API
25 * 02110-1301 USA
41 * VIDIOC_OMAP3ISP_AF_CFG: Set auto-focus module configuration
121 * struct omap3isp_h3a_aewb_config - AE AWB configuration reset values
123 * @win_height: Window Height. Range 2 - 256, even values only.
124 * @win_width: Window Width. Range 6 - 256, even values only.
125 * @ver_win_count: Vertical Window Count. Range 1 - 128.
126 * @hor_win_count: Horizontal Window Count. Range 1 - 36.
127 * @ver_win_start: Vertical Window Start. Range 0 - 4095.
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Domap3isp.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * TI OMAP3 ISP - User-space API
25 * 02110-1301 USA
41 * VIDIOC_OMAP3ISP_AF_CFG: Set auto-focus module configuration
121 * struct omap3isp_h3a_aewb_config - AE AWB configuration reset values
123 * @win_height: Window Height. Range 2 - 256, even values only.
124 * @win_width: Window Width. Range 6 - 256, even values only.
125 * @ver_win_count: Vertical Window Count. Range 1 - 128.
126 * @hor_win_count: Horizontal Window Count. Range 1 - 36.
127 * @ver_win_start: Vertical Window Start. Range 0 - 4095.
[all …]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
Dni_at_ao.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Driver for NI AT-AO-6/10 boards
6 * COMEDI - Linux Control and Measurement Device Interface
12 * Description: National Instruments AT-AO-6/10
13 * Devices: [National Instruments] AT-AO-6 (at-ao-6), AT-AO-10 (at-ao-10)
19 * [0] - I/O port base address
20 * [1] - IRQ (unused)
21 * [2] - DMA (unused)
22 * [3] - analog output range, set by jumpers on hardware
23 * 0 for -10 to 10V bipolar
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_at_ao.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Driver for NI AT-AO-6/10 boards
6 * COMEDI - Linux Control and Measurement Device Interface
12 * Description: National Instruments AT-AO-6/10
13 * Devices: [National Instruments] AT-AO-6 (at-ao-6), AT-AO-10 (at-ao-10)
19 * [0] - I/O port base address
20 * [1] - IRQ (unused)
21 * [2] - DMA (unused)
22 * [3] - analog output range, set by jumpers on hardware
23 * 0 for -10 to 10V bipolar
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dphy_a.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 #define B43_PHY_VERSION_OFDM B43_PHY_OFDM(0x00) /* Versioning register for A-PHY */
16 #define B43_PHY_LPFGAINCTL B43_PHY_OFDM(0x20) /* LPF Gain control */
31 #define B43_PHY_OTABLEOFF 0x03FF /* OFDM table offset (see below) */
52 #define B43_PHY_DIVSRCHIDX B43_PHY_OFDM(0xA8) /* Divider search gain/index */
56 #define B43_PHY_DIVSRCHGAINBACK B43_PHY_OFDM(0xAD) /* Divider search gain back */
57 #define B43_PHY_DIVSRCHGAINCHNG B43_PHY_OFDM(0xAE) /* Divider search gain change */
62 #define B43_PHY_GAIN_LTBASE B43_PHY_OFDM(0x3C0) /* Gain lookup table base */
65 #define B43_OFDMTAB(number, offset) (((number) << B43_PHY_OTABLENR_SHIFT) | (offset)) argument
98 u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset);
[all …]
Dphy_g.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* OFDM PHY registers are defined in the A-PHY header. */
9 #define B43_PHY_VERSION_CCK B43_PHY_CCK(0x00) /* Versioning register for B-PHY */
24 /* Extended G-PHY Registers */
26 #define B43_PHY_GTABCTL B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */
27 #define B43_PHY_GTABOFF 0x03FF /* G-PHY table offset (see below) */
28 #define B43_PHY_GTABNR 0xFC00 /* G-PHY table number (see below) */
30 #define B43_PHY_GTABDATA B43_PHY_EXTG(0x04) /* G-PHY table data */
49 /*** G-PHY table numbers */
50 #define B43_GTAB(number, offset) (((number) << B43_PHY_GTABNR_SHIFT) | (offset)) argument
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
Dphy_a.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 #define B43_PHY_VERSION_OFDM B43_PHY_OFDM(0x00) /* Versioning register for A-PHY */
16 #define B43_PHY_LPFGAINCTL B43_PHY_OFDM(0x20) /* LPF Gain control */
31 #define B43_PHY_OTABLEOFF 0x03FF /* OFDM table offset (see below) */
52 #define B43_PHY_DIVSRCHIDX B43_PHY_OFDM(0xA8) /* Divider search gain/index */
56 #define B43_PHY_DIVSRCHGAINBACK B43_PHY_OFDM(0xAD) /* Divider search gain back */
57 #define B43_PHY_DIVSRCHGAINCHNG B43_PHY_OFDM(0xAE) /* Divider search gain change */
62 #define B43_PHY_GAIN_LTBASE B43_PHY_OFDM(0x3C0) /* Gain lookup table base */
65 #define B43_OFDMTAB(number, offset) (((number) << B43_PHY_OTABLENR_SHIFT) | (offset)) argument
98 u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset);
[all …]
Dphy_g.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 /* OFDM PHY registers are defined in the A-PHY header. */
9 #define B43_PHY_VERSION_CCK B43_PHY_CCK(0x00) /* Versioning register for B-PHY */
24 /* Extended G-PHY Registers */
26 #define B43_PHY_GTABCTL B43_PHY_EXTG(0x03) /* G-PHY table control (see below) */
27 #define B43_PHY_GTABOFF 0x03FF /* G-PHY table offset (see below) */
28 #define B43_PHY_GTABNR 0xFC00 /* G-PHY table number (see below) */
30 #define B43_PHY_GTABDATA B43_PHY_EXTG(0x04) /* G-PHY table data */
49 /*** G-PHY table numbers */
50 #define B43_GTAB(number, offset) (((number) << B43_PHY_GTABNR_SHIFT) | (offset)) argument
[all …]
/kernel/linux/linux-5.10/include/media/davinci/
Disif.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2008-2009 Texas Instruments Inc
62 * Defect level subtraction. Horizontal interpolation ((i-2)+(i+2))/2
66 /* Horizontal interpolation (((i-2)+(i+2))/2) */
70 /* 0 - whole line corrected, 1 - not pixels upper than the defect */
109 * 0 - limit disabled
110 * 1 - pixel value limited to 1023
119 /* Window count per color for calculation. range 1-32 */
121 /* Window start position - horizontal for calculation. 0 - 8191 */
123 /* Window start position - vertical for calculation 0 - 8191 */
[all …]
/kernel/linux/linux-6.6/drivers/media/platform/microchip/
Dmicrochip-isc-base.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2019 Microchip Technology, Inc.
21 #include <linux/atmel-isc-media.h>
23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-event.h>
26 #include <media/v4l2-image-sizes.h>
27 #include <media/v4l2-ioctl.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-subdev.h>
[all …]
/kernel/linux/linux-6.6/drivers/staging/media/deprecated/atmel/
Datmel-isc-base.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2019 Microchip Technology, Inc.
21 #include <linux/atmel-isc-media.h>
23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-event.h>
26 #include <media/v4l2-image-sizes.h>
27 #include <media/v4l2-ioctl.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-subdev.h>
[all …]
/kernel/linux/linux-6.6/drivers/iio/pressure/
Dst_pressure_core.c1 // SPDX-License-Identifier: GPL-2.0-only
24 * ------------------------------------------
39 * IIO_VAL_INT_PLUS_NANO with a zero integral part and "gain" as decimal part.
40 * Therefore, from (1), "gain" becomes :
41 * gain = 10^9 / (sensitivity * 10)
45 * ---------------------------------------------------------
47 * Datasheets specify typical temperature sensitivity and offset so that
49 * temp[Celsius] = offset[Celsius] + (raw / sensitivity)
52 * offset a constant specified by the datasheet in degree Celsius
59 * = (offset[Celsius] + (raw / sensitivity)) * 10^3
[all …]

12345678910>>...37