Searched +full:sense +full:- +full:gain +full:- +full:div (Results 1 – 11 of 11) sorted by relevance
/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | current-sense-amplifier.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Current Sense Amplifier 10 - Peter Rosin <peda@axentia.se> 13 When an io-channel measures the output voltage from a current sense 15 through the sense resistor, not the voltage output. This binding 16 describes such a current sense circuit. 20 const: current-sense-amplifier [all …]
|
/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
/linux/drivers/media/i2c/ |
H A D | ov7670.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net> 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-event.h> 22 #include <media/v4l2-ctrls.h> 23 #include <media/v4l2-fwnode.h> 24 #include <media/v4l2-mediabus.h> 25 #include <media/v4l2-image-sizes.h> 29 MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); 34 MODULE_PARM_DESC(debug, "Debug level (0-1)"); [all …]
|
/linux/drivers/staging/media/deprecated/atmel/ |
H A D | atmel-isc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2016-2019 Microchip Technology, Inc. 13 #include <linux/clk-provider.h> 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-device.h> 18 #include <media/videobuf2-dma-contig.h> 34 u32 div; member 57 * struct isc_format - ISC media bus format information 97 * struct fmt_config - ISC format configuration and internal pipeline 106 This differs from 'bpp' in the sense that in planar [all …]
|
/linux/drivers/media/platform/microchip/ |
H A D | microchip-isc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2016-2019 Microchip Technology, Inc. 13 #include <linux/clk-provider.h> 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-device.h> 18 #include <media/videobuf2-dma-contig.h> 34 u32 div; member 57 * struct isc_format - ISC media bus format information 98 * struct fmt_config - ISC format configuration and internal pipeline 107 This differs from 'bpp' in the sense that in planar [all …]
|
/linux/drivers/net/ethernet/atheros/ |
H A D | ag71xx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Atheros AR71xx built-in ethernet mac driver 11 * David Bauer <mail@david-bauer.net> 14 * Hauke Mehrtens <hauke@hauke-m.de> 15 * Johann Neuhauser <johann@it-neuhauser.de> 17 * Jo-Philipp Wich <jo@mein.io> 43 /* For our NAPI weight bigger does *NOT* mean better - it means more 44 * D-cache misses and lots more wasted cycles than we'll ever 45 * possibly gain from saving instructions. 246 { 0x0084, GENMASK(17, 0), "Tx/Rx 65-127 Byte", }, [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | drxk_hard.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drxk_hard: DRX-K DVB-C/T demodulator driver 5 * Copyright (C) 2010-2011 Digital Devices GmbH 45 return state->m_operation_mode == OM_DVBT; in is_dvbt() 50 return state->m_operation_mode == OM_QAM_ITU_A || in is_qam() 51 state->m_operation_mode == OM_QAM_ITU_B || in is_qam() 52 state->m_operation_mode == OM_QAM_ITU_C; in is_qam() 164 R0 = (a % c) << 4; /* 32-28 == 4 shifts possible at max */ in Frac28a() 193 i2c_lock_bus(state->i2c, I2C_LOCK_SEGMENT); in drxk_i2c_lock() 194 state->drxk_i2c_exclusive_lock = true; in drxk_i2c_lock() [all …]
|
H A D | dib7000p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's second generation DiB7000P (PC). 5 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/) 27 MODULE_PARM_DESC(buggy_sfn_workaround, "Enable work-around for buggy SFNs (default: 0)"); 99 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000p_read_word() 104 state->i2c_write_buffer[0] = reg >> 8; in dib7000p_read_word() 105 state->i2c_write_buffer[1] = reg & 0xff; in dib7000p_read_word() 107 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000p_read_word() 108 state->msg[0].addr = state->i2c_addr >> 1; in dib7000p_read_word() 109 state->msg[0].flags = 0; in dib7000p_read_word() [all …]
|
/linux/sound/pci/hda/ |
H A D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NI [all...] |
/linux/arch/x86/events/intel/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <asm/intel-family.h> 41 [PERF_COUNT_HW_REF_CPU_CYCLES] = 0x0300, /* pseudo-encoding */ 48 INTEL_EVENT_CONSTRAINT(0x13, 0x2), /* DIV */ 63 INTEL_EVENT_CONSTRAINT(0x13, 0x2), /* DIV */ 68 INTEL_EVENT_CONSTRAINT(0xc9, 0x1), /* ITLB_MISS_RETIRED (T30-9) */ 351 * Generally event codes < 0x90 are restricted to counters 0-3. 406 * Generally event codes < 0x90 are restricted to counters 0-3. 433 EVENT_ATTR_STR(mem-loads, mem_ld_nhm, "event=0x0b,umask=0x10,ldlat=3"); 434 EVENT_ATTR_STR(mem-loads, mem_ld_snb, "event=0xcd,umask=0x1,ldlat=3"); [all …]
|
/linux/drivers/video/fbdev/sis/ |
H A D | init301.c | 10 * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria 27 * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA 55 * Formerly based on non-functional code-fragements for 300 series by SiS, Inc. 255 /* VESA non-VESA noscale */ 420 if(SiS_Pr->ChipType == XGI_20) in SiS_UnLockCRT2() 422 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_UnLockCRT2() 423 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2f,0x01); in SiS_UnLockCRT2() 425 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); in SiS_UnLockCRT2() 432 if(SiS_Pr->ChipType == XGI_20) in SiS_LockCRT2() 434 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_LockCRT2() [all …]
|