/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 # +---------------------------------+ 96 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 97 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
D | htb.json | 13 "$IP link add dev $DUMMY type dummy || /bin/true" 18 …"matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 10 default 0 direct_packets_stat.*direct_qlen… 22 "$IP link del dev $DUMMY type dummy" 27 "name": "Create HTB with default-N setting", 36 "$IP link add dev $DUMMY type dummy || /bin/true" 41 …"matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 10 default 0x10 direct_packets_stat.* direct_… 45 "$IP link del dev $DUMMY type dummy" 59 "$IP link add dev $DUMMY type dummy || /bin/true" 64 …"matchPattern": "qdisc htb 1: root refcnt [0-9]+ r2q 5 default 0 direct_packets_stat.*direct_qlen", 68 "$IP link del dev $DUMMY type dummy" [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm-generic/access_ok.h> 38 " jra 2b\n" \ 43 " .long 1b,10b\n" \ 44 " .long 2b,10b\n" \ 60 " jra 3b\n" \ 65 " .long 1b,10b\n" \ 66 " .long 2b,10b\n" \ 67 " .long 3b,10b\n" \ 70 : "r" (x), "i" (-EFAULT) \ [all …]
|
/Linux-v6.1/drivers/iommu/intel/ |
D | cap_audit.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cap_audit.c - audit iommu capabilities for boot time and hot plug 20 struct intel_iommu *b) in check_irq_capabilities() argument 22 CHECK_FEATURE_MISMATCH(a, b, cap, pi_support, CAP_PI_MASK); in check_irq_capabilities() 23 CHECK_FEATURE_MISMATCH(a, b, ecap, eim_support, ECAP_EIM_MASK); in check_irq_capabilities() 27 struct intel_iommu *b) in check_dmar_capabilities() argument 29 MINIMAL_FEATURE_IOMMU(b, cap, CAP_MAMV_MASK); in check_dmar_capabilities() 30 MINIMAL_FEATURE_IOMMU(b, cap, CAP_NFR_MASK); in check_dmar_capabilities() 31 MINIMAL_FEATURE_IOMMU(b, cap, CAP_SLLPS_MASK); in check_dmar_capabilities() 32 MINIMAL_FEATURE_IOMMU(b, cap, CAP_FRO_MASK); in check_dmar_capabilities() [all …]
|
/Linux-v6.1/include/dt-bindings/usb/ |
D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 64 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */ 89 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 99 * -------------------- 102 * <29:27> :: product type (UFP / Cable / VPD) 103 * <26> :: modal operation supported (1b == yes) 104 * <25:23> :: product type (DFP) (SVDM version 2.0+ only; set to zero in version 1.0) 105 * <22:21> :: connector type (SVDM version 2.0+ only; set to zero in version 1.0) 107 * <15:0> :: USB-IF assigned VID for this cable vendor 113 /* SOP Product Type (UFP) */ [all …]
|
/Linux-v6.1/tools/power/acpi/man/ |
D | pfrut.8 | 5 pfrut \- Platform Firmware Runtime Update and Telemetry tool 8 \f[B]pfrut\f[R] [\f[I]Options\f[R]] 25 \f[B]pfrut\f[R] is the tool to interact with the kernel interface. 31 .B \f[B]\-h\f[R], \f[B]\-\-help\f[R] 34 .B \f[B]\-l\f[R], \f[B]\-\-load\f[R] 39 .B \f[B]\-s\f[R], \f[B]\-\-stage\f[R] 43 .B \f[B]\-a\f[R], \f[B]\-\-activate\f[R] 46 .B \f[B]\-u\f[R], \f[B]\-\-update\f[R] 49 .B \f[B]\-q\f[R], \f[B]\-\-query\f[R] 52 .B \f[B]\-d\f[R], \f[B]\-\-setrev\f[R] [all …]
|
/Linux-v6.1/arch/sparc/include/asm/ |
D | uaccess_64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <asm-generic/access_ok.h> 31 return addr > limit - size; in __chk_range_not_ok() 48 /* Uh, these should become the main single-value transfer routines.. 50 * pointer type.. 75 #define __put_kernel_nofault(dst, src, type, label) \ argument 77 type *addr = (type __force *)(dst); \ 78 type data = *(type *)src; \ 80 switch (sizeof(type)) { \ 81 case 1: __put_kernel_asm(data, b, addr, __pu_ret); break; \ [all …]
|
/Linux-v6.1/arch/s390/include/asm/ |
D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Derived from "include/asm-i386/uaccess.h" 16 #include <asm/asm-extable.h> 21 #include <asm-generic/access_ok.h> 95 EX_TABLE_UA_STORE(0b, 2b, %[rc]) \ 96 EX_TABLE_UA_STORE(1b, 2b, %[rc]) \ 151 EX_TABLE_UA_LOAD_MEM(0b, 2b, %[rc], %[_to], %[_ksize]) \ 152 EX_TABLE_UA_LOAD_MEM(1b, 2b, %[rc], %[_to], %[_ksize]) \ 194 * These are the main single-value transfer routines. They automatically 195 * use the right size if we just have the right pointer type. [all …]
|
/Linux-v6.1/security/tomoyo/ |
D | file.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2005-2011 NTT DATA CORPORATION 61 * tomoyo_put_name_union - Drop reference on "struct tomoyo_name_union". 69 tomoyo_put_group(ptr->group); in tomoyo_put_name_union() 70 tomoyo_put_name(ptr->filename); in tomoyo_put_name_union() 74 * tomoyo_compare_name_union - Check whether a name matches "struct tomoyo_name_union" or not. 85 if (ptr->group) in tomoyo_compare_name_union() 86 return tomoyo_path_matches_group(name, ptr->group); in tomoyo_compare_name_union() 87 if (tomoyo_path_matches_pattern(name, ptr->filename)) in tomoyo_compare_name_union() 88 return ptr->filename; in tomoyo_compare_name_union() [all …]
|
/Linux-v6.1/net/core/ |
D | gen_stats.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size, int padattr) in gnet_stats_copy() argument 26 if (nla_put_64bit(d->skb, type, size, buf, padattr)) in gnet_stats_copy() 31 if (d->lock) in gnet_stats_copy() 32 spin_unlock_bh(d->lock); in gnet_stats_copy() 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 35 d->xstats_len = 0; in gnet_stats_copy() 36 return -1; in gnet_stats_copy() 40 * gnet_stats_start_copy_compat - start dumping procedure in compatibility mode [all …]
|
/Linux-v6.1/arch/sh/include/asm/ |
D | io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * read{b,w,l,q}/write{b,w,l,q} are for PCI, 8 * while in{b,w,l}/out{b,w,l} are for ISA 10 * In addition we have 'pausing' versions: in{b,w,l}_p/out{b,w,l}_p 11 * and 'string' versions: ins{b,w,l}/outs{b,w,l} 13 * While read{b,w,l,q} and write{b,w,l,q} contain memory barriers 22 #include <asm-generic/iomap.h> 26 #include <asm-generic/pci_iomap.h> 27 #include <mach/mangle-port.h> 67 #define __BUILD_UNCACHED_IO(bwlq, type) \ argument [all …]
|
/Linux-v6.1/security/ |
D | device_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * device_cgroup.c - device cgroup subsystem 8 #include <linux/bpf-cgroup.h> 37 short type; member 72 list_add_tail(&new->list, dest); in dev_exceptions_copy() 79 list_del(&ex->list); in dev_exceptions_copy() 82 return -ENOMEM; in dev_exceptions_copy() 97 return -ENOMEM; in dev_exception_add() 99 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add() 100 if (walk->type != ex->type) in dev_exception_add() [all …]
|
/Linux-v6.1/include/trace/events/ |
D | 9p.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 90 #define EM(a, b) TRACE_DEFINE_ENUM(a); argument 91 #define EMe(a, b) TRACE_DEFINE_ENUM(a); argument 96 /* And also use EM/EMe to define helper enums -- once */ 101 #define EM(a, b) a, argument 102 #define EMe(a, b) a argument 116 #define EM(a, b) { a, b }, argument 117 #define EMe(a, b) { a, b } argument 119 #define show_9p_op(type) \ argument 120 __print_symbolic(type, P9_MSG_T) [all …]
|
/Linux-v6.1/net/ceph/ |
D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 13 b = b - c; b = b - a; b = b ^ (a << 8); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 16 b = b - c; b = b - a; b = b ^ (a << 16); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 19 b = b - c; b = b - a; b = b ^ (a << 10); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ [all …]
|