| /linux/scripts/kconfig/ | 
| H A D | expr.c | 1 // SPDX-License-Identifier: GPL-2.03  * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
 24  * expr_lookup - return the expression with the given type and sub-nodes
 25  * This looks up an expression with the specified type and sub-nodes. If such
 29  * @l: left node
 41 		if (e->type == type && e->left._initdata == l &&  in expr_lookup()
 42 		    e->right._initdata == r)  in expr_lookup()
 47 	e->type = type;  in expr_lookup()
 48 	e->left._initdata = l;  in expr_lookup()
 49 	e->right._initdata = r;  in expr_lookup()
 [all …]
 
 | 
| /linux/sound/soc/sunxi/ | 
| H A D | sun50i-codec-analog.c | 1 // SPDX-License-Identifier: GPL-2.0+6  * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
 10  * Based on sun8i-codec-analog.c
 22 #include <sound/soc-dapm.h>
 25 #include "sun8i-adda-pr-regmap.h"
 178 				  -450, 150, 0);
 184 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1);
 188 	2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0),
 193 	2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0),
 203 	/* Mixer pre-gain */
 [all …]
 
 | 
| /linux/include/media/ | 
| H A D | v4l2-rect.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */3  * v4l2-rect.h - v4l2_rect helper functions
 14  * v4l2_rect_set_size_to() - copy the width/height values.
 21 	r->width = size->width;  in v4l2_rect_set_size_to()
 22 	r->height = size->height;  in v4l2_rect_set_size_to()
 26  * v4l2_rect_set_min_size() - width and height of r should be >= min_size.
 33 	if (r->width < min_size->width)  in v4l2_rect_set_min_size()
 34 		r->width = min_size->width;  in v4l2_rect_set_min_size()
 35 	if (r->height < min_size->height)  in v4l2_rect_set_min_size()
 36 		r->height = min_size->height;  in v4l2_rect_set_min_size()
 [all …]
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | pixfmt-y8i.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later3 .. _V4L2-PIX-FMT-Y8I:
 10 Interleaved grey-scale image, e.g. from a stereo-pair
 16 This is a grey-scale image with a depth of 8 bits per pixel, but with
 17 pixels from 2 sources interleaved. Each pixel is stored in a 16-bit
 18 word. E.g. the R200 RealSense camera stores pixel from the left sensor
 27 .. flat-table::
 28     :header-rows:  0
 29     :stub-columns: 0
 31     * - start + 0:
 [all …]
 
 | 
| /linux/kernel/bpf/ | 
| H A D | range_tree.c | 1 // SPDX-License-Identifier: GPL-2.0-only13  * rn->rn_rbnode links it into an interval tree while
 14  * rn->rb_range_size links it into a second rbtree sorted by size of the range.
 23  * The implementation relies on external lock to protect rbtree-s.
 24  * The alloc/free of range_node-s is done via bpf_mem_alloc.
 52 	return rn->rn_last - rn->rn_start + 1;  in rn_size()
 58 	struct rb_node *rb = rt->range_size_root.rb_root.rb_node;  in __find_range()
 66 			rb = rb->rb_right;  in __find_range()
 68 			rb = rb->rb_left;  in __find_range()
 81 		return -ENOENT;  in range_tree_find()
 [all …]
 
 | 
| /linux/sound/soc/codecs/ | 
| H A D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only16  *  ------
 [all...]
 | 
