/openbmc/linux/scripts/dtc/ |
H A D | util.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 #define UTIL_H 17 #define PRINTF(i, j) __attribute__((format (gnu_printf, i, j))) 19 #define PRINTF(i, j) __attribute__((format (printf, i, j))) 21 #define NORETURN __attribute__((noreturn)) 23 #define PRINTF(i, j) 24 #define NORETURN 27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 29 #define stringify(s) stringify_(s) 30 #define stringify_(s) #s [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-jpeg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * For reference, see JPEG ITU-T.81 (ISO/IEC 10918-1) [1] 9 * [1] https://www.w3.org/Graphics/JPEG/itu-t81.pdf 17 #include <media/v4l2-jpeg.h> 23 /* Table B.1 - Marker code assignments */ 24 #define SOF0 0xffc0 /* start of frame */ 25 #define SOF1 0xffc1 26 #define SOF2 0xffc2 27 #define SOF3 0xffc3 28 #define SOF5 0xffc5 [all …]
|
/openbmc/u-boot/scripts/dtc/ |
H A D | util.h | 2 #define UTIL_H 12 * This program is free software; you can redistribute it and/or 15 * License, or (at your option) any later version. 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 29 #define PRINTF(i, j) __attribute__((format (printf, i, j))) 30 #define NORETURN __attribute__((noreturn)) 32 #define PRINTF(i, j) 33 #define NORETURN 36 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) [all …]
|
/openbmc/linux/arch/mips/lib/ |
H A D | memcpy.S | 23 * dma-coherent systems. 37 #include <asm/asm-offsets.h> 40 #define dst a0 41 #define src a1 42 #define len a2 macro 47 * memcpy copies len bytes from src to dst and sets v0 to dst. 49 * - src and dst don't overlap 50 * - src is readable 51 * - dst is writable 54 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to [all …]
|
H A D | csum_partial.S | 16 #include <asm/asm-offsets.h> 29 #define t0 $8 30 #define t1 $9 31 #define t2 $10 32 #define t3 $11 33 #define t4 $12 34 #define t5 $13 35 #define t6 $14 36 #define t7 $15 38 #define USE_DOUBLE [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | scif_ioctl.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 5 * This file is provided under a dual BSD/GPLv2 license. When using or 12 * This program is free software; you can redistribute it and/or modify 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25 * Redistribution and use in source and binary forms, with or without 33 * the documentation and/or other materials provided with the 36 * contributors may be used to endorse or promote products derived 40 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 43 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 44 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT [all …]
|
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 5 * This program is free software; you can redistribute it and/or modify it 10 #define _UAPI_INPUT_H 20 #include "input-event-codes.h" 31 #define input_event_sec time.tv_sec 32 #define input_event_usec time.tv_usec 41 #define input_event_sec __sec 42 #define input_event_usec __usec 53 #define EV_VERSION 0x010001 [all …]
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | desc_constr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright 2008-2012 Freescale Semiconductor, Inc. 10 #define DESC_CONSTR_H 15 #define IMMEDIATE (1 << 23) 16 #define CAAM_CMD_SZ sizeof(u32) 17 #define CAAM_PTR_SZ caam_ptr_sz 18 #define CAAM_PTR_SZ_MAX sizeof(dma_addr_t) 19 #define CAAM_PTR_SZ_MIN sizeof(u32) 20 #define CAAM_DESC_BYTES_MAX (CAAM_CMD_SZ * MAX_CAAM_DESCSIZE) 21 #define __DESC_JOB_IO_LEN(n) (CAAM_CMD_SZ * 5 + (n) * 3) [all …]
|
/openbmc/qemu/tcg/i386/ |
H A D | tcg-target.h | 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 26 #define I386_TCG_TARGET_H 30 #define TCG_TARGET_INSN_UNIT_SIZE 1 33 # define TCG_TARGET_NB_REGS 32 34 # define MAX_CODE_GEN_BUFFER_SIZE (2 * GiB) [all …]
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 5 * This program is free software; you can redistribute it and/or modify it 10 #define _INPUT_H 15 #include "standard-headers/linux/types.h" 17 #include "standard-headers/linux/input-event-codes.h" 28 #define input_event_sec time.tv_sec 29 #define input_event_usec time.tv_usec 38 #define input_event_sec __sec 39 #define input_event_usec __usec [all …]
|
/openbmc/qemu/hw/ipmi/ |
H A D | smbus_ipmi.c | 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * all copies or substantial portions of the Software. 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 #include "qemu/error-report.h" 33 #define TYPE_SMBUS_IPMI "smbus-ipmi" 36 #define SSIF_IPMI_REQUEST 2 37 #define SSIF_IPMI_MULTI_PART_REQUEST_START 6 [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_mci.h | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 #define AR9003_MCI_H 20 #define MCI_FLAG_DISABLE_TIMESTAMP 0x00000001 /* Disable time stamp */ 21 #define MCI_RECOVERY_DUR_TSF (100 * 1000) /* 100 ms */ [all …]
|
H A D | dfs_debug.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 27 #define ATH9K_DFS_STAT(s, p) \ 28 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \ 29 sc->debug.stats.dfs_stats.p) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/ |
H A D | 0001-replace-__pure__-with-compiler-attribute-pure.patch | 3 Date: Mon, 3 May 2021 13:53:10 -0700 8 Upstream-Status: Inappropriate [Untested with dietlibc] 9 Signed-off-by: Khem Raj <raj.khem@gmail.com> 10 --- 11 byte.h | 22 ++++++---- 12 critbit.h | 12 ++++-- 13 fmt.h | 100 +++++++++++++++++++++++--------------------- 14 str.h | 22 ++++++---- 15 stralloc.h | 20 +++++---- 16 5 files changed, 103 insertions(+), 73 deletions(-) [all …]
|
/openbmc/linux/include/linux/ |
H A D | minmax.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #define _LINUX_MINMAX_H 13 * - Avoid multiple evaluations of the arguments (so side-effects like 14 * "x++" happen only once) when non-constant. 15 * - Retain result as a constant expressions when called with only 18 * - Perform signed v unsigned type-checking (to generate compile 20 * - Unsigned char/short are always promoted to signed int and can be 21 * compared against signed or unsigned arguments. 22 * - Unsigned arguments can be compared against non-negative signed constants. 23 * - Comparison of a signed argument against an unsigned constant fails [all …]
|
/openbmc/linux/include/net/ |
H A D | 6lowpan.h | 10 * This program is free software; you can redistribute it and/or modify 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 28 * Redistribution and use in source and binary forms, with or without 35 * documentation and/or other materials provided with the distribution. 37 * may be used to endorse or promote products derived from this software 41 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 44 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) [all …]
|
/openbmc/qemu/hw/char/ |
H A D | grlib_apbuart.c | 4 * SPDX-License-Identifier: MIT 6 * Copyright (c) 2010-2024 AdaCore 11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 16 * all copies or substantial portions of the Software. 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 29 #include "hw/qdev-properties.h" 30 #include "hw/qdev-properties-system.h" [all …]
|
/openbmc/linux/net/bluetooth/cmtp/ |
H A D | capi.c | 3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org> 5 This program is free software; you can redistribute it and/or modify 10 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 13 CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES 14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS 47 #define CAPI_INTEROPERABILITY 0x20 49 #define CAPI_INTEROPERABILITY_REQ CAPICMD(CAPI_INTEROPERABILITY, CAPI_REQ) [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_insn.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2019 Western Digital Corporation or its affiliates. 10 #define INSN_OPCODE_MASK 0x007c 11 #define INSN_OPCODE_SHIFT 2 12 #define INSN_OPCODE_SYSTEM 28 14 #define INSN_MASK_WFI 0xffffffff 15 #define INSN_MATCH_WFI 0x10500073 17 #define INSN_MATCH_CSRRW 0x1073 18 #define INSN_MASK_CSRRW 0x707f 19 #define INSN_MATCH_CSRRS 0x2073 [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | netlink.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 #define _UAPI__LINUX_NETLINK_H 9 #define NETLINK_ROUTE 0 /* Routing/device hook */ 10 #define NETLINK_UNUSED 1 /* Unused number */ 11 #define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */ 12 #define NETLINK_FIREWALL 3 /* Unused number, formerly ip_queue */ 13 #define NETLINK_SOCK_DIAG 4 /* socket monitoring */ 14 #define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */ 15 #define NETLINK_XFRM 6 /* ipsec */ 16 #define NETLINK_SELINUX 7 /* SELinux event notifications */ [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | checksum.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 #define _ASM_POWERPC_CHECKSUM_H 12 * Computes the checksum of a memory block at src, length len, 13 * and adds in "sum" (32-bit), while copying the block to dst. 14 * If an access exception occurs on src or dst, it stores -EFAULT 15 * to *src_err or *dst_err respectively (if that pointer is not 21 extern __wsum csum_partial_copy_generic(const void *src, void *dst, int len); 23 #define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER 25 int len); 26 #define HAVE_CSUM_COPY_USER [all …]
|
/openbmc/linux/include/net/bluetooth/ |
H A D | bluetooth.h | 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 8 This program is free software; you can redistribute it and/or modify 13 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES 17 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 18 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 19 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS 27 #define __BLUETOOTH_H [all …]
|
/openbmc/qemu/fsdev/ |
H A D | p9array.h | 2 * P9Array - deep auto free C-array 12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 * all copies or substantial portions of the Software. 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 28 #define QEMU_P9ARRAY_H 31 * P9Array provides a mechanism to access arrays in common C-style (e.g. by 52 * free(foo->s); [all …]
|
/openbmc/qemu/hw/sensor/ |
H A D | tmp421.c | 13 * This program is free software; you can redistribute it and/or 15 * published by the Free Software Foundation; either version 2 or 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36 #define TMP421_MANUFACTURER_ID 0x55 37 #define TMP421_DEVICE_ID 0x21 38 #define TMP422_DEVICE_ID 0x22 39 #define TMP423_DEVICE_ID 0x23 63 uint8_t len; member 74 #define TYPE_TMP421 "tmp421-generic" 79 #define TMP421_STATUS_REG 0x08 [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | crc32-pclmul_glue.c | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * This program is free software; you can redistribute it and/or modify 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 * information or have any questions. 41 #define CHKSUM_BLOCK_SIZE 1 42 #define CHKSUM_DIGEST_SIZE 4 44 #define PCLMUL_MIN_LEN 64L /* minimum size of buffer 46 #define SCALE_F 16L /* size of xmm register */ 47 #define SCALE_F_MASK (SCALE_F - 1) 49 u32 crc32_pclmul_le_16(unsigned char const *buffer, size_t len, u32 crc32); [all …]
|