/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A 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 …]
|
/openbmc/linux/crypto/ |
H A 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 …]
|
/openbmc/qemu/migration/ |
H A D | qemu-file.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 26 #include "qemu/error-report.h" 29 #include "migration-stats.h" 30 #include "qemu-file.h" 35 #include "io/channel-file.h" 65 * Stop a file from being read/written - not all backing files can do this 69 * to a fixed errno value 71 int qemu_file_shutdown(QEMUFile *f) in qemu_file_shutdown() argument [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | parse.py | 6 # SPDX-License-Identifier: GPL-2.0-only 24 A = "1" 43 f = tempfile.NamedTemporaryFile(suffix = suffix) 44 f.write(bytes(content, "utf-8")) 45 f.flush() 46 os.chdir(os.path.dirname(f.name)) 47 return f 50 f = self.parsehelper(self.testfile) 51 d = bb.parse.handle(f.name, self.d)[''] 52 self.assertEqual(d.getVar("A"), "1") [all …]
|
/openbmc/u-boot/lib/ |
H A D | sha256.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * FIPS-180-2 compliant SHA-256 implementation 5 * Copyright (C) 2001-2003 Christophe Devine 15 #include <u-boot/sha256.h> 24 * 32-bit integer manipulation macros (big endian) 45 ctx->total[0] = 0; in sha256_starts() 46 ctx->total[1] = 0; in sha256_starts() 48 ctx->state[0] = 0x6A09E667; in sha256_starts() 49 ctx->state[1] = 0xBB67AE85; in sha256_starts() 50 ctx->state[2] = 0x3C6EF372; in sha256_starts() [all …]
|
/openbmc/linux/scripts/coccinelle/api/ |
H A 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 …]
|
/openbmc/qemu/rust/qemu-api/src/ |
H A D | callbacks.rs | 1 // SPDX-License-Identifier: MIT 8 /// callbacks. These include both zero-capture closures and function pointers. 10 /// In Rust, calling a function through the `Fn` trait normally requires a 11 /// `self` parameter, even though for zero-sized functions (including function 13 /// function. This trait provides a `call` function that doesn't require `self`, 14 /// allowing zero-sized functions to be called using only their type. 16 /// This enables zero-sized functions to be passed entirely through generic 17 /// parameters and resolved at compile-time. A typical use is a function 18 /// receiving an unused parameter of generic type `F` and calling it via 19 /// `F::call` or passing it to another function via `func::<F>`. [all …]
|
/openbmc/phosphor-logging/lib/include/phosphor-logging/lg2/ |
H A D | conversion.hpp | 3 #include <phosphor-logging/lg2/flags.hpp> 4 #include <phosphor-logging/lg2/header.hpp> 5 #include <phosphor-logging/lg2/level.hpp> 6 #include <phosphor-logging/lg2/logger.hpp> 21 /** Concept to determine if an item acts like a string. 23 * Something acts like a string if we can construct a string_view from it. 24 * This covers std::string and C-strings. But, there is subtlety in that 25 * nullptr_t can be used to construct a string_view until C++23, so we need 26 * to exempt out nullptr_t's (otherwise `nullptr` ends up acting like a 35 /** Concept to determine if an item acts like a pointer. [all …]
|
/openbmc/rest-dbus/resources/ |
H A D | jquery.min.js | 2 …a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):fu… argument 4 …a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&… argument 5 …a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.pro… argument
|
H A D | jstree.min.js | 1 /*! jsTree - v3.2.0 - 2015-08-06 - (MIT) */ 2 …a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof mod… argument 3 …-children")[0]),r=b.children(".jstree-anchor")[0]===i.activeElement,b.remove();else if(c=!0,!d){if… argument 4 …-"+b),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+b+"-re… argument 5 …a(b.target).closest(".jstree-node")[0]!==b.currentTarget)return!0;if("touchstart"===b.type&&(!this… argument
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A 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 …]
|
H A D | client.h | 1 /* SPDX-License-Identifier: MIT */ 27 /* logging for client-facing objects */ 28 #define nvif_printk(o,l,p,f,a...) do { \ argument 30 const struct nvkm_client *_client = _object->client; \ 31 if (_client->debug >= NV_DBG_##l) \ 32 printk(KERN_##p "nouveau: %s:%08x:%08x: "f, _client->name, \ 33 _object->handle, _object->oclass, ##a); \ 35 #define nvif_fatal(o,f,a...) nvif_printk((o), FATAL, CRIT, f, ##a) argument 36 #define nvif_error(o,f,a...) nvif_printk((o), ERROR, ERR, f, ##a) argument 37 #define nvif_debug(o,f,a...) nvif_printk((o), DEBUG, INFO, f, ##a) argument [all …]
|
/openbmc/linux/arch/powerpc/crypto/ |
H A 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 …]
|
H A D | sha1-spe-asm.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Fast SHA-1 implementation for SPE instruction set (PPC) 14 #include <asm/asm-offsets.h> 57 stwu r1,-128(r1); /* create stack frame */ \ 106 #define R_00_15(a, b, c, d, e, w0, w1, k, off) \ argument 108 and rT2,b,c; /* 1: F' = B and C */ \ 110 andc rT1,d,b; /* 1: F" = ~B and D */ \ 111 rotrwi rT0,a,27; /* 1: A' = A rotl 5 */ \ 112 or rT2,rT2,rT1; /* 1: F = F' or F" */ \ 113 add e,e,rT0; /* 1: E = E + A' */ \ [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 082 | 4 # Test qemu-img command line parsing 15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 # You should have received a copy of the GNU General Public License 56 # Last -f should win 57 run_qemu_img create -f foo -f $IMGFMT "$TEST_IMG" $size 60 # Multiple -o should be merged 61 run_qemu_img create -f $IMGFMT -o cluster_size=4k -o lazy_refcounts=on "$TEST_IMG" $size 62 _img_info --format-specific 64 # If the same -o key is specified more than once, the last one wins 65 run_qemu_img create -f $IMGFMT -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k "$TEST_IM… [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvhw/ |
H A 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 …]
|
/openbmc/linux/sound/core/seq/ |
H A 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 …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A 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 …]
|
/openbmc/linux/include/linux/ceph/ |
H A 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 …]
|
/openbmc/linux/arch/x86/crypto/ |
H A 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 …]
|
/openbmc/linux/arch/x86/mm/ |
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A 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 …]
|
/openbmc/qemu/tests/tcg/multiarch/ |
H A D | sha512.c | 7 * http://www.opensource.org/licenses/mit-license.php. 9 * SPDX-License-Identifier: MIT CC0-1.0 23 * BSWAP_64 - reverse bytes in a constant uint64_t value. 26 * Designed to be usable in constant-requiring initializers. 49 * CPU_TO_BE64 - convert a constant uint64_t value to big-endian 54 * BE64_TO_CPU - convert a big-endian uint64_t constant 55 * @le_val: big-endian constant to convert 65 * cpu_to_be64 - convert a uint64_t value to big endian. 74 * be64_to_cpu - convert a big-endian uint64_t value 75 * @be_val: big-endian value to convert [all …]
|
/openbmc/linux/Documentation/userspace-api/ioctl/ |
H A 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 …]
|