| H A D | es8328.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * es8328.c  --  ES8328 ALSA SoC Audio driver
 5  * Copyright 2014 Sutajio Ko-Usagi PTE LTD
 99 static const DECLARE_TLV_DB_SCALE(play_tlv, -3000, 100, 0);
 100 static const DECLARE_TLV_DB_SCALE(dac_adc_tlv, -9600, 50, 0);
 101 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0);
 123 	if (es8328->deemph) {  in es8328_set_deemph()
 126 			if (abs(deemph_settings[i].rate - es8328->playback_fs) <  in es8328_set_deemph()
 127 			    abs(deemph_settings[best].rate - es8328->playback_fs))  in es8328_set_deemph()
 136 	dev_dbg(component->dev, "Set deemphasis %d\n", val);  in es8328_set_deemph()
 [all …]
 
 | 
| H A D | adau1761.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later5  * Copyright 2011-2013 Analog Devices Inc.
 6  * Author: Lars-Peter Clausen <lars@metafoo.de>
 125 static const DECLARE_TLV_DB_SCALE(adau1761_sing_in_tlv, -1500, 300, 1);
 126 static const DECLARE_TLV_DB_SCALE(adau1761_diff_in_tlv, -1200, 75, 0);
 127 static const DECLARE_TLV_DB_SCALE(adau1761_out_tlv, -5700, 100, 0);
 128 static const DECLARE_TLV_DB_SCALE(adau1761_sidetone_tlv, -1800, 300, 1);
 129 static const DECLARE_TLV_DB_SCALE(adau1761_boost_tlv, -600, 600, 1);
 130 static const DECLARE_TLV_DB_SCALE(adau1761_pga_boost_tlv, -2000, 2000, 1);
 132 static const DECLARE_TLV_DB_SCALE(adau1761_alc_max_gain_tlv, -1200, 600, 0);
 [all …]
 
 | 
| H A D | twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only21 #include <sound/soc-dapm.h>
 61 	u8 dl12_cache[TWL6040_REG_HFRCTL - TWL6040_REG_HSLCTL + 1];
 69 /* set of rates for each pll: low-power and high-performance */
 95 #define to_twl6040(component)	dev_get_drvdata((component)->dev->parent)
 104 		return -EIO;  in twl6040_read()
 112 		value = priv->dl12_cache[reg - TWL6040_REG_HSLCTL];  in twl6040_read()
 132 		return priv->dl1_unmuted;  in twl6040_can_write_to_chip()
 135 		return priv->dl2_unmuted;  in twl6040_can_write_to_chip()
 152 		priv->dl12_cache[reg - TWL6040_REG_HSLCTL] = value;  in twl6040_update_dl12_cache()
 [all …]
 
 | 
| H A D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later34 	/* -54dB */
 35 	0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0),
 36 	/* -52.5dB to 15dB */
 37 	0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0)
 42 	/* -7
 [all...]
 | 
| H A D | cs42l73.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * cs42l73.c  --  CS42L73 ALSA Soc Audio driver
 26 #include <sound/soc-dapm.h>
 54 	{ 6, 0xF1 },	/* r06	- Power Ctl 1 */
 55 	{ 7, 0xDF },	/* r07	- Power Ctl 2 */
 56 	{ 8, 0x3F },	/* r08	- Power Ctl 3 */
 57 	{ 9, 0x50 },	/* r09	- Charge Pump Freq */
 58 	{ 10, 0x53 },	/* r0A	- Output Load MicBias Short Detect */
 59 	{ 11, 0x00 },	/* r0B	- DMIC Master Clock Ctl */
 60 	{ 12, 0x00 },	/* r0C	- Aux PCM Ctl */
 [all …]
 
 | 
| H A D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * wm8903.c  --  WM8903 ALSA SoC Audio driver
 5  * Copyright 2008-12 Wolfson Microelectronics
 6  * Copyright 2011-2012 NVIDIA, Inc.
 11  *  - TDM mode configuration.
 41 	{ 4,  0x0018 },     /* R4   - Bias Control 0 */
 42 	{ 5,  0x0000 },     /* R5   - VMID Control 0 */
 43 	{ 6,  0x0000 },     /* R6   - Mic Bias Control 0 */
 44 	{ 8,  0x0001 },     /* R8   - Analogue DAC 0 */
 45 	{ 10, 0x0001 },     /* R10  - Analogue ADC 0 */
 [all …]
 
 | 
| /linux/drivers/md/persistent-data/ | 
| H A D | dm-btree-remove.c | 1 // SPDX-License-Identifier: GPL-2.0-only8 #include "dm-btree.h"
 9 #include "dm-btree-internal.h"
 10 #include "dm-transaction-manager.h"
 13 #include <linux/device-mapper.h>
 29  * Each node may have a left or right sibling.  When decending the spine,
 36  * [B] No left sibling
 40  *     ==> rebalance(left sibling, node)
 42  * [D] Both siblings, total_entries(left, node, right) <= DEL_THRESHOLD
 43  *     ==> delete node adding it's contents to left and right
 [all …]
 
 | 
