| /kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
| D | iwl-debug.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 5 * Copyright(c) 2018 - 2020 Intel Corporation 11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 18 #include "iwl-modparams.h" 38 #define CHECK_FOR_NEWLINE(f) BUILD_BUG_ON(f[sizeof(f) - 2] != '\n') argument 41 #define IWL_ERR_DEV(d, f, a...) \ argument 43 CHECK_FOR_NEWLINE(f); \ 44 __iwl_err((d), false, false, f, ## a); \ 46 #define IWL_ERR(m, f, a...) \ argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
| D | iwl-debug.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 5 * Copyright(c) 2018 - 2021 Intel Corporation 13 #include "iwl-modparams.h" 40 #define CHECK_FOR_NEWLINE(f) BUILD_BUG_ON(f[sizeof(f) - 2] != '\n') argument 43 #define __IWL_ERR_DEV(d, mode, f, a...) \ argument 45 CHECK_FOR_NEWLINE(f); \ 46 __iwl_err((d), mode, f, ## a); \ 48 #define IWL_ERR_DEV(d, f, a...) \ argument 49 __IWL_ERR_DEV(d, IWL_ERR_MODE_REGULAR, f, ## a) [all …]
|
| /kernel/linux/linux-6.6/crypto/ |
| D | sm3.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and described 4 * at https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 7 * Copyright (C) 2017 Gilad Ben-Yossef <gilad@benyossef.com> 35 * Transform the message X which consists of 16 32-bit-words. See 36 * GM/T 004-2012 for details. 38 #define R(i, a, b, c, d, e, f, g, h, t, w1, w2) \ argument 40 ss1 = rol32((rol32((a), 12) + (e) + (t)), 7); \ 41 ss2 = ss1 ^ rol32((a), 12); \ 42 d += FF ## i(a, b, c) + ss2 + ((w1) ^ (w2)); \ [all …]
|
| /kernel/linux/linux-5.10/lib/crypto/ |
| D | sha256.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SHA-256, as specified in 4 * http://csrc.nist.gov/groups/STM/cavp/documents/shs/sha256-384-512.pdf 6 * SHA-256 code by Jean-Luc Cooke <jlcooke@certainkey.com>. 8 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com> 43 W[I] = s1(W[I-2]) + W[I-7] + s0(W[I-15]) + W[I-16]; in BLEND_OP() 48 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local 61 a = state[0]; b = state[1]; c = state[2]; d = state[3]; in sha256_transform() 62 e = state[4]; f = state[5]; g = state[6]; h = state[7]; in sha256_transform() 65 t1 = h + e1(e) + Ch(e, f, g) + 0x428a2f98 + W[0]; in sha256_transform() [all …]
|
| /kernel/linux/linux-5.10/scripts/coccinelle/api/ |
| D | kfree_mismatch.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Options: --no-includes --include-headers 64 position a != alloc.kok; 65 position f != free.fok; 70 * kcalloc_node\)(...)@a 74 * \(vfree\|vfree_atomic\|kvfree\)(E)@f 78 position a != alloc.kok; 79 position f != free.fok; 84 kcalloc_node\)(...)@a 88 - \(vfree\|vfree_atomic\|kvfree\)(E)@f [all …]
|
| /kernel/linux/linux-6.6/scripts/coccinelle/api/ |
| D | kfree_mismatch.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Options: --no-includes --include-headers 64 position a != alloc.kok; 65 position f != free.fok; 70 * kcalloc_node\)(...)@a 74 * \(vfree\|vfree_atomic\|kvfree\)(E)@f 78 position a != alloc.kok; 79 position f != free.fok; 84 kcalloc_node\)(...)@a 88 - \(vfree\|vfree_atomic\|kvfree\)(E)@f [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvhw/ |
| D | drf.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 28 #define DRF_BITS(drf) (DRF_HI(drf) - DRF_LO(drf) + 1) 29 #define DRF_MASK(drf) (~0ULL >> (64 - DRF_BITS(drf))) 32 /* Helpers for DRF-MW accessors. */ 41 #define DRF_LW_HI(o,drf) (DRF_MW_SPANS((o),drf) ? (DRF_MW_SIZE(o) - 1) : DRF_HW_HI((o),drf)) 42 #define DRF_LW_BITS(o,drf) (DRF_LW_HI((o),drf) - DRF_LW_LO((o),drf) + 1) 43 #define DRF_LW_MASK(o,drf) (~0ULL >> (64 - DRF_LW_BITS((o),drf))) 53 #define DRF_HW_BITS(o,drf) (DRF_HW_HI((o),drf) - DRF_HW_LO((o),drf) + 1) 54 #define DRF_HW_MASK(o,drf) (~0ULL >> (64 - DRF_HW_BITS((o),drf))) [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvhw/ |
| D | drf.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 28 #define DRF_BITS(drf) (DRF_HI(drf) - DRF_LO(drf) + 1) 29 #define DRF_MASK(drf) (~0ULL >> (64 - DRF_BITS(drf))) 32 /* Helpers for DRF-MW accessors. */ 41 #define DRF_LW_HI(o,drf) (DRF_MW_SPANS((o),drf) ? (DRF_MW_SIZE(o) - 1) : DRF_HW_HI((o),drf)) 42 #define DRF_LW_BITS(o,drf) (DRF_LW_HI((o),drf) - DRF_LW_LO((o),drf) + 1) 43 #define DRF_LW_MASK(o,drf) (~0ULL >> (64 - DRF_LW_BITS((o),drf))) 53 #define DRF_HW_BITS(o,drf) (DRF_HW_HI((o),drf) - DRF_HW_LO((o),drf) + 1) 54 #define DRF_HW_MASK(o,drf) (~0ULL >> (64 - DRF_HW_BITS((o),drf))) [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| D | debug.h | 54 #define brcms_dbg(core, l, f, a...) __brcms_dbg(&(core)->dev, l, __func__, f, ##a) argument 55 #define brcms_info(core, f, a...) __brcms_info(&(core)->dev, f, ##a) argument 56 #define brcms_warn(core, f, a...) __brcms_warn(&(core)->dev, f, ##a) argument 57 #define brcms_err(core, f, a...) __brcms_err(&(core)->dev, f, ##a) argument 58 #define brcms_crit(core, f, a...) __brcms_crit(&(core)->dev, f, ##a) argument 60 #define brcms_dbg_info(core, f, a...) brcms_dbg(core, BRCM_DL_INFO, f, ##a) argument 61 #define brcms_dbg_mac80211(core, f, a...) brcms_dbg(core, BRCM_DL_MAC80211, f, ##a) argument 62 #define brcms_dbg_rx(core, f, a...) brcms_dbg(core, BRCM_DL_RX, f, ##a) argument 63 #define brcms_dbg_tx(core, f, a...) brcms_dbg(core, BRCM_DL_TX, f, ##a) argument 64 #define brcms_dbg_int(core, f, a...) brcms_dbg(core, BRCM_DL_INT, f, ##a) argument [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| D | debug.h | 54 #define brcms_dbg(core, l, f, a...) __brcms_dbg(&(core)->dev, l, __func__, f, ##a) argument 55 #define brcms_info(core, f, a...) __brcms_info(&(core)->dev, f, ##a) argument 56 #define brcms_warn(core, f, a...) __brcms_warn(&(core)->dev, f, ##a) argument 57 #define brcms_err(core, f, a...) __brcms_err(&(core)->dev, f, ##a) argument 58 #define brcms_crit(core, f, a...) __brcms_crit(&(core)->dev, f, ##a) argument 60 #define brcms_dbg_info(core, f, a...) brcms_dbg(core, BRCM_DL_INFO, f, ##a) argument 61 #define brcms_dbg_mac80211(core, f, a...) brcms_dbg(core, BRCM_DL_MAC80211, f, ##a) argument 62 #define brcms_dbg_rx(core, f, a...) brcms_dbg(core, BRCM_DL_RX, f, ##a) argument 63 #define brcms_dbg_tx(core, f, a...) brcms_dbg(core, BRCM_DL_TX, f, ##a) argument 64 #define brcms_dbg_int(core, f, a...) brcms_dbg(core, BRCM_DL_INT, f, ##a) argument [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| D | subdev.h | 1 /* SPDX-License-Identifier: MIT */ 58 mutex_init(&subdev->use.mutex); in nvkm_subdev_ctor() 74 ((CONFIG_NOUVEAU_DEBUG >= (l)) && ((s)->debug >= (l) || ((u) && (u)->debug >= (l)))) 75 #define nvkm_printk___(s,u,l,p,f,a...) do { \ argument 78 dev_##p((s)->device->dev, "%s(%s):"f, (s)->name, (u)->name, ##a); \ 80 dev_##p((s)->device->dev, "%s:"f, (s)->name, ##a); \ 83 #define nvkm_printk__(s,l,p,f,a...) nvkm_printk___((s), (s), (l), p, f, ##a) argument 84 #define nvkm_printk_(s,l,p,f,a...) nvkm_printk__((s), (l), p, " "f, ##a) argument 85 #define nvkm_printk(s,l,p,f,a...) nvkm_printk_((s), NV_DBG_##l, p, f, ##a) argument 86 #define nvkm_fatal(s,f,a...) nvkm_printk((s), FATAL, crit, f, ##a) argument [all …]
|
| /kernel/linux/linux-6.6/sound/core/seq/ |
| D | seq_prioq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> 14 /* Implementation is a simple linked list for now... 17 equeal timestamp the queue behaves as a FIFO. 20 * +-------+ 21 * Head --> | first | 22 * +-------+ 24 * +-----v-+ 26 * +-------+ 28 * +-----v-+ [all …]
|
| /kernel/linux/linux-5.10/sound/core/seq/ |
| D | seq_prioq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> 14 /* Implementation is a simple linked list for now... 17 equeal timestamp the queue behaves as a FIFO. 20 * +-------+ 21 * Head --> | first | 22 * +-------+ 24 * +-----v-+ 26 * +-------+ 28 * +-----v-+ [all …]
|
| /kernel/linux/linux-6.6/arch/ia64/kernel/ |
| D | unaligned.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Architecture-specific unaligned trap handling. 5 * Copyright (C) 1999-2002, 2004 Hewlett-Packard Co 7 * David Mosberger-Tang <davidm@hpl.hp.com> 9 * 2002/12/09 Fix rotating register handling (off-by-1 error, missing fr-rotation). Fix 10 * get_rse_reg() to not leak kernel bits to user-level (reading an out-of-frame 11 * stacked register returns an undefined value; it does NOT trigger a 36 # define DPRINT(a...) do { printk("%s %u: ", __func__, __LINE__); printk (a); } while (0) argument 51 # define DPRINT(a...) argument 69 * For M-unit: [all …]
|
| /kernel/linux/linux-5.10/arch/ia64/kernel/ |
| D | unaligned.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Architecture-specific unaligned trap handling. 5 * Copyright (C) 1999-2002, 2004 Hewlett-Packard Co 7 * David Mosberger-Tang <davidm@hpl.hp.com> 9 * 2002/12/09 Fix rotating register handling (off-by-1 error, missing fr-rotation). Fix 10 * get_rse_reg() to not leak kernel bits to user-level (reading an out-of-frame 11 * stacked register returns an undefined value; it does NOT trigger a 36 # define DPRINT(a...) do { printk("%s %u: ", __func__, __LINE__); printk (a); } while (0) argument 51 # define DPRINT(a...) argument 69 * For M-unit: [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/crypto/ |
| D | md5-asm.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #include <asm/asm-offsets.h> 9 #include <asm/asm-compat.h> 40 PPC_STLU r1,-INT_FRAME_SIZE(r1); \ 61 #define R_00_15(a, b, c, d, w0, w1, p, q, off, k0h, k0l, k1h, k1l) \ argument 63 and rT0,b,c; /* 1: f = b and c */ \ 65 andc rT1,d,b; /* 1: f' = ~b and d */ \ 67 or rT0,rT0,rT1; /* 1: f = f or f' */ \ 69 add a,a,rT0; /* 1: a = a + f */ \ 72 add a,a,w0; /* 1: a = a + wk */ \ [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/crypto/ |
| D | md5-asm.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #include <asm/asm-offsets.h> 9 #include <asm/asm-compat.h> 40 PPC_STLU r1,-INT_FRAME_SIZE(r1); \ 65 #define R_00_15(a, b, c, d, w0, w1, p, q, off, k0h, k0l, k1h, k1l) \ argument 67 and rT0,b,c; /* 1: f = b and c */ \ 69 andc rT1,d,b; /* 1: f' = ~b and d */ \ 71 or rT0,rT0,rT1; /* 1: f = f or f' */ \ 73 add a,a,rT0; /* 1: a = a + f */ \ 76 add a,a,w0; /* 1: a = a + wk */ \ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| D | subdev.h | 1 /* SPDX-License-Identifier: MIT */ 39 #define nvkm_printk_(s,l,p,f,a...) do { \ argument 41 if (CONFIG_NOUVEAU_DEBUG >= (l) && _subdev->debug >= (l)) { \ 42 dev_##p(_subdev->device->dev, "%s: "f, \ 43 nvkm_subdev_name[_subdev->index], ##a); \ 46 #define nvkm_printk(s,l,p,f,a...) nvkm_printk_((s), NV_DBG_##l, p, f, ##a) argument 47 #define nvkm_fatal(s,f,a...) nvkm_printk((s), FATAL, crit, f, ##a) argument 48 #define nvkm_error(s,f,a...) nvkm_printk((s), ERROR, err, f, ##a) argument 49 #define nvkm_warn(s,f,a...) nvkm_printk((s), WARN, notice, f, ##a) argument 50 #define nvkm_info(s,f,a...) nvkm_printk((s), INFO, info, f, ##a) argument [all …]
|
| /kernel/linux/linux-5.10/include/linux/ceph/ |
| D | ceph_frag.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * "Frags" are a way to describe a subset of a 32-bit number space, 7 * using a mask and a value to match against that mask. Any given frag 8 * (subset of the number space) can be partitioned into 2^n sub-frags. 10 * Frags are encoded into a 32-bit word: 25 (v & (0xffffffu << (24-b)) & 0xffffffu); in ceph_frag_make() 27 static inline __u32 ceph_frag_bits(__u32 f) in ceph_frag_bits() argument 29 return f >> 24; in ceph_frag_bits() 31 static inline __u32 ceph_frag_value(__u32 f) in ceph_frag_value() argument 33 return f & 0xffffffu; in ceph_frag_value() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ceph/ |
| D | ceph_frag.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * "Frags" are a way to describe a subset of a 32-bit number space, 7 * using a mask and a value to match against that mask. Any given frag 8 * (subset of the number space) can be partitioned into 2^n sub-frags. 10 * Frags are encoded into a 32-bit word: 25 (v & (0xffffffu << (24-b)) & 0xffffffu); in ceph_frag_make() 27 static inline __u32 ceph_frag_bits(__u32 f) in ceph_frag_bits() argument 29 return f >> 24; in ceph_frag_bits() 31 static inline __u32 ceph_frag_value(__u32 f) in ceph_frag_value() argument 33 return f & 0xffffffu; in ceph_frag_value() [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/ioctl/ |
| D | ioctl-number.rst | 21 system calls 'write' and 'read'. For example, a SET_FOO ioctl would 23 a GET_FOO ioctl would be _IOR, although the kernel would actually write 28 many drivers share a partial letter with other drivers. 30 If you are writing a driver for a new device and need a letter, pick an 33 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and 36 The second argument to _IO, _IOW, _IOR, or _IOWR is a sequence number 50 if a program calls an ioctl on the wrong device, it will get an 67 no attempt to list non-X86 architectures or ioctls from drivers/staging/. 73 0x00 00-1F linux/fs.h conflict! 74 0x00 00-1F scsi/scsi_ioctl.h conflict! [all …]
|
| /kernel/linux/linux-6.6/arch/x86/crypto/ |
| D | sm3-avx-asm_64.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * specified in: https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 34 #define K1 -208106958 /* 0xf3988a32 */ 35 #define K2 -416213915 /* 0xe7311465 */ 36 #define K3 -832427829 /* 0xce6228cb */ 37 #define K4 -1664855657 /* 0x9cc45197 */ 40 #define K7 -433943364 /* 0xe6228cbc */ 41 #define K8 -867886727 /* 0xcc451979 */ 42 #define K9 -1735773453 /* 0x988a32f3 */ 45 #define K12 -1001285732 /* 0xc451979c */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/ioctl/ |
| D | ioctl-number.rst | 21 system calls 'write' and 'read'. For example, a SET_FOO ioctl would 23 a GET_FOO ioctl would be _IOR, although the kernel would actually write 28 many drivers share a partial letter with other drivers. 30 If you are writing a driver for a new device and need a letter, pick an 33 patch to Linus Torvalds. Or you can e-mail me at <mec@shout.net> and 36 The second argument to _IO, _IOW, _IOR, or _IOWR is a sequence number 50 if a program calls an ioctl on the wrong device, it will get an 67 no attempt to list non-X86 architectures or ioctls from drivers/staging/. 73 0x00 00-1F linux/fs.h conflict! 74 0x00 00-1F scsi/scsi_ioctl.h conflict! [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
| D | test_tablet.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 23 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states 37 def from_evdev(cls, evdev) -> "PenState": 58 def apply(self, events) -> "PenState": 69 raise ValueError(f"duplicated BTN_TOUCH in {events}") 77 raise ValueError(f"duplicated BTN_TOOL_* in {events}") 87 ), f"moving from {self} to {new_state} is forbidden" 91 def valid_transitions(self) -> Tuple["PenState", ...]: 92 """Following the state machine in the URL above, with a couple of addition [all …]
|
| /kernel/linux/linux-6.6/arch/x86/mm/ |
| D | kmmio.c | 1 // SPDX-License-Identifier: GPL-2.0 42 * Number of times this page has been registered as a part 43 * of a probe. If zero, page is disarmed and this may be freed. 76 /* Read-protected by RCU, write-protected by kmmio_lock. */ 92 /* Accessed per-cpu */ 96 * this is basically a dynamic stabbing problem: 99 * The Interval Skip List: A Data Structure for Finding All Intervals That 100 * Overlap a Point (might be simple) 101 * Space Efficient Dynamic Stabbing with Fast Queries - Mikkel Thorup 108 if (addr >= p->addr && addr < (p->addr + p->len)) in get_kmmio_probe() [all …]
|