| /kernel/linux/linux-6.6/net/ceph/crush/ |
| D | hash.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Robert Jenkins' function for mixing 32-bit values 11 * a, b = random bits, c = input and output 13 #define crush_hashmix(a, b, c) do { \ argument 14 a = a-b; a = a-c; a = a^(c>>13); \ 15 b = b-c; b = b-a; b = b^(a<<8); \ 16 c = c-a; c = c-b; c = c^(b>>13); \ 17 a = a-b; a = a-c; a = a^(c>>12); \ 18 b = b-c; b = b-a; b = b^(a<<16); \ 19 c = c-a; c = c-b; c = c^(b>>5); \ [all …]
|
| /kernel/linux/linux-5.10/net/ceph/crush/ |
| D | hash.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Robert Jenkins' function for mixing 32-bit values 11 * a, b = random bits, c = input and output 13 #define crush_hashmix(a, b, c) do { \ argument 14 a = a-b; a = a-c; a = a^(c>>13); \ 15 b = b-c; b = b-a; b = b^(a<<8); \ 16 c = c-a; c = c-b; c = c^(b>>13); \ 17 a = a-b; a = a-c; a = a^(c>>12); \ 18 b = b-c; b = b-a; b = b^(a<<16); \ 19 c = c-a; c = c-b; c = c^(b>>5); \ [all …]
|
| /kernel/linux/linux-6.6/arch/mips/include/asm/ |
| D | unaligned-emul.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #define _LoadHW(addr, value, res, type) \ argument 11 "1:\t"type##_lb("%0", "0(%2)")"\n" \ 12 "2:\t"type##_lbu("$1", "1(%2)")"\n\t"\ 23 STR(PTR_WD)"\t1b, 4b\n\t" \ 24 STR(PTR_WD)"\t2b, 4b\n\t" \ 27 : "r" (addr), "i" (-EFAULT)); \ 31 #define _LoadW(addr, value, res, type) \ argument 34 "1:\t"type##_lwl("%0", "(%2)")"\n" \ 35 "2:\t"type##_lwr("%0", "3(%2)")"\n\t"\ [all …]
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/ |
| D | unaligned-emul.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #define _LoadHW(addr, value, res, type) \ argument 11 "1:\t"type##_lb("%0", "0(%2)")"\n" \ 12 "2:\t"type##_lbu("$1", "1(%2)")"\n\t"\ 23 STR(PTR)"\t1b, 4b\n\t" \ 24 STR(PTR)"\t2b, 4b\n\t" \ 27 : "r" (addr), "i" (-EFAULT)); \ 31 #define _LoadW(addr, value, res, type) \ argument 34 "1:\t"type##_lwl("%0", "(%2)")"\n" \ 35 "2:\t"type##_lwr("%0", "3(%2)")"\n\t"\ [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | mm.c | 26 #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \ 27 list_entry((root)->nl_entry.dir, struct nvkm_mm_node, nl_entry) 36 list_for_each_entry(node, &mm->nodes, nl_entry) { in nvkm_mm_dump() 38 node->offset, node->length, node->type); in nvkm_mm_dump() 41 list_for_each_entry(node, &mm->free, fl_entry) { in nvkm_mm_dump() 43 node->offset, node->length, node->type); in nvkm_mm_dump() 56 if (prev && prev->type == NVKM_MM_TYPE_NONE) { in nvkm_mm_free() 57 prev->length += this->length; in nvkm_mm_free() 58 list_del(&this->nl_entry); in nvkm_mm_free() 62 if (next && next->type == NVKM_MM_TYPE_NONE) { in nvkm_mm_free() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/ |
| D | mm.c | 26 #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \ 27 list_entry((root)->nl_entry.dir, struct nvkm_mm_node, nl_entry) 36 list_for_each_entry(node, &mm->nodes, nl_entry) { in nvkm_mm_dump() 38 node->offset, node->length, node->type); in nvkm_mm_dump() 41 list_for_each_entry(node, &mm->free, fl_entry) { in nvkm_mm_dump() 43 node->offset, node->length, node->type); in nvkm_mm_dump() 56 if (prev && prev->type == NVKM_MM_TYPE_NONE) { in nvkm_mm_free() 57 prev->length += this->length; in nvkm_mm_free() 58 list_del(&this->nl_entry); in nvkm_mm_free() 62 if (next && next->type == NVKM_MM_TYPE_NONE) { in nvkm_mm_free() [all …]
|
| /kernel/linux/linux-5.10/tools/lib/bpf/ |
| D | bpf_core_read.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 7 * __builtin_preserve_field_info() built-in to get a specific aspect of 22 /* second argument to __builtin_btf_type_id() built-in */ 24 BPF_TYPE_ID_LOCAL = 0, /* BTF type ID in local program */ 25 BPF_TYPE_ID_TARGET = 1, /* BTF type ID in target kernel */ 28 /* second argument to __builtin_preserve_type_info() built-in */ 30 BPF_TYPE_EXISTS = 0, /* type existence in target kernel */ 31 BPF_TYPE_SIZE = 1, /* type size in target kernel */ 34 /* second argument to __builtin_preserve_enum_value() built-in */ 41 __builtin_preserve_field_info((src)->field, BPF_FIELD_##info) [all …]
|
| /kernel/linux/linux-5.10/scripts/atomic/ |
| D | atomics.tbl | 4 # Upper-case implies _{acquire,release,relaxed} variants. 6 # * B/b - bool: returns bool 7 # * v - void: returns void 8 # * I/i - int: returns base type 9 # * R - return: returns base type (has _return variants) 10 # * F/f - fetch: returns base type (has fetch_ variants) 11 # * l - load: returns base type (has _acquire order variant) 12 # * s - store: returns void (has _release order variant) 14 # Where args contains list of type[:name], where type is: 15 # * cv - const pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) [all …]
|
| /kernel/linux/linux-6.6/scripts/atomic/ |
| D | atomics.tbl | 4 # Upper-case implies _{acquire,release,relaxed} variants. 6 # * B/b - bool: returns bool 7 # * v - void: returns void 8 # * I/i - int: returns base type 9 # * R - return: returns base type (has _return variants) 10 # * F/f - fetch: returns base type (has fetch_ variants) 11 # * l - load: returns base type (has _acquire order variant) 12 # * s - store: returns void (has _release order variant) 14 # Where args contains list of type[:name], where type is: 15 # * cv - const pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) [all …]
|
| /kernel/linux/linux-6.6/tools/lib/bpf/ |
| D | bpf_core_read.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 7 * __builtin_preserve_field_info() built-in to get a specific aspect of 22 /* second argument to __builtin_btf_type_id() built-in */ 24 BPF_TYPE_ID_LOCAL = 0, /* BTF type ID in local program */ 25 BPF_TYPE_ID_TARGET = 1, /* BTF type ID in target kernel */ 28 /* second argument to __builtin_preserve_type_info() built-in */ 30 BPF_TYPE_EXISTS = 0, /* type existence in target kernel */ 31 BPF_TYPE_SIZE = 1, /* type size in target kernel */ 32 BPF_TYPE_MATCHES = 2, /* type match in target kernel */ 35 /* second argument to __builtin_preserve_enum_value() built-in */ [all …]
|
| /kernel/linux/linux-6.6/include/linux/usb/ |
| D | pd_vdo.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 21 * ---------- 23 * <15> :: VDM type ( 1b == structured, 0b == unstructured ) 26 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only) 27 * <7:6> :: command type (SVDM only?) 28 * <5> :: reserved (SVDM), command type (UVDM) 31 #define VDO(vid, type, ver, custom) \ argument 33 ((type) << 15) | \ 85 * SVDM Identity request -> response [all …]
|
| /kernel/linux/linux-5.10/tools/include/linux/ |
| D | overflow.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 9 * maximum values representable in a given type. These macros may also 15 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 16 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 20 * the type_max expression (but not if -fsanitize=undefined is in 24 * macros also produce sensible values for the exotic type _Bool. [The 26 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on 31 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html - 34 #define is_signed_type(type) (((type)(-1)) < (type)1) argument 35 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) argument [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
| D | devlink_trap_control.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test devlink-trap control trap functionality over mlxsw. Each registered 8 # +---------------------------------+ 16 # +----|----------------------------+ 18 # +----|----------------------------------------------------------------------+ 28 # +----|----------------------------------------------------------------------+ 30 # +----|----------------------------+ 38 # +---------------------------------+ 97 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 98 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 [all …]
|
| /kernel/linux/linux-6.6/tools/include/linux/ |
| D | overflow.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 9 * type. These macros may also be useful elsewhere. It would seem more obvious 12 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 13 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 17 * the type_max expression (but not if -fsanitize=undefined is in 21 * macros also produce sensible values for the exotic type _Bool. [The 23 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on 28 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html - 31 #define is_signed_type(type) (((type)(-1)) < (type)1) argument 32 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) argument [all …]
|
| /kernel/linux/linux-6.6/drivers/media/common/videobuf2/ |
| D | videobuf2-v4l2.c | 2 * videobuf2-v4l2.c - V4L2 driver helper framework 9 * The vb2_thread implementation was based on code from videobuf-dvb.c: 28 #include <media/v4l2-common.h> 29 #include <media/v4l2-dev.h> 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-event.h> 32 #include <media/v4l2-fh.h> 34 #include <media/videobuf2-v4l2.h> 42 pr_info("vb2-v4l2: [%p] %s: " fmt, \ 43 (q)->name, __func__, ## arg); \ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | devlink_trap_control.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test devlink-trap control trap functionality over mlxsw. Each registered 8 # +---------------------------------+ 16 # +----|----------------------------+ 18 # +----|----------------------------------------------------------------------+ 28 # +----|----------------------------------------------------------------------+ 30 # +----|----------------------------+ 38 # +---------------------------------+ 95 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 96 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
| D | tbf.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 18 "matchPattern": "qdisc tbf 1: root refcnt [0-9]+ rate 10Kbit burst 1500b limit 1000b", 22 "$IP link del dev $DUMMY type dummy" 36 "$IP link add dev $DUMMY type dummy || /bin/true" 41 "matchPattern": "qdisc tbf 1: root refcnt [0-9]+ rate 20Kbit burst 1500b limit 1000b", 45 "$IP link del dev $DUMMY type dummy" 59 "$IP link add dev $DUMMY type dummy || /bin/true" 64 …matchPattern": "qdisc tbf 1: root refcnt [0-9]+ rate 20Kbit burst 1500b peakrate 30Kbit minburst.*… 68 "$IP link del dev $DUMMY type dummy" 72 "id": "239b", [all …]
|
| /kernel/liteos_m/arch/risc-v/nuclei/gcc/nmsis/Core/Include/ |
| D | core_feature_dsp.h | 4 * SPDX-License-Identifier: Apache-2.0 10 * www.apache.org/licenses/LICENSE-2.0 41 * \brief Functions that generate RISC-V DSP SIMD instructions. 44 …* The following functions generate specified RISC-V SIMD instructions that cannot be directly acce… 47 * - r.H == rH1: r[31:16], r.L == r.H0: r[15:0] 48 * - r.B3: r[31:24], r.B2: r[23:16], r.B1: r[15:8], r.B0: r[7:0] 49 * - r.B[x]: r[(x*8+7):(x*8+0)] 50 * - r.H[x]: r[(x*16+7):(x*16+0)] 51 * - r.W[x]: r[(x*32+31):(x*32+0)] 52 …* - r[xU]: the upper 32-bit of a 64-bit number; xU represents the GPR number that contains thi… [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | overflow.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 10 * maximum values representable in a given type. These macros may also 16 * #define type_min(T) (T)(is_signed_type(T) ? (T)1 << (8*sizeof(T)-1) : 0) 17 * #define type_max(T) (T)(is_signed_type(T) ? ((T)1 << (8*sizeof(T)-1)) - 1 : ~(T)0) 21 * the type_max expression (but not if -fsanitize=undefined is in 25 * macros also produce sensible values for the exotic type _Bool. [The 27 * a-feature-not-a-bug, since people shouldn't be doing arithmetic on 32 * https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html - 35 #define is_signed_type(type) (((type)(-1)) < (type)1) argument 36 #define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type))) argument [all …]
|
| /kernel/linux/linux-6.6/Documentation/networking/devlink/ |
| D | ice.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 .. list-table:: Generic parameters implemented 15 * - Name 16 - Mode 17 - Notes 18 * - ``enable_roce`` 19 - runtime 20 - mutually exclusive with ``enable_iwarp`` 21 * - ``enable_iwarp`` 22 - runtime [all …]
|
| /kernel/linux/linux-5.10/arch/m68k/include/asm/ |
| D | bootstd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * (c) 1999, Rt-Control, Inc. 38 #define __bsc_return(type, res) \ argument 40 if ((unsigned long)(res) >= (unsigned long)(-64)) { \ 42 int __err = -(res); \ 44 res = -1; \ 46 return (type)(res); \ 49 #define _bsc0(type,name) \ argument 50 type name(void) \ 57 __bsc_return(type,__res); \ [all …]
|
| /kernel/linux/linux-6.6/arch/m68k/include/asm/ |
| D | bootstd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * (c) 1999, Rt-Control, Inc. 38 #define __bsc_return(type, res) \ argument 40 if ((unsigned long)(res) >= (unsigned long)(-64)) { \ 42 int __err = -(res); \ 44 res = -1; \ 46 return (type)(res); \ 49 #define _bsc0(type,name) \ argument 50 type name(void) \ 57 __bsc_return(type,__res); \ [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/lib/ |
| D | feature-fixups-test.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 #include <asm/feature-fixups.h> 9 #include <asm/asm-compat.h> 10 #include <asm/ppc-opcode.h> 113 2: b 3f 115 beq 3b 116 b 1f 118 b 2b 119 1: bdnz 3b 127 2: b 3f [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/lib/ |
| D | feature-fixups-test.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 #include <asm/feature-fixups.h> 9 #include <asm/asm-compat.h> 10 #include <asm/ppc-opcode.h> 113 2: b 3f 115 beq 3b 116 b 1f 118 b 2b 119 1: bdnz 3b 127 2: b 3f [all …]
|
| /kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
| D | videobuf2-v4l2.c | 2 * videobuf2-v4l2.c - V4L2 driver helper framework 9 * The vb2_thread implementation was based on code from videobuf-dvb.c: 28 #include <media/v4l2-common.h> 29 #include <media/v4l2-dev.h> 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-event.h> 32 #include <media/v4l2-fh.h> 34 #include <media/videobuf2-v4l2.h> 42 pr_info("vb2-v4l2: [%p] %s: " fmt, \ 43 (q)->name, __func__, ## arg); \ [all …]
|