/linux-6.12.1/include/asm-generic/ |
D | xor.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/asm-generic/xor.h 5 * Generic optimized RAID-5 checksumming functions. 11 xor_8regs_2(unsigned long bytes, unsigned long * __restrict p1, in xor_8regs_2() argument 17 p1[0] ^= p2[0]; in xor_8regs_2() 18 p1[1] ^= p2[1]; in xor_8regs_2() 19 p1[2] ^= p2[2]; in xor_8regs_2() 20 p1[3] ^= p2[3]; in xor_8regs_2() 21 p1[4] ^= p2[4]; in xor_8regs_2() 22 p1[5] ^= p2[5]; in xor_8regs_2() [all …]
|
/linux-6.12.1/scripts/coccinelle/api/ |
D | atomic_as_refcounter.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright (c) 2016-2017, Elena Reshetova, Intel Corporation 9 // Options: --include-headers --very-quiet 15 position p1, p2; 26 atomic_dec_and_test@p1(&(a)->x) 28 atomic_dec_and_lock@p1(&(a)->x, ...) 30 atomic_long_dec_and_lock@p1(&(a)->x, ...) 32 atomic_long_dec_and_test@p1(&(a)->x) 34 atomic64_dec_and_test@p1(&(a)->x) 36 local_dec_and_test@p1(&(a)->x) [all …]
|
D | kstrdup.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright: (C) 2010-2012 Nicolas Palix. 6 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. 7 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. 10 // Options: --no-includes --include-headers 23 - to = kmalloc(strlen(from) + 1,flag); 28 - strcpy(to, from); 36 - x = strlen(from) + 1; 38 - to = \(kmalloc\|kzalloc\)(x,flag); 43 - memcpy(to, from, x); [all …]
|
D | d_find_alias.cocci | 1 // SPDX-License-Identifier: GPL-2.0 8 // Options: --include-headers 19 position p1, p2; 22 if (!(dent@p1 = d_find_alias(...))) S1 24 dent@p1 = d_find_alias(...) 46 position r.p1,r.p2; 48 * dent@p1 = ... 58 p1 << r.p1; 61 cocci.print_main("Missing call to dput()",p1) 77 p1 << r.p1; [all …]
|
/linux-6.12.1/scripts/coccinelle/misc/ |
D | array_size_dup.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 13 // Options: --no-includes --include-headers --no-loops 30 position p1, p2; 33 * E1 * E2@p1 39 p1 << as_next.p1; 44 coccilib.report.print_report(p1[0], msg) 47 p1 << as_next.p1; 52 coccilib.org.print_todo(p1[0], msg) 59 position p1, p2; 62 * array_size(E1, E2)@p1 [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | ultrasound.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * ultrasound.h - Macros for programming the Gravis Ultrasound 10 * Copyright (C) by Hannu Savolainen 1993-1997 22 * byte 0 - SEQ_PRIVATE (0xfe) 23 * byte 1 - Synthesizer device number (0-N) 24 * byte 2 - Command (see below) 25 * byte 3 - Voice number (0-31) 26 * bytes 4 and 5 - parameter P1 (unsigned short) 27 * bytes 6 and 7 - parameter P2 (unsigned short) 31 * Unused parameters (P1 and/or P2 *MUST* be initialized to zero). [all …]
|
/linux-6.12.1/tools/testing/selftests/cgroup/ |
D | test_cpuset_prs.sh | 2 # SPDX-License-Identifier: GPL-2.0 16 [[ $(id -u) -eq 0 ]] || skip_test "Test must be run as root!" 23 CGROUP2=$(mount -t cgroup2 | head -1 | awk -e '{print $3}') 24 [[ -n "$CGROUP2" ]] || skip_test "Cgroup v2 mount point not found!" 28 NR_CPUS=$(lscpu | grep "^CPU(s):" | sed -e "s/.*:[[:space:]]*//") 29 [[ $NR_CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!" 32 if [[ -c /dev/console && -w /dev/console ]] 44 while [[ "$1" = -* ]] 47 -v) ((VERBOSE++)) 49 [[ $DELAY_FACTOR -eq 1 ]] && [all …]
|
/linux-6.12.1/drivers/media/i2c/ |
D | aptina-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include "aptina-pll.h" 23 unsigned int p1; in aptina_pll_calculate() local 27 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate() 29 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate() 30 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate() 32 return -EINVAL; in aptina_pll_calculate() 35 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate() 37 return -EINVAL; in aptina_pll_calculate() 40 /* Compute the multiplier M and combined N*P1 divisor. */ in aptina_pll_calculate() [all …]
|
/linux-6.12.1/scripts/coccinelle/locks/ |
D | double_lock.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 12 // Options: --no-includes --include-headers 18 position p1; 24 mutex_lock@p1 26 mutex_trylock@p1 28 spin_lock@p1 30 spin_trylock@p1 32 read_lock@p1 34 read_trylock@p1 36 write_lock@p1 [all …]
|
D | mini_lock.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 10 // Copyright: (C) 2010-2012 Nicolas Palix. 11 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. 12 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. 15 // Options: --no-includes --include-headers 22 position p1,p; 27 mutex_lock@p1 29 mutex_trylock@p1 31 spin_lock@p1 33 spin_trylock@p1 [all …]
|
D | call_kern.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 13 // Options: --no-includes --include-headers 41 position p1,p2; 45 read_lock_irq@p1 47 write_lock_irq@p1 49 read_lock_irqsave@p1 51 write_lock_irqsave@p1 53 spin_lock@p1 55 spin_trylock@p1 57 spin_lock_irq@p1 [all …]
|
D | flags.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright: (C) 2010-2012 Nicolas Palix. 6 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. 7 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. 10 // Options: --no-includes --include-headers 18 position p1,p2; 22 spin_lock_irqsave@p1(lock1,flags) 24 read_lock_irqsave@p1(lock1,flags) 26 write_lock_irqsave@p1(lock1,flags) 46 position r.p1, r.p2; [all …]
|
/linux-6.12.1/tools/testing/selftests/landlock/ |
D | scoped_base_variants.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 8 * Copyright © 2019-2020 ANSSI 12 /* clang-format on */ 23 * P1-. P1 -> P2 : allow 24 * \ P2 -> P1 : allow 27 /* clang-format off */ 29 /* clang-format on */ in FIXTURE_VARIANT_ADD() 38 * P1--. P1 -> P2 : allow 39 * \ P2 -> P1 : deny [all …]
|
/linux-6.12.1/scripts/coccinelle/null/ |
D | eno.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright: (C) 2010-2012 Nicolas Palix. 6 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. 7 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. 10 // Options: --no-includes --include-headers 23 - IS_ERR(x) 28 position p1,p2; 31 …= \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_allo… 36 p1 << r.p1; 40 cocci.print_main("alloc call",p1) [all …]
|
D | deref_null.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 11 // Comments: -I ... -all_includes can give more complete results 23 position p1; 26 (E != NULL && ...) ? <+...E->f@p1...+> : ... 35 (E != NULL) && ... && <+...E->f@p2...+> 37 (E == NULL) || ... || <+...E->f@p2...+> 39 sizeof(<+...E->f@p2...+>) 45 position p1; 48 if@p1 ((E == NULL && ...) || ...) S1 else S2 59 position p!={pr1.p1,pr2.p2}; [all …]
|
/linux-6.12.1/arch/arm/include/asm/ |
D | xor.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 #include <asm-generic/xor.h> 47 xor_arm4regs_2(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_2() argument 61 GET_BLOCK_4(p1); in xor_arm4regs_2() 63 PUT_BLOCK_4(p1); in xor_arm4regs_2() 64 } while (--lines); in xor_arm4regs_2() 68 xor_arm4regs_3(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_3() argument 83 GET_BLOCK_4(p1); in xor_arm4regs_3() 86 PUT_BLOCK_4(p1); in xor_arm4regs_3() 87 } while (--lines); in xor_arm4regs_3() [all …]
|
/linux-6.12.1/arch/x86/include/asm/ |
D | xor.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Optimized RAID-5 checksumming functions for SSE. 16 * High-speed RAID5 checksumming functions utilizing SSE instructions. 21 * x86-64 changes / gcc fixes from Andi Kleen. 25 * no advantages to be gotten from x86-64 here anyways. 39 #define PF0(x) " prefetchnta "PF_OFFS(x)"(%[p1]) ;\n" 40 #define LD(x, y) " movaps "OFFS(x)"(%[p1]), %%xmm"#y" ;\n" 41 #define ST(x, y) " movaps %%xmm"#y", "OFFS(x)"(%[p1]) ;\n" 60 xor_sse_2(unsigned long bytes, unsigned long * __restrict p1, in xor_sse_2() argument 99 " add %[inc], %[p1] ;\n" in xor_sse_2() [all …]
|
D | xor_avx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 * Optimized RAID-5 checksumming functions for AVX 30 const unsigned long * __restrict p1) in xor_avx_2() argument 36 while (lines--) { in xor_avx_2() 40 asm volatile("vmovdqa %0, %%ymm" #reg : : "m" (p1[i / sizeof(*p1)])); \ in xor_avx_2() 50 p1 = (unsigned long *)((uintptr_t)p1 + 512); in xor_avx_2() 57 const unsigned long * __restrict p1, in xor_avx_3() argument 64 while (lines--) { in xor_avx_3() 70 "m" (p1[i / sizeof(*p1)])); \ in xor_avx_3() 80 p1 = (unsigned long *)((uintptr_t)p1 + 512); in xor_avx_3() [all …]
|
D | kvm_para.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 24 /* For KVM hypercalls, a three-byte sequence of either the vmcall or the vmmcall 48 static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) in kvm_hypercall1() argument 53 return tdx_kvm_hypercall(nr, p1, 0, 0, 0); in kvm_hypercall1() 57 : "a"(nr), "b"(p1) in kvm_hypercall1() 62 static inline long kvm_hypercall2(unsigned int nr, unsigned long p1, in kvm_hypercall2() argument 68 return tdx_kvm_hypercall(nr, p1, p2, 0, 0); in kvm_hypercall2() 72 : "a"(nr), "b"(p1), "c"(p2) in kvm_hypercall2() 77 static inline long kvm_hypercall3(unsigned int nr, unsigned long p1, in kvm_hypercall3() argument 83 return tdx_kvm_hypercall(nr, p1, p2, p3, 0); in kvm_hypercall3() [all …]
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
D | i2c_.fuc | 79 // $r3 - value 80 // $r2 - sda line 81 // $r1 - scl line 82 // $r0 - zero 102 bclr $flags $p1 106 bset $flags $p1 111 bclr $flags $p1 115 bset $flags $p1 166 bra $p1 #i2c_raise_scl_done 175 bra not $p1 #i2c_start_rep [all …]
|
/linux-6.12.1/scripts/coccinelle/iterators/ |
D | use_after_iter.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 15 // Options: --no-includes --include-headers 38 position p1,p2; 43 list_for_each_entry@p1(c,...,member) { ... when != break; 48 list_for_each_entry_reverse@p1(c,...,member) { ... when != break; 53 list_for_each_entry_continue@p1(c,...,member) { ... when != break; 58 list_for_each_entry_continue_reverse@p1(c,...,member) { ... when != break; 63 list_for_each_entry_from@p1(c,...,member) { ... when != break; 68 list_for_each_entry_safe@p1(c,...,member) { ... when != break; 73 list_for_each_entry_safe_continue@p1(c,...,member) { ... when != break; [all …]
|
D | list_entry_update.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 13 // Options: --no-includes --include-headers 22 position p1,p2; 25 list_for_each_entry@p1(x,...) { <... x =@p2 E ...> } 29 position r.p1,r.p2; 35 list_for_each_entry@p1(x,...) S 37 // ------------------------------------------------------------------------ 41 position r.p1,r.p2; 47 list_for_each_entry@p1(x,...) S 50 p1 << r.p1; [all …]
|
/linux-6.12.1/drivers/ata/pata_parport/ |
D | on26.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * (c) 1997-1998 Grant R. Guenther <grant@torque.net> 5 * on26.c is a low-level protocol driver for the 19 * mode codes: 0 nybble reads, 8-bit writes 20 * 1 8-bit reads and writes 21 * 2 8-bit EPP mode 22 * 3 EPP-16 23 * 4 EPP-32 28 #define P1 \ macro 39 * cont = 0 - access the IDE register file [all …]
|
/linux-6.12.1/arch/arm64/lib/ |
D | xor-neon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm64/lib/xor-neon.c 11 #include <asm/neon-intrinsics.h> 13 static void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1, in xor_arm64_neon_2() argument 16 uint64_t *dp1 = (uint64_t *)p1; in xor_arm64_neon_2() 23 /* p1 ^= p2 */ in xor_arm64_neon_2() 37 } while (--lines > 0); in xor_arm64_neon_2() 40 static void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1, in xor_arm64_neon_3() argument 44 uint64_t *dp1 = (uint64_t *)p1; in xor_arm64_neon_3() 52 /* p1 ^= p2 */ in xor_arm64_neon_3() [all …]
|
/linux-6.12.1/scripts/coccinelle/free/ |
D | kfree.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Copyright: (C) 2010-2012 Nicolas Palix. 10 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. 11 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. 14 // Options: --no-includes --include-headers 21 position p1; 25 kfree@p1(E) 27 kfree_sensitive@p1(E) 83 position free.p1!=loop.ok,p2!={print.p,sz.p}; 87 kfree@p1(E,...) [all …]
|