/linux/include/linux/ |
H A D | math64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #if BITS_PER_LONG == 64 16 * div_u64_rem - unsigned 64bit divide with 32bit divisor with remainder 17 * @dividend: unsigned 64bit dividend 18 * @divisor: unsigned 32bit divisor 19 * @remainder: pointer to unsigned 32bit remainder 23 * This is commonly provided by 32bit archs to provide an optimized 64bit 33 * div_s64_rem - signed 64bit divide with 32bit divisor with remainder 34 * @dividend: signed 64bit dividend 35 * @divisor: signed 32bit divisor [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | nand_ids.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 {"TC58NVG0S3E 1G 3.3V 8-bit", 31 SZ_2K, SZ_128, SZ_128K, 0, 8, 64, NAND_ECC_INFO(1, SZ_512), }, 32 {"TC58NVG2S0F 4G 3.3V 8-bit", 35 {"TC58NVG2S0H 4G 3.3V 8-bit", 38 {"TC58NVG3S0F 8G 3.3V 8-bit", 41 {"TC58NVG5D2 32G 3.3V 8-bit", 44 {"TC58NVG6D2 64G 3.3V 8-bit", 47 {"SDTNQGAMA 64G 3.3V 8-bit", 50 {"SDTNRGAMA 64G 3.3V 8-bit", [all …]
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | cn23xx_pf_regs.h | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 74 /* 2 scatch registers (64-bit) */ 80 /* 1 registers (64-bit) - SLI_CTL_STATUS */ 83 /* SLI Packet Input Jabber Register (64 bit register) 117 /* 4 registers (64-bit) for mapping IOQs to MACs(PEMs)- 122 /*1 register (64-bit) to determine whether IOQs are in reset. */ 125 /* Each Input Queue register is at a 16-byte Offset in BAR0 */ 141 /* Starting bit of the TRS field in CN23XX_SLI_PKT_MAC_RINFO64 register */ 143 /* Starting bit of SRN field in CN23XX_SLI_PKT_MAC_RINFO64 register */ [all …]
|
H A D | cn23xx_vf_regs.h | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 47 /* Each Input Queue register is at a 16-byte Offset in BAR0 */ 52 /* 64 registers for Input Queue Instr Count - SLI_PKT_IN_DONE0_CNTS */ 55 /* 64 registers for Input Queues Start Addr - SLI_PKT0_INSTR_BADDR */ 58 /* 64 registers for Input Doorbell - SLI_PKT0_INSTR_BAOFF_DBELL */ 61 /* 64 registers for Input Queue size - SLI_PKT0_INSTR_FIFO_RSIZE */ 64 /* 64 registers (64-bit) - ES, RO, NS, Arbitration for Input Queue Data & 69 /*------- Request Queue Macros ---------*/ 85 /*------------------ Masks ----------------*/ [all …]
|
H A D | cn66xx_regs.h | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 89 /* 1 register (32-bit) to enable Input queues */ 92 /* 1 register (32-bit) to enable Output queues */ 95 /* 1 register (32-bit) to determine whether Output queues are in reset. */ 98 /* 1 register (32-bit) to determine whether Input queues are in reset. */ 103 /* 1 register (32-bit) - instr. size of each input queue. */ 106 /* 32 registers for Input Queue Instr Count - SLI_PKT_IN_DONE0_CNTS */ 109 /* 32 registers for Input Queue Start Addr - SLI_PKT0_INSTR_BADDR */ 112 /* 32 registers for Input Doorbell - SLI_PKT0_INSTR_BAOFF_DBELL */ [all …]
|
/linux/arch/riscv/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 4 # see Documentation/kbuild/kconfig-language.rst. 7 config 64BIT config 10 config 32BIT 28 select ARCH_HAS_CRC64 if 64BIT && RISCV_ISA_ZBC 40 select ARCH_HAS_KERNEL_FPU_SUPPORT if 64BIT && FPU 49 select ARCH_HAS_PTE_DEVMAP if 64BIT && MMU 61 select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE if 64BIT && MMU 70 # LLD >= 14: https://github.com/llvm/llvm-project/issues/50505 73 select ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS if 64BIT && MMU [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | tbfadt.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: tbfadt - FADT table utilities 6 * Copyright (C) 2000 - 2025, Intel Corp. 143 * PARAMETERS: generic_address - GAS struct to be initialized 144 * space_id - ACPI Space ID for this register 145 * byte_width - Width of this register 146 * address - Address of the register 147 * register_name - ASCII name of the ACPI register 166 * Bit width field in the GAS is only one byte long, 255 max. in acpi_tb_init_generic_address() 178 "%s - 32-bit FADT register is too long (%u bytes, %u bits) " in acpi_tb_init_generic_address() [all …]
|
H A D | tbutils.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: tbutils - ACPI Table utilities 6 * Copyright (C) 2000 - 2025, Intel Corp. 78 if (acpi_gbl_original_dsdt_header.length != acpi_gbl_DSDT->length || in acpi_tb_check_dsdt_header() 79 acpi_gbl_original_dsdt_header.checksum != acpi_gbl_DSDT->checksum) { in acpi_tb_check_dsdt_header() 81 "The DSDT has been corrupted or replaced - " in acpi_tb_check_dsdt_header() 88 "Please send DMI info to linux-acpi@vger.kernel.org\n" in acpi_tb_check_dsdt_header() 93 acpi_gbl_original_dsdt_header.length = acpi_gbl_DSDT->length; in acpi_tb_check_dsdt_header() 95 acpi_gbl_DSDT->checksum; in acpi_tb_check_dsdt_header() 103 * PARAMETERS: table_index - Index of installed table to copy [all …]
|
/linux/lib/math/ |
H A D | div64.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Based on former do_div() implementation from asm-parisc/div64.h: 6 * Copyright (C) 1999 Hewlett-Packard Co 7 * Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com> 10 * Generic C version of 64bit/32bit division and modulo, with 11 * 64bit result and 32bit remainder. 16 * for some CPUs. __div64_32() can be overridden by linking arch-specific 28 /* Not needed on 64bit architectures */ 39 /* Reduce the thing a bit first */ in __div64_32() 44 rem -= (uint64_t) (high*base) << 32; in __div64_32() [all …]
|
/linux/drivers/net/can/flexcan/ |
H A D | flexcan.h | 1 /* SPDX-License-Identifier: GPL-2.0 2 * flexcan.c - FLEXCAN CAN controller driver 4 * Copyright (c) 2005-2006 Varma Electronics Oy 6 * Copyright (c) 2010-2017 Pengutronix, Marc Kleine-Budde <kernel@pengutronix.de> 10 * Based on code originally by Andrey Volkov <avolkov@varma-el.com> 17 #include <linux/can/rx-offload.h> 22 * SOC Version IP-Version Glitch- [TR]WRN_INT IRQ Err Memory err RTR rece- FD Mode MB 25 * MX25 FlexCAN2 03.00.00.00 no no no no no no 64 26 * MX28 FlexCAN2 03.00.04.00 yes yes no no no no 64 27 * MX35 FlexCAN2 03.00.00.00 no no no no no no 64 [all …]
|
/linux/include/xen/interface/ |
H A D | callback.h | 1 /* SPDX-License-Identifier: MIT */ 19 * @extra_args == Operation-specific extra arguments (NULL if none). 28 /* x86/64 hypervisor: Syscall by 64-bit guest app ('64-on-64-on-64'). */ 42 * - 32-bit hypervisor: with the supervisor_mode_kernel feature enabled 43 * - 64-bit hypervisor: 32-bit guest applications on Intel CPUs 44 * ('32-on-32-on-64', '32-on-64-on-64') 45 * [nb. also 64-bit guest applications on Intel CPUs 46 * ('64-on-64-on-64'), but syscall is preferred] 51 * x86/64 hypervisor: Syscall by 32-bit guest app on AMD CPUs 52 * ('32-on-32-on-64', '32-on-64-on-64') [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-fau.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 57 * bit will be set. Otherwise the value of the register before 67 * bit will be set. Otherwise the value of the register before 77 * bit will be set. Otherwise the value of the register before 87 * bit will be set. Otherwise the value of the register before 97 * the error bit will be set. Otherwise the value of the 124 * - Step by 2 for 16 bit access. 125 * - Step by 4 for 32 bit access. [all …]
|
/linux/arch/mips/kernel/ |
H A D | unaligned.c | 18 * only the performance is affected. Much worse is that such code is non- 30 * option in your user programs - I discourage the use of the software 31 * emulation strongly - use the following code in your userland stuff: 92 #include <asm/unaligned-emul.h> 97 #include "access-helper.h" 121 orig31 = regs->regs[31]; in emulate_load_store_insn() 133 * can assume therefore that the code is MIPS-aware and in emulate_load_store_insn() 177 regs->regs[insn.mxu_lx_format.rd] = value; in emulate_load_store_insn() 186 regs->regs[insn.dsp_format.rd] = value; in emulate_load_store_insn() 195 regs->regs[insn.dsp_format.rd] = value; in emulate_load_store_insn() [all …]
|
/linux/arch/x86/um/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 15 config 64BIT config 16 bool "64-bit kernel" if "$(SUBARCH)" = "x86" 20 def_bool !64BIT 29 def_bool 64BIT 33 def_bool !64BIT 36 def_bool !64BIT
|
/linux/drivers/tee/optee/ |
H A D | optee_smc.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ 3 * Copyright (c) 2015-2021, Linaro Limited 8 #include <linux/arm-smccc.h> 28 * Normal cached memory (write-back), shareable for SMP systems and not 36 * 32-bit registers. 44 * 384fb3e0-e7f8-11e3-af63-0002a5d5c51b. 75 * Used by non-secure world to figure out which Trusted OS is installed. 78 * Returns UUID in a0-4 in the same way as OPTEE_SMC_CALLS_UID 88 * Used by non-secure world to figure out which version of the Trusted OS 92 * Returns revision in a0-1 in the same way as OPTEE_SMC_CALLS_REVISION [all …]
|
/linux/arch/s390/lib/ |
H A D | crc32be-vx.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Hardware-accelerated CRC-32 variants for Linux on z Systems 6 * computing of CRC-32 checksums. 8 * This CRC-32 implementation algorithm processes the most-significant 9 * bit first (BE). 17 #include "crc32-vx.h" 19 /* Vector register range containing CRC-32 constants */ 28 * The CRC-32 constant block contains reduction constants to fold and 31 * For the CRC-32 variants, the constants are precomputed according to 34 * R1 = x4*128+64 mod P(x) [all …]
|
/linux/Documentation/bpf/ |
H A D | classic_vs_extended.rst | 12 - Number of registers increase from 2 to 10: 15 new layout extends this to be 10 internal registers and a read-only frame 16 pointer. Since 64-bit CPUs are passing arguments to functions via registers 17 the number of args from eBPF program to in-kernel function is restricted 18 to 5 and one register is used to accept return value from an in-kernel 20 sparcv9/mips64 have 7 - 8 registers for arguments; x86_64 has 6 callee saved 25 64-bit architectures. 27 On 32-bit architectures JIT may map programs that use only 32-bit arithmetic 30 R0 - R5 are scratch registers and eBPF program needs spill/fill them if 33 call predefined in-kernel functions, though. [all …]
|
/linux/arch/mips/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 5 select ARCH_32BIT_OFF_T if !64BIT 10 select ARCH_HAS_DEBUG_VIRTUAL if !64BIT 15 select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI) 23 select ARCH_USE_CMPXCHG_LOCKREF if 64BIT 36 select GENERIC_ATOMIC64 if !64BIT 100 select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP 105 select MODULES_USE_ELF_RELA if MODULES && 64BIT 112 select HAVE_ARCH_KCSAN if 64BIT 146 bool "Generic board-agnostic MIPS kernel" [all …]
|
/linux/arch/x86/math-emu/ |
H A D | wm_shrx.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /*---------------------------------------------------------------------------+ 6 | 64 bit right shift functions | 10 | Australia. E-mail billm@jacobi.maths.monash.edu.au | 17 +---------------------------------------------------------------------------*/ 22 /*---------------------------------------------------------------------------+ 27 | Shifts the 64 bit quantity pointed to by the first arg (arg1) | 29 | Forms a 96 bit quantity from the 64 bit arg and eax: | 30 | [ 64 bit arg ][ eax ] | 31 | shift right ---------> | [all …]
|
/linux/arch/powerpc/boot/dts/ |
H A D | microwatt.dts | 1 /dts-v1/; 2 #include <dt-bindings/gpio/gpio.h> 5 #size-cells = <0x02>; 6 #address-cells = <0x02>; 8 compatible = "microwatt-soc"; 15 reserved-memory { 16 #size-cells = <0x02>; 17 #address-cells = <0x02>; 28 #clock-cells = <0>; 29 compatible = "fixed-clock"; [all …]
|
/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Just-In-Time compiler for eBPF bytecode on MIPS. 4 * Implementation of JIT functions for 64-bit CPUs. 18 #include <asm/cpu-features.h> 19 #include <asm/isa-rev.h> 24 /* MIPS t0-t3 are not available in the n64 ABI */ 30 /* Stack is 16-byte aligned in n64 ABI */ 33 /* Extra 64-bit eBPF registers used by JIT */ 40 /* Callee-saved CPU registers that the JIT must preserve */ 42 (BIT(MIPS_R_S0) | \ [all …]
|
/linux/drivers/net/ethernet/cavium/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 18 depends on 64BIT && PCI 31 depends on 64BIT && PCI 37 depends on 64BIT && PCI 47 depends on 64BIT && PCI 56 depends on 64BIT && PCI 70 depends on 64BIT && PCI 97 depends on 64BIT && PCI_MSI 105 will be called liquidio_vf. MSI-X interrupt support is required
|
/linux/arch/arm/nwfpe/ |
H A D | softfloat-macros | 5 This C source fragment is part of the SoftFloat IEC/IEEE Floating-point 11 National Science Foundation under grant MIP-9311980. The original version 12 of this code was written as part of a project to build a fixed-point vector 16 http://www.jhauser.us/arithmetic/SoftFloat-2b/SoftFloat-source.txt 33 ------------------------------------------------------------------------------- 35 bits are shifted off, they are ``jammed'' into the least significant bit of 36 the result by setting the least significant bit to 1. The value of `count' 40 ------------------------------------------------------------------------------- 49 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); 58 ------------------------------------------------------------------------------- [all …]
|
/linux/drivers/block/drbd/ |
H A D | drbd_vli.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 -*- linux-c -*- 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 17 * At a granularity of 4KiB storage represented per bit, 19 * and possibly small-bandwidth replication, 24 * by encoding runlengths of bit polarity. 27 * But then we have to store the value of the first bit. 28 * The first bit of information thus shall encode if the first runlength [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | decl.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright 2011-2020 NXP 23 #define MWIFIEX_DMA_ALIGN_SZ 64 24 #define MWIFIEX_RX_HEADROOM 64 47 #define HOST_MLME_AUTH_PENDING BIT(0) 48 #define HOST_MLME_AUTH_DONE BIT(1) 50 #define HOST_MLME_MGMT_MASK (BIT(IEEE80211_STYPE_AUTH >> 4) | \ 51 BIT(IEEE80211_STYPE_DEAUTH >> 4) | \ 52 BIT(IEEE80211_STYPE_DISASSOC >> 4)) 61 #define MWIFIEX_STA_AMPDU_DEF_TXWINSIZE 64 [all …]
|