/Linux-v6.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-v6.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!" 19 [[ -d /sys/kernel/debug/sched ]] && echo Y > /sys/kernel/debug/sched/verbose 25 CGROUP2=$(mount -t cgroup2 | head -1 | awk -e '{print $3}') 26 [[ -n "$CGROUP2" ]] || skip_test "Cgroup v2 mount point not found!" 28 CPUS=$(lscpu | grep "^CPU(s)" | sed -e "s/.*:[[:space:]]*//") 29 [[ $CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!" 35 while [[ "$1" = -* ]] 38 -v) VERBOSE=1 41 -d) DELAY_FACTOR=$2 [all …]
|
/Linux-v6.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-v6.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-v6.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-v6.1/drivers/media/i2c/ |
D | aptina-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include "aptina-pll.h" 24 unsigned int p1; in aptina_pll_calculate() local 28 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate() 30 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate() 31 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate() 33 return -EINVAL; in aptina_pll_calculate() 36 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate() 38 return -EINVAL; in aptina_pll_calculate() 41 /* Compute the multiplier M and combined N*P1 divisor. */ in aptina_pll_calculate() [all …]
|
/Linux-v6.1/drivers/thermal/qcom/ |
D | tsens-v0_1.c | 1 // SPDX-License-Identifier: GPL-2.0 9 /* ----- SROT ------ */ 12 /* ----- TM ------ */ 229 u32 p1[5], p2[5]; in calibrate_8916() local 233 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916() 237 qfprom_csel = (u32 *)qfprom_read(priv->dev, "calib_sel"); in calibrate_8916() 244 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in calibrate_8916() 254 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916() 259 p1[0] = (qfprom_cdata[0] & MSM8916_S0_P1_MASK) >> MSM8916_S0_P1_SHIFT; in calibrate_8916() 260 p1[1] = (qfprom_cdata[0] & MSM8916_S1_P1_MASK) >> MSM8916_S1_P1_SHIFT; in calibrate_8916() [all …]
|
D | tsens-v1.c | 1 // SPDX-License-Identifier: GPL-2.0 12 /* ----- SROT ------ */ 16 /* ----- TM ------ */ 146 u32 *p1, u32 *p2, u32 mode) in compute_intercept_slope_8976() argument 150 priv->sensor[0].slope = 3313; in compute_intercept_slope_8976() 151 priv->sensor[1].slope = 3275; in compute_intercept_slope_8976() 152 priv->sensor[2].slope = 3320; in compute_intercept_slope_8976() 153 priv->sensor[3].slope = 3246; in compute_intercept_slope_8976() 154 priv->sensor[4].slope = 3279; in compute_intercept_slope_8976() 155 priv->sensor[5].slope = 3257; in compute_intercept_slope_8976() [all …]
|
/Linux-v6.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-v6.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-v6.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-v6.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 …]
|
/Linux-v6.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-v6.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-v6.1/tools/testing/selftests/landlock/ |
D | ptrace_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Landlock tests - Ptrace 5 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 6 * Copyright © 2019-2020 ANSSI 63 /* clang-format off */ 65 /* clang-format on */ 75 * Test multiple tracing combinations between a parent process P1 and a child 80 * all P2 requests to trace P1 would be denied. 86 * P1-. P1 -> P2 : allow 87 * \ P2 -> P1 : allow [all …]
|
/Linux-v6.1/drivers/block/paride/ |
D | on26.c | 2 on26.c (c) 1997-8 Grant R. Guenther <grant@torque.net> 5 on26.c is a low-level protocol driver for the 13 1.02 GRG 1998.09.23 updates for the -E rev chip 31 /* mode codes: 0 nybble reads, 8-bit writes 32 1 8-bit reads and writes 33 2 8-bit EPP mode 34 3 EPP-16 35 4 EPP-32 40 #define P1 w2(5);w2(0xd);w2(5);w2(0xd);w2(5);w2(4); macro 43 /* cont = 0 - access the IDE register file [all …]
|
/Linux-v6.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 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 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 …]
|