| /kernel/linux/linux-5.10/include/kunit/ |
| D | test.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <kunit/try-catch.h> 26 * struct kunit_resource - represents a *test managed resource* 43 * .. code-block:: c 53 * res->data = kmalloc(params->size, params->gfp); 55 * if (!res->data) 56 * return -ENOMEM; 63 * kfree(res->data); 99 * sub-subtest. See the "Subtests" section in 100 * https://node-tap.org/tap-protocol/ [all …]
|
| /kernel/linux/linux-6.6/include/kunit/ |
| D | test.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <kunit/try-catch.h> 48 * sub-subtest. See the "Subtests" section in 49 * https://node-tap.org/tap-protocol/ 56 * enum kunit_status - Type of result for a test or test suite 90 * struct kunit_case - represents an individual test case. 110 * .. code-block:: c 116 * KUNIT_EXPECT_EQ(test, 0, add(-1, 1)); 118 * KUNIT_EXPECT_EQ(test, -1, add(INT_MAX, INT_MIN)); 152 * KUNIT_CASE - A helper for creating a &struct kunit_case [all …]
|
| /kernel/linux/linux-5.10/scripts/kconfig/ |
| D | expr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 21 e->type = E_SYMBOL; in expr_alloc_symbol() 22 e->left.sym = sym; in expr_alloc_symbol() 29 e->type = type; in expr_alloc_one() 30 e->left.expr = ce; in expr_alloc_one() 37 e->type = type; in expr_alloc_two() 38 e->left.expr = e1; in expr_alloc_two() 39 e->right.expr = e2; in expr_alloc_two() 46 e->type = type; in expr_alloc_comp() [all …]
|
| /kernel/linux/linux-6.6/scripts/kconfig/ |
| D | expr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 21 e->type = E_SYMBOL; in expr_alloc_symbol() 22 e->left.sym = sym; in expr_alloc_symbol() 29 e->type = type; in expr_alloc_one() 30 e->left.expr = ce; in expr_alloc_one() 37 e->type = type; in expr_alloc_two() 38 e->left.expr = e1; in expr_alloc_two() 39 e->right.expr = e2; in expr_alloc_two() 46 e->type = type; in expr_alloc_comp() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/sunxi/ |
| 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 23 #include <sound/soc-dapm.h> 26 #include "sun8i-adda-pr-regmap.h" 172 -450, 150, 0); 178 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1); 182 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), 187 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), 197 /* Mixer pre-gain */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sunxi/ |
| 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 23 #include <sound/soc-dapm.h> 26 #include "sun8i-adda-pr-regmap.h" 171 -450, 150, 0); 177 static const DECLARE_TLV_DB_SCALE(sun50i_codec_hp_vol_scale, -6300, 100, 1); 181 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), 186 2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0), 196 /* Mixer pre-gain */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | pixfmt-y8i.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _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 …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | pixfmt-y8i.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _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 …]
|
| /kernel/linux/linux-5.10/include/media/ |
| 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 …]
|
| /kernel/linux/linux-6.6/include/media/ |
| 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 …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | es8328.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8328.c -- ES8328 ALSA SoC Audio driver 5 * Copyright 2014 Sutajio Ko-Usagi PTE LTD 100 static const DECLARE_TLV_DB_SCALE(play_tlv, -3000, 100, 0); 101 static const DECLARE_TLV_DB_SCALE(dac_adc_tlv, -9600, 50, 0); 102 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0); 124 if (es8328->deemph) { in es8328_set_deemph() 127 if (abs(deemph_settings[i].rate - es8328->playback_fs) < in es8328_set_deemph() 128 abs(deemph_settings[best].rate - es8328->playback_fs)) in es8328_set_deemph() 137 dev_dbg(component->dev, "Set deemphasis %d\n", val); in es8328_set_deemph() [all …]
|
| D | wm8971.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8971.c -- WM8971 ALSA SoC Audio driver 95 static const char *wm8971_alc_func[] = { "Off", "Right", "Left", "Stereo" }; 99 static const char *wm8971_mono_mux[] = {"Stereo", "Mono (Left)", 142 SOC_DOUBLE_R("Bypass Left Playback Volume", WM8971_LOUTM1, 159 SOC_ENUM("Treble Cut-off", wm8971_enum[2]), 180 SOC_ENUM("Playback De-emphasis", wm8971_enum[5]), 191 /* Left Mixer */ 194 SOC_DAPM_SINGLE("Left Bypass Switch", WM8971_LOUTM1, 7, 1, 0), 201 SOC_DAPM_SINGLE("Left Playback Switch", WM8971_ROUTM1, 8, 1, 0), [all …]
|
| D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * --------------------------------------- 18 * MONO_LOUT -> N/A | MONO_LOUT -> N/A 19 * | IN1L -> LINE1L 20 * | IN1R -> LINE1R 21 * | IN2L -> LINE2L 22 * | IN2R -> LINE2R 23 * | MIC3L/R -> N/A 26 * --------------------------------------- 93 /* Output Common-Mode Voltage */ [all …]
|
| D | wm8750.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8750.c -- WM8750 ALSA SoC audio driver 97 static const char *wm8750_alc_func[] = {"Off", "Right", "Left", "Stereo"}; 110 static const char *wm8750_mono_mux[] = {"Stereo", "Mono (Left)", 145 SOC_ENUM("Playback De-emphasis", wm8750_enum[15]), 158 SOC_ENUM("Treble Cut-off", wm8750_enum[2]), 162 SOC_ENUM("3D Lower Cut-off", wm8750_enum[3]), 163 SOC_ENUM("3D Upper Cut-off", wm8750_enum[4]), 177 SOC_SINGLE("Left ADC Capture Volume", WM8750_LADC, 0, 255, 0), 186 /* ADCDAC Bit 0 - ADCHPD */ [all …]
|
| /kernel/linux/linux-5.10/drivers/md/persistent-data/ |
| D | dm-btree-remove.c | 7 #include "dm-btree.h" 8 #include "dm-btree-internal.h" 9 #include "dm-transaction-manager.h" 25 * Each node may have a left or right sibling. When decending the spine, 32 * [B] No left sibling 36 * ==> rebalance(left sibling, node) 38 * [D] Both siblings, total_entries(left, node, right) <= DEL_THRESHOLD 39 * ==> delete node adding it's contents to left and right 41 * [E] Both siblings, total_entries(left, node, right) > DEL_THRESHOLD 42 * ==> rebalance(left, node, right) [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | wm8971.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8971.c -- WM8971 ALSA SoC Audio driver 95 static const char *wm8971_alc_func[] = { "Off", "Right", "Left", "Stereo" }; 99 static const char *wm8971_mono_mux[] = {"Stereo", "Mono (Left)", 142 SOC_DOUBLE_R("Bypass Left Playback Volume", WM8971_LOUTM1, 159 SOC_ENUM("Treble Cut-off", wm8971_enum[2]), 180 SOC_ENUM("Playback De-emphasis", wm8971_enum[5]), 191 /* Left Mixer */ 194 SOC_DAPM_SINGLE("Left Bypass Switch", WM8971_LOUTM1, 7, 1, 0), 201 SOC_DAPM_SINGLE("Left Playback Switch", WM8971_ROUTM1, 8, 1, 0), [all …]
|
| D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * --------------------------------------- 17 * MONO_LOUT -> N/A | MONO_LOUT -> N/A 18 * | IN1L -> LINE1L 19 * | IN1R -> LINE1R 20 * | IN2L -> LINE2L 21 * | IN2R -> LINE2R 22 * | MIC3L/R -> N/A 25 * --------------------------------------- 89 /* Output Common-Mode Voltage */ [all …]
|
| D | es8328.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8328.c -- ES8328 ALSA SoC Audio driver 5 * Copyright 2014 Sutajio Ko-Usagi PTE LTD 100 static const DECLARE_TLV_DB_SCALE(play_tlv, -3000, 100, 0); 101 static const DECLARE_TLV_DB_SCALE(dac_adc_tlv, -9600, 50, 0); 102 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0); 124 if (es8328->deemph) { in es8328_set_deemph() 127 if (abs(deemph_settings[i].rate - es8328->playback_fs) < in es8328_set_deemph() 128 abs(deemph_settings[best].rate - es8328->playback_fs)) in es8328_set_deemph() 137 dev_dbg(component->dev, "Set deemphasis %d\n", val); in es8328_set_deemph() [all …]
|
| D | wm8750.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8750.c -- WM8750 ALSA SoC audio driver 97 static const char *wm8750_alc_func[] = {"Off", "Right", "Left", "Stereo"}; 110 static const char *wm8750_mono_mux[] = {"Stereo", "Mono (Left)", 145 SOC_ENUM("Playback De-emphasis", wm8750_enum[15]), 158 SOC_ENUM("Treble Cut-off", wm8750_enum[2]), 162 SOC_ENUM("3D Lower Cut-off", wm8750_enum[3]), 163 SOC_ENUM("3D Upper Cut-off", wm8750_enum[4]), 177 SOC_SINGLE("Left ADC Capture Volume", WM8750_LADC, 0, 255, 0), 186 /* ADCDAC Bit 0 - ADCHPD */ [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | uidgid.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 66 #define INVALID_UID KUIDT_INIT(-1) 67 #define INVALID_GID KGIDT_INIT(-1) 69 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() argument 71 return __kuid_val(left) == __kuid_val(right); in uid_eq() 74 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() argument 76 return __kgid_val(left) == __kgid_val(right); in gid_eq() 79 static inline bool uid_gt(kuid_t left, kuid_t right) in uid_gt() argument 81 return __kuid_val(left) > __kuid_val(right); in uid_gt() 84 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() argument [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | uidgid.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 66 #define INVALID_UID KUIDT_INIT(-1) 67 #define INVALID_GID KGIDT_INIT(-1) 69 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() argument 71 return __kuid_val(left) == __kuid_val(right); in uid_eq() 74 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() argument 76 return __kgid_val(left) == __kgid_val(right); in gid_eq() 79 static inline bool uid_gt(kuid_t left, kuid_t right) in uid_gt() argument 81 return __kuid_val(left) > __kuid_val(right); in uid_gt() 84 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() argument [all …]
|
| /kernel/linux/linux-5.10/arch/parisc/math-emu/ |
| D | sfcmp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * 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 …]
|
| /kernel/linux/linux-6.6/arch/parisc/math-emu/ |
| D | sfcmp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/md/persistent-data/ |
| D | dm-btree-remove.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #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 …]
|
| /kernel/linux/linux-6.6/net/sunrpc/ |
| D | sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 58 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 …]
|