Home
last modified time | relevance | path

Searched +full:sense +full:- +full:gain +full:- +full:div (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/Documentation/devicetree/bindings/iio/afe/
Dcurrent-sense-amplifier.yaml1 # 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-v6.6/drivers/iio/afe/
Diio-rescale.c1 // 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-v6.6/drivers/media/i2c/
Dov7670.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-event.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fwnode.h>
23 #include <media/v4l2-mediabus.h>
24 #include <media/v4l2-image-sizes.h>
28 MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors");
33 MODULE_PARM_DESC(debug, "Debug level (0-1)");
[all …]
/Linux-v6.6/drivers/staging/media/deprecated/atmel/
Datmel-isc.h1 /* 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-v6.6/drivers/media/platform/microchip/
Dmicrochip-isc.h1 /* 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-v6.6/drivers/net/ethernet/atheros/
Dag71xx.c1 // 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-v6.6/drivers/media/dvb-frontends/
Ddrxk_hard.c1 // 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 …]
Ddib7000p.c1 // 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)");
104 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000p_read_word()
109 state->i2c_write_buffer[0] = reg >> 8; in dib7000p_read_word()
110 state->i2c_write_buffer[1] = reg & 0xff; in dib7000p_read_word()
112 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000p_read_word()
113 state->msg[0].addr = state->i2c_addr >> 1; in dib7000p_read_word()
114 state->msg[0].flags = 0; in dib7000p_read_word()
[all …]
/Linux-v6.6/sound/pci/hda/
Dpatch_ca0132.c1 // 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_NID)
154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID)
163 * X-bass.
182 int params; /* number of default non-on/off params */
223 { .name = "X-Bass",
[all …]
/Linux-v6.6/arch/x86/events/intel/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <asm/intel-family.h>
40 [PERF_COUNT_HW_REF_CPU_CYCLES] = 0x0300, /* pseudo-encoding */
47 INTEL_EVENT_CONSTRAINT(0x13, 0x2), /* DIV */
62 INTEL_EVENT_CONSTRAINT(0x13, 0x2), /* DIV */
67 INTEL_EVENT_CONSTRAINT(0xc9, 0x1), /* ITLB_MISS_RETIRED (T30-9) */
330 * Generally event codes < 0x90 are restricted to counters 0-3.
363 EVENT_ATTR_STR(mem-loads, mem_ld_nhm, "event=0x0b,umask=0x10,ldlat=3");
364 EVENT_ATTR_STR(mem-loads, mem_ld_snb, "event=0xcd,umask=0x1,ldlat=3");
365 EVENT_ATTR_STR(mem-stores, mem_st_snb, "event=0xcd,umask=0x2");
[all …]
/Linux-v6.6/drivers/video/fbdev/sis/
Dinit301.c10 * 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.
256 /* VESA non-VESA noscale */
421 if(SiS_Pr->ChipType == XGI_20) in SiS_UnLockCRT2()
423 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_UnLockCRT2()
424 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x2f,0x01); in SiS_UnLockCRT2()
426 SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); in SiS_UnLockCRT2()
433 if(SiS_Pr->ChipType == XGI_20) in SiS_LockCRT2()
435 else if(SiS_Pr->ChipType >= SIS_315H) in SiS_LockCRT2()
[all …]