| /linux/arch/parisc/math-emu/ | 
| H A D | sfcmp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later3  * Linux/PA-RISC Project (http://www.parisc-linux.org/)
 5  * Floating-point emulation code
 6  *  Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
 42     register unsigned int left, right;  in sgl_fcmp()  local
 46     left = *leftptr;  in sgl_fcmp()
 52     if(    (Sgl_exponent(left) == SGL_INFINITY_EXPONENT)  in sgl_fcmp()
 58         if( (  (Sgl_exponent(left) == SGL_INFINITY_EXPONENT)  in sgl_fcmp()
 59 	    && Sgl_isnotzero_mantissa(left)   in sgl_fcmp()
 60 	    && (Exception(cond) || Sgl_isone_signaling(left)))  in sgl_fcmp()
 [all …]
 
 | 
| H A D | sfsub.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later3  * Linux/PA-RISC Project (http://www.parisc-linux.org/)
 5  * Floating-point emulation code
 6  *  Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
 42     register unsigned int left, right, result, extent;  in sgl_fsub()  local
 50     left = *leftptr;  in sgl_fsub()
 55     Sgl_xortointp1(left,right,/*to*/save);  in sgl_fsub()
 60     if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT)  in sgl_fsub()
 62 	if (Sgl_iszero_mantissa(left))   in sgl_fsub()
 80 		*dstptr = left;  in sgl_fsub()
 [all …]
 
 | 
| H A D | sfadd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later3  * Linux/PA-RISC Project (http://www.parisc-linux.org/)
 5  * Floating-point emulation code
 6  *  Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
 42     register unsigned int left, right, result, extent;  in sgl_fadd()  local
 52     left = *leftptr;  in sgl_fadd()
 57     Sgl_xortointp1(left,right,/*to*/save);  in sgl_fadd()
 62     if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT)  in sgl_fadd()
 64 	if (Sgl_iszero_mantissa(left))   in sgl_fadd()
 82 		*dstptr = left;  in sgl_fadd()
 [all …]
 
 | 
| /linux/net/sunrpc/ | 
| H A D | sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only58 		return -EINVAL;  in proc_do_xprt()
 71 	size_t		left, len;  in proc_dodebug()  local
 78 	left = *lenp;  in proc_dodebug()
 82 		while (left && isspace(*p)) {  in proc_dodebug()
 83 			left--;  in proc_dodebug()
 86 		if (!left)  in proc_dodebug()
 89 		if (left > sizeof(tmpbuf) - 1)  in proc_dodebug()
 90 			return -EINVAL;  in proc_dodebug()
 91 		memcpy(tmpbuf, p, left);  in proc_dodebug()
 [all …]
 
 | 
| /linux/Documentation/sound/cards/ | 
| H A D | audigy-mixer.rst | 5 This is based on sb-live-mixer.rst.20 functionality. Only the default built-in code in the ALSA driver is described
 34 	one-way three wire serial bus for digital sound by Philips Semiconductors
 42 FX-bus
 48 ----------------------------------------
 49 This control is used to attenuate samples from left and right front PCM FX-bus
 50 accumulators. ALSA uses accumulators 8 and 9 for left and right front PCM
 54 -------------------------------------------
 55 This control is used to attenuate samples from left and right surround PCM FX-bus
 56 accumulators. ALSA uses accumulators 2 and 3 for left and right surround PCM
 [all …]
 
 | 
| H A D | sb-live-mixer.rst | 19 (index 0) for a given card) allows to forward 48kHz, stereo, 16-bit22 to 8 raw PCM devices operating at 48kHz, 16-bit little endian. It would
 24 but the conversion routines exist only for stereo (2-channel streams)
 34 functionality. Only the default built-in code in the ALSA driver is described
 48 	one-way three wire serial bus for digital sound by Philips Semiconductors
 56 FX-bus
 63 ---------------------------------------
 64 This control is used to attenuate samples from left and right PCM FX-bus
 65 accumulators. ALSA uses accumulators 0 and 1 for left and right PCM samples.
 69 ------------------------------------------------
 [all …]
 
 | 
| /linux/arch/x86/crypto/ | 
| H A D | des3_ede-asm_64.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */3  * des3_ede-asm_64.S  -  x86-64 assembly implementation of 3DES cipher
 10 .file "des3_ede-asm_64.S"
 68  * 1-way 3DES
 92 #define initial_permutation(left, right) \  argument
 93 	do_permutation(left##d, right##d,  4, 0x0f0f0f0f); \
 94 	do_permutation(left##d, right##d, 16, 0x0000ffff); \
 95 	do_permutation(right##d, left##d,  2, 0x33333333); \
 96 	do_permutation(right##d, left##d,  8, 0x00ff00ff); \
 98 	movl left##d, RW0d; \
 [all …]
 
 | 
| /linux/fs/quota/ | 
| H A D | kqid.c | 1 // SPDX-License-Identifier: GPL-2.07  *	qid_eq - Test to see if to kquid values are the same
 8  *	@left: A qid value
 13 bool qid_eq(struct kqid left, struct kqid right)  in qid_eq()  argument
 15 	if (left.type != right.type)  in qid_eq()
 17 	switch(left.type) {  in qid_eq()
 19 		return uid_eq(left.uid, right.uid);  in qid_eq()
 21 		return gid_eq(left.gid, right.gid);  in qid_eq()
 23 		return projid_eq(left.projid, right.projid);  in qid_eq()
 31  *	qid_lt - Test to see if one qid value is less than another
 [all …]
 
 | 
| /linux/tools/perf/util/ | 
| H A D | sort.c | 1 // SPDX-License-Identifier: GPL-2.025 #include "mem-events.h"
 26 #include "mem-info.h"
 28 #include "annotate-data.h"
 30 #include "time-utils.h"
 33 #include "trace-event.h"
 38 #include <event-parse.h>
 68  * -t, --field-separator
 94 		return size - 1;  in repsep_snprintf()
 103 		return -1;  in cmp_null()
 [all …]
 
 | 
| /linux/tools/testing/selftests/hid/tests/ | 
| H A D | base_gamepad.py | 1 # SPDX-License-Identifier: GPL-2.064         self.left = (127, 127)
 83         left=(None, None),  argument
 93         :param left: a tuple of absolute (x, y) value of the left joypad
 128         left = replace_none_in_tuple(left, self.left)
 129         self.left = left
 142         self.store_axes("left_stick", gamepad, left)
 150         self, *, left=(None, None), right=(None, None), hat_switch=None, buttons=None  argument
 155         :param left: a tuple of absolute (x, y) value of the left joypad
 165             left=left, right=right, hat_switch=hat_switch, buttons=buttons
 [all …]
 
 | 
| /linux/drivers/firmware/ | 
| H A D | edd.c | 1 // SPDX-License-Identifier: GPL-2.0-only14  * fn41 - Check Extensions Present and
 15  * fn48 - Get Device Parameters with EDD extensions
 38 #define EDD_DATE    "2004-Jun-25"
 45 #define left (PAGE_SIZE - (p - buf) - 1)  macro
 76 	return edev->index < min_t(unsigned char, edd.mbr_signature_nr, EDD_MBR_SIG_MAX);  in edd_has_mbr_signature()
 82 	return edev->index < min_t(unsigned char, edd.edd_info_nr, EDDMAXNR);  in edd_has_edd_info()
 88 	return edev->info;  in edd_dev_get_info()
 94 	edev->index = i;  in edd_dev_set_info()
 96 		edev->mbr_signature = edd.mbr_signature[i];  in edd_dev_set_info()
 [all …]
 
 | 
| /linux/kernel/ | 
| H A D | sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only27 const int sysctl_vals[] = { 0, 1, 2, 3, 4, 100, 200, 1000, 3000, INT_MAX, 65535, -1 };
 42  * enum sysctl_writes_mode - supported sysctl write modes
 61 	SYSCTL_WRITES_LEGACY		= -1,
 91 			if (len > maxlen - 1)  in _proc_do_string()
 92 				len = maxlen - 1;  in _proc_do_string()
 104 		while ((p - buffer) < *lenp && len < maxlen - 1) {  in _proc_do_string()
 122 		len  -= *ppos;  in _proc_do_string()
 142 		"warning, set kernel.sysctl_writes_strict = -1\n",  in warn_sysctl_write()
 143 		current->comm, table->procname);  in warn_sysctl_write()
 [all …]
 
 |