/linux/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_env.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 * CSS-API host-code by the environment in which the CSS-API code runs. 53 /** Store an 8 bit value into an address in the CSS HW address space. 54 The address must be an 8 bit aligned address. */ 56 /** Store a 16 bit value into an address in the CSS HW address space. 57 The address must be a 16 bit aligned address. */ 59 /** Store a 32 bit value into an address in the CSS HW address space. 60 The address must be a 32 bit aligned address. */ 62 /** Load an 8 bit value from an address in the CSS HW address 63 space. The address must be an 8 bit aligned address. */ [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | hypervisor.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * ----------------------------------------------- 23 * ----------------------------------------------- 25 * The second type are "hyper-fast traps" which encode the function 27 * numbers > 0x80. The register usage for hyper-fast traps is as 30 * ----------------------------------------------- 36 * ----------------------------------------------- 44 * defined below. So, for example, if a hyper-fast trap takes 49 * is invalid, HV_EBADTRAP will be returned in %o0. Also, all 64-bits 63 #define HV_ENORADDR 2 /* Invalid real address */ [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | mremap_test.c | 1 // SPDX-License-Identifier: GPL-2.0 47 _1KB = 1ULL << 10, /* 1KB -> not page aligned */ 84 unsigned long mid = low + (high - low) / 2; in get_sqrt() 91 high = mid - 1; in get_sqrt() 108 -1, 0); in is_remap_region_valid() 150 * Using /proc/self/maps, assert that the specified address range is contained 163 while (getline(&line, &len, maps_fp) != -1) { in is_range_mapped() 164 if (sscanf(line, "%lx-%lx", &first_val, &second_val) != 2) { in is_range_mapped() 179 * Returns the start address of the mapping on success, else returns 202 -1, 0); in get_source_mapping() [all …]
|
/linux/arch/riscv/lib/ |
H A D | uaccess.S | 4 #include <asm/asm-extable.h> 7 #include <asm/alternative-macros.h> 29 * Save the terminal address which will be used to compute the number 36 * a0 - start of uncopied dst 37 * a1 - start of uncopied src 38 * a2 - size 39 * t0 - end of uncopied dst 47 li a3, 9*SZREG-1 /* size must >= (word_copy stride + SZREG-1) */ 51 * Copy first bytes until dst is aligned to word boundary. 52 * a0 - start of dst [all …]
|
/linux/arch/alpha/lib/ |
H A D | ev6-memset.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-memset.S 8 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> 13 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 15 * E - either cluster 16 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 17 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 48 * undertake a major re-write to interleave the constant materialization 49 * with other parts of the fall-through code. This is important, even 58 addq $18,$16,$6 # E : max address to write to [all …]
|
/linux/arch/arm/mm/ |
H A D | tlb-v7.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/tlb-v7.S 5 * Copyright (C) 1997-2002 Russell King 15 #include <asm/asm-offsets.h> 18 #include "proc-macros.S" 20 .arch armv7-a 25 * Invalidate a range of TLB entries in the specified address space. 27 * - start - start address (may not be aligned) 28 * - end - end address (exclusive, may not be aligned) 29 * - vma - vm_area_struct describing address range [all …]
|
H A D | tlb-v6.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/tlb-v6.S 5 * Copyright (C) 1997-2002 Russell King 13 #include <asm/asm-offsets.h> 17 #include "proc-macros.S" 26 * Invalidate a range of TLB entries in the specified address space. 28 * - start - start address (may not be aligned) 29 * - end - end address (exclusive, may not be aligned) 30 * - vma - vm_area_struct describing address range 33 * - the "Invalidate single entry" instruction will invalidate [all …]
|
H A D | cache-v4wt.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/cache-v4wt.S 5 * Copyright (C) 1997-2002 Russell king 16 #include "proc-macros.S" 56 * Invalidate all cache entries in a particular address 80 * address space. 82 * - start - start address (inclusive, page aligned) 83 * - end - end address (exclusive, page aligned) 84 * - flags - vma_area_struct flags describing address space 104 * region described by start. If you have non-snooping [all …]
|
H A D | tlb-v4.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 1997-2002 Russell King 16 #include <asm/asm-offsets.h> 18 #include "proc-macros.S" 24 * Invalidate a range of TLB entries in the specified user address space. 26 * - start - range start address 27 * - end - range end address 28 * - mm - mm_struct describing address space 33 act_mm r3 @ get current->active_mm 50 * address range. [all …]
|
/linux/tools/testing/memblock/tests/ |
H A D | alloc_helpers_api.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * aligned address: 9 * | +-----------+ | 11 * +----------+-----------+---------+ 14 * Aligned min_addr 16 * Expect to allocate a cleared region at the minimal memory address. 28 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_from_simple_generic_check() 35 ASSERT_EQ(rgn->size, size); in alloc_from_simple_generic_check() 36 ASSERT_EQ(rgn->base, min_addr); in alloc_from_simple_generic_check() 47 * A test that tries to allocate a memory region above a certain address. [all …]
|
/linux/arch/xtensa/lib/ |
H A D | checksum.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 29 * This function assumes 2- or 4-byte alignment. Other alignments will fail! 32 /* ONES_ADD converts twos-complement math to ones-complement. */ 44 * is aligned on either a 2-byte or 4-byte boundary. 48 bnez a5, 8f /* branch if 2-byte aligned */ 49 /* Fall-through on common case, 4-byte alignment */ 51 srli a5, a3, 5 /* 32-byte chunks */ 57 add a5, a5, a2 /* a5 = end of last 32-byte chunk */ 81 extui a5, a3, 2, 3 /* remaining 4-byte chunks */ 87 add a5, a5, a2 /* a5 = end of last 4-byte chunk */ [all …]
|
H A D | memcopy.S | 2 * arch/xtensa/lib/hal/memcopy.S -- Core HAL library functions 9 * Copyright (C) 2002 - 2012 Tensilica Inc. 24 * 32-bit load and store instructions (as required for these 34 * If source is aligned, 39 * This code tries to use fall-through branches for the common 40 * case of aligned source and destination and multiple 44 * a0/ return address 71 add a7, a3, a4 # a7 = end address for source 89 .Ldst1mod2: # dst is only byte aligned 95 addi a4, a4, -1 [all …]
|
H A D | strncpy_user.S | 8 * Returns: -EFAULT if exception before terminator, N if the entire 36 # a0/ return address 60 bbsi.l a3, 0, .Lsrc1mod2 # if only 8-bit aligned 61 bbsi.l a3, 1, .Lsrc2mod4 # if only 16-bit aligned 62 .Lsrcaligned: # return here when src is word-aligned 68 .Lsrc1mod2: # src address is odd 74 addi a4, a4, -1 # decrement len 76 bbci.l a3, 1, .Lsrcaligned # if src is now word-aligned 78 .Lsrc2mod4: # src address is 2 mod 4 80 /* 1-cycle interlock */ [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_dma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mpc8610-pcm.h - ALSA PCM interface for the Freescale MPC8610 SoC 15 __be32 clndar; /* Current link descriptor address register */ 17 __be32 sar; /* Source address register */ 19 __be32 dar; /* Destination address register */ 21 __be32 enlndar; /* Next link descriptor extended address reg */ 22 __be32 nlndar; /* Next link descriptor address register */ 25 __be32 clsdar; /* Current list descriptor address register */ 26 __be32 enlsdar; /* Next list descriptor extended address reg */ 27 __be32 nlsdar; /* Next list descriptor address register */ [all …]
|
/linux/Documentation/arch/sparc/oradax/ |
H A D | dax-hv-api.txt | 3 Publication date 2017-09-25 08:21 5 Extracted via "pdftotext -f 547 -l 572 -layout sun4v_20170925.pdf" 16 live-migration and other system management activities. 20 …high speed processoring of database-centric operations. The coprocessors may support one or more of 28 …e Completion Area and, unless execution order is specifically restricted through the use of serial- 45 …device node in the guest MD (Section 8.24.17, “Database Analytics Accelerators (DAX) virtual-device 51 36.1.1.1. "ORCL,sun4v-dax" Device Compatibility 54 • No-op/Sync 81 36.1.1.2. "ORCL,sun4v-dax-fc" Device Compatibility 82 … "ORCL,sun4v-dax-fc" is compatible with the "ORCL,sun4v-dax" interface, and includes additional CCB [all …]
|
/linux/arch/s390/include/asm/ |
H A D | qdio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <asm/dma-types.h> 19 #define QDIO_MAX_BUFFERS_MASK (QDIO_MAX_BUFFERS_PER_Q - 1) 28 * struct qdesfmt0 - queue descriptor, format 0 29 * @sliba: absolute address of storage list information block 30 * @sla: absolute address of storage list 31 * @slsba: absolute address of storage list state block 52 * struct qdr - queue description record (QDR) 59 * @qiba: absolute address of queue information block 90 * struct qib - queue information block (QIB) [all …]
|
/linux/include/uapi/linux/ |
H A D | vhost_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 /* Userspace interface for in-kernel virtio accelerators. */ 26 int fd; /* Pass -1 to unbind from file. */ 35 /* Whether log address is valid. If set enables logging. */ 40 /* Used structure address. Must be 32 bit aligned */ 42 /* Available structure address. Must be 16 bit aligned */ 46 * address. Address must be 32 bit aligned. */ 120 /* All region addresses and sizes must be 4K aligned. */ 132 * Used by QEMU userspace to ensure a consistent vhost-scsi ABI. 134 * ABI Rev 0: July 2012 version starting point for v3.6-rc merge candidate + [all …]
|
/linux/Documentation/core-api/ |
H A D | unaligned-memory-access.rst | 23 from an address that is not evenly divisible by N (i.e. addr % N != 0). 24 For example, reading 4 bytes of data from address 0x10004 is fine, but 25 reading 4 bytes of data from address 0x10005 would be an unaligned memory 32 which will compile to multiple-byte memory access instructions, namely when 40 When accessing N bytes of memory, the base memory address must be evenly 59 - Some architectures are able to perform unaligned memory accesses 61 - Some architectures raise processor exceptions when unaligned accesses 64 - Some architectures raise processor exceptions when unaligned accesses 67 - Some architectures are not capable of unaligned memory access, but will 94 starting at address 0x10000. With a basic level of understanding, it would [all …]
|
/linux/arch/mips/include/asm/ |
H A D | maar.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 * platform_maar_init() - perform platform-level MAAR configuration 18 * MAAR pairs as required, from 0 up to the maximum of num_pairs-1, and returns 28 * write_maar_pair() - write to a pair of MAARs 30 * @lower: The lowest address that the MAAR pair will affect. Must be 31 * aligned to a 2^16 byte boundary. 32 * @upper: The highest address that the MAAR pair will affect. Must be 33 * aligned to one byte before a 2^16 byte boundary. 52 * Write the upper address & attributes (both MIPS_MAAR_VL and in write_maar_pair() 65 /* Write the lower address & attributes */ in write_maar_pair() [all …]
|
/linux/include/linux/ |
H A D | etherdevice.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 81 * is_link_local_ether_addr - Determine if given Ethernet address is link-local 82 * @addr: Pointer to a six-byte array containing the Ethernet address 84 * Return true if address is link local reserved addr (01:80:c2:00:00:0X) per 87 * Please note: addr must be aligned to u16. 104 * is_zero_ether_addr - Determine if give Ethernet address is all zeros. 105 * @addr: Pointer to a six-byte array containing the Ethernet address 107 * Return true if the address is all zeroes. 109 * Please note: addr must be aligned to u16. 123 * is_multicast_ether_addr - Determine if the Ethernet address is a multicast. [all …]
|
/linux/arch/x86/platform/intel-quark/ |
H A D | imr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * imr.c -- Intel Isolated Memory Region driver 6 * Copyright(c) 2015 Bryan O'Donoghue <pure.logic@nexus-software.ie> 10 * When a device behind a masked port performs an access - snooped or 22 * See quark-x1000-datasheet.pdf for register definitions. 23 * http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/quark-x1000-datasheet.pdf 28 #include <asm-generic/sections.h> 50 * See quark-x1000-datasheet.pdf sections 12.7.4.5 and 12.7.4.6 for 56 * 23:2 1 KiB aligned lo address 61 * 23:2 1 KiB aligned hi address [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 119 * Builds a store I/O address for writing to the FAU 124 * - Step by 2 for 16 bit access. 125 * - Step by 4 for 32 bit access. 126 * - Step by 8 for 64 bit access. 127 * Returns Address to store for atomic update 137 * Builds a I/O address for accessing the FAU 141 * - 0 = Don't wait [all …]
|
/linux/arch/arm64/lib/ |
H A D | memset.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ 21 * x0 - buf 22 * x1 - c 23 * x2 - n 25 * x0 - buf 54 /*All store maybe are non-aligned..*/ 70 /*Whether the start address is aligned with 16.*/ 76 * then adjust the dst aligned with 16.This process will make the current 77 * memory address at alignment boundary. [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-fh.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2021, 2023-2024 Intel Corporation 4 * Copyright (C) 2015-2017 Intel Deutschland GmbH 12 #include "iwl-trans.h" 20 * Addresses are offsets from device's PCI hardware base address. 28 * Keep-Warm (KW) buffer base address. 31 * host DRAM powered on (via dummy accesses to DRAM) to maintain low-latency 33 * from going into a power-savings mode that would cause higher DRAM latency, 34 * and possible data over/under-runs, before all Tx/Rx is complete. 36 * Driver loads FH_KW_MEM_ADDR_REG with the physical address (bits 35:4) [all …]
|
/linux/sound/pci/trident/ |
H A D | trident_memory.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Trident 4DWave-NX memory page allocation (TLB area) 20 * aligned pages in others 23 (trident)->tlb.entries[page] = cpu_to_le32((addr) & ~(SNDRV_TRIDENT_PAGE_SIZE-1)) 25 (dma_addr_t)le32_to_cpu((trident->tlb.entries[page]) & ~(SNDRV_TRIDENT_PAGE_SIZE - 1)) 30 #define MAX_ALIGN_PAGES SNDRV_TRIDENT_MAX_PAGES /* maxmium aligned pages */ 34 #define set_silent_tlb(trident,page) __set_tlb_bus(trident, page, trident->tlb.silent_page->addr) 35 /* get aligned page from offset address */ 37 /* get offset address from aligned page */ 39 /* get PCI physical address from aligned page */ [all …]
|