Home
last modified time | relevance | path

Searched full:unaligned (Results 1 – 25 of 995) sorted by relevance

12345678910>>...40

/linux/Documentation/core-api/
H A Dunaligned-memory-access.rst2 Unaligned Memory Accesses
15 unaligned accesses, why you need to write code that doesn't cause them,
19 The definition of an unaligned access
22 Unaligned memory accesses occur when you try to read N bytes of data starting
25 reading 4 bytes of data from address 0x10005 would be an unaligned memory
52 Why unaligned access is bad
55 The effects of performing an unaligned memory access vary from architecture
59 - Some architectures are able to perform unaligned memory accesses
61 - Some architectures raise processor exceptions when unaligned accesses
62 happen. The exception handler is able to correct the unaligned access,
[all …]
/linux/tools/perf/pmu-events/arch/powerpc/power10/
H A Dothers.json45 …scription": "Load instructions in LD0 port that are either unaligned, or treated as unaligned and …
50 …scription": "Load instructions in LD1 port that are either unaligned, or treated as unaligned and …
55 …cription": "Store instructions in ST0 port that are either unaligned, or treated as unaligned and …
60 …cription": "Store instructions in ST1 port that are either unaligned, or treated as unaligned and …
/linux/Documentation/arch/arm/
H A Dmem_alignment.rst14 unaligned memory access in general. If those access are predictable, you
15 are better to use the macros provided by include/linux/unaligned.h. The
20 trap to SIGBUS any code performing unaligned access (good for debugging bad
27 real bad - it changes the behaviour of all unaligned instructions in user
36 0 A user process performing an unaligned memory access
42 performing the unaligned access. This is of course
47 performing the unaligned access.
59 information on unaligned access occurrences plus the current mode of
/linux/arch/riscv/
H A DKconfig941 prompt "Unaligned Accesses Support"
944 This determines the level of support for unaligned accesses. This
950 bool "Probe for hardware unaligned access support"
954 speed of unaligned accesses. This probing will dynamically determine
955 the speed of unaligned accesses on the underlying system. If unaligned
957 system, the kernel will emulate the unaligned accesses to preserve the
961 bool "Emulate unaligned access where system support is missing"
964 If unaligned memory accesses trap into the kernel as they are not
965 supported by the system, the kernel will emulate the unaligned
967 unaligned accesses, the unaligned accesses are assumed to be slow.
[all …]
/linux/arch/riscv/kernel/
H A Dunaligned_access_speed.c17 #include "copy-unaligned.h"
68 * 1 if unaligned accesses are fast
69 * 0 if unaligned accesses are slow
84 /* Make an unaligned destination buffer. */ in compare_unaligned_access()
95 pr_warn("cpu%d: rdtime lacks granularity needed to measure %s unaligned access speed\n", in compare_unaligned_access()
104 pr_info("cpu%d: %s unaligned word access speed is %d.%02dx byte access speed (%s)\n", in compare_unaligned_access()
153 /* Measure unaligned access speed on all CPUs present at boot in parallel. */
224 * result of unaligned access speed for all CPUs will be available. in set_unaligned_access_static_branches()
327 /* Measure unaligned access speed on all CPUs present at boot in parallel. */
399 pr_info("scalar unaligned access speed set to '%s' (%lu) by command line\n", in check_unaligned_access_all_cpus()
[all …]
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-n1/
H A Dspec_operation.json16 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts…
20 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count…
24 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
/linux/tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/
H A Dspec_operation.json20 …"PublicDescription": "Counts unaligned memory read operations issued by the CPU. This event counts…
24 …"PublicDescription": "Counts unaligned memory write operations issued by the CPU. This event count…
28 …"PublicDescription": "Counts unaligned memory operations issued by the CPU. This event counts unal…
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-hwbreak.c46 __u8 b[B_LEN]; /* double word unaligned */
175 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_workload()
178 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload()
181 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, RW test */ in test_workload()
187 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, DAR OUTSIDE, RW test */ in test_workload()
202 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_workload()
438 char *name2 = "PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED"; in test_multi_sethwdebug_range()
452 /* PPC_PTRACE_SETHWDEBUG 2, MODE_RANGE, DW UNALIGNED, RO test */ in test_multi_sethwdebug_range()
500 char *name = "PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED"; in test_sethwdebug_range_unaligned()
504 /* PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW UNALIGNED, WO test */ in test_sethwdebug_range_unaligned()
[all …]
/linux/include/rdma/
H A Dib_hdrs.h10 #include <linux/unaligned.h>
49 __be64 vaddr; /* potentially unaligned */
55 __be64 vaddr; /* potentially unaligned */
57 __be64 swap_data; /* potentially unaligned */
58 __be64 compare_data; /* potentially unaligned */
74 __be64 atomic_ack_eth; /* potentially unaligned */
108 /* accessors for unaligned __be64 items */
/linux/arch/mips/kernel/
H A Dunaligned.c2 * Handle unaligned accesses by emulation.
17 * Putting data to unaligned addresses is a bad practice even on Intel where
92 #include <asm/unaligned-emul.h>
340 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
363 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
418 * would blow up, so for now we don't handle unaligned 64-bit in emulate_load_store_insn()
444 die_if_kernel("Unaligned FP access in kernel code", regs); in emulate_load_store_insn()
592 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn()
598 die_if_kernel("Unhandled kernel unaligned access", regs); in emulate_load_store_insn()
605 ("Unhandled kernel unaligned access or invalid instruction", regs); in emulate_load_store_insn()
[all …]
/linux/arch/alpha/kernel/
H A Dtraps.c25 #include <linux/unaligned.h>
355 * to handle floating-point regs), user-mode unaligned accesses are
359 * on a gp-register unaligned load/store, something is _very_ wrong
369 } unaligned[2]; variable
385 unaligned[0].count++; in do_entUna()
386 unaligned[0].va = (unsigned long) va; in do_entUna()
387 unaligned[0].pc = pc; in do_entUna()
389 /* We don't want to use the generic get/put unaligned macros as in do_entUna()
518 printk("Bad unaligned kernel access at %016lx: %p %lx %lu\n", in do_entUna()
529 printk("Forwarding unaligned exception at %lx (%lx)\n", in do_entUna()
[all …]
/linux/tools/usb/
H A Dhcd-tests.sh117 echo "test 21: control writes, unaligned"
132 echo "test 17: $COUNT transfers, unaligned DMA map by core"
135 echo "test 19: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
193 echo "test 18: $COUNT transfers, unaligned DMA map by core"
196 echo "test 20: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
228 echo "test 23: $COUNT transfers, unaligned"
/linux/arch/sparc/kernel/
H A Dunaligned_32.c3 * unaligned.c: Unaligned load/store trap handling with special
60 printk("Impossible unaligned trap. insn=%08x\n", insn); in decode_access_size()
61 die_if_kernel("Byte sized unaligned access?!?!", current->thread.kregs); in decode_access_size()
246 printk("Unsupported unaligned load/store trap for kernel at <%08lx>.\n", in kernel_unaligned_trap()
248 unaligned_panic("Wheee. Kernel does fpu/atomic unaligned load/store."); in kernel_unaligned_trap()
267 panic("Impossible kernel unaligned trap."); in kernel_unaligned_trap()
/linux/arch/mips/loongson64/
H A Dcop2-ex.c26 #include <asm/unaligned-emul.h>
193 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
209 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
276 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
294 die_if_kernel("Unaligned FP access in kernel code", regs); in loongson_cu2_call()
325 die_if_kernel("Unhandled kernel unaligned access", regs); in loongson_cu2_call()
331 die_if_kernel("Unhandled kernel unaligned access", regs); in loongson_cu2_call()
/linux/arch/parisc/kernel/
H A Dunaligned.c3 * Unaligned memory access handler
15 #include <linux/unaligned.h>
19 #include "unaligned.h"
41 /* skip LDB - never unaligned (index) */
49 /* skip LDB - never unaligned (short) */
57 /* skip STB - never unaligned */
61 /* skip STBY - never unaligned */
62 /* skip STDBY - never unaligned */
392 printk(KERN_WARNING "%s(%d): unaligned access to " RFMT in handle_unaligned()
408 pr_warn("Kernel: unaligned access to " RFMT " in %pS " in handle_unaligned()
[all …]
/linux/arch/arc/lib/
H A Dstrchr-700.S41 breq r7,0,.Loop ; For speed, we want this branch to be unaligned.
45 breq r12,0,.Loop ; For speed, we want this branch to be unaligned.
51 ; /* We require this code address to be unaligned for speed... */
67 breq r7,0,.Loop /* ... so that this branch is unaligned. */
/linux/net/xdp/
H A Dxsk_buff_pool.c57 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local
62 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem()
82 pool->unaligned = unaligned; in xp_create_and_assign_umem()
106 if (pool->unaligned) in xp_create_and_assign_umem()
439 if (!pool->unaligned) { in xp_init_dma_info()
496 if (pool->unaligned) in xp_dma_map()
535 if (pool->unaligned) { in xp_get_xskb()
562 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc()
622 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq()
730 return pool->unaligned ? xp_unaligned_add_offset_to_addr(addr) : addr; in __xp_raw_get_addr()
/linux/Documentation/devicetree/bindings/pci/
H A Dti-pci.txt36 - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument
39 for setting the bit to enable unaligned
54 - ti,syscon-unaligned-access: phandle to the syscon DT node. The 1st argument
57 for setting the bit to enable unaligned
/linux/arch/xtensa/include/asm/
H A Duaccess.h89 * unaligned exception and an MMU-related exception (unaligned
94 * Unaligned exception occurs.
95 * Unaligned exception handler tries to make aligned accesses.
100 * The kernel currently prohibits user unaligned accesses. We use the
101 * __check_align_* macros to check for unaligned addresses before
/linux/arch/microblaze/include/asm/
H A Dflat.h11 #include <linux/unaligned.h>
23 * relocated. rp is a potentially unaligned pointer to the
52 * unaligned.
/linux/arch/xtensa/lib/
H A Dmemcopy.S32 * If destination is unaligned, align it by conditionally
37 * else (if source is unaligned),
85 * Destination is unaligned
189 * Destination is aligned, Source is unaligned
195 # copy 16 bytes per iteration for word-aligned dst and unaligned src
339 * Destination is unaligned
452 * Destination is aligned, Source is unaligned
458 # copy 16 bytes per iteration for word-aligned dst and unaligned src
H A Dusercopy.S33 * If destination is aligned and source unaligned,
35 * If destination is unaligned, align it by conditionally
86 * Destination is unaligned
198 * Destination is aligned, Source is unaligned
205 # copy 16 bytes per iteration for word-aligned dst and unaligned src
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2_utils_fw.c22 "Unaligned write " # ITEM);\
24 "Unaligned write length " # ITEM);\
34 "Unaligned get " # ITEM);\
36 "Unaligned get length " # ITEM);\
50 "Unaligned read " # ITEM);\
52 "Unaligned read length " # ITEM);\
64 "Unaligned read_safe " # ITEM);\
67 "Unaligned read_safe length " # ITEM);\
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_xadd.c16 __description("xadd/w check unaligned stack")
30 __description("xadd/w check unaligned map")
54 __description("xadd/w check unaligned pkt")
/linux/tools/testing/selftests/mm/
H A Dhugetlb_dio.c7 * unaligned user buffer offsets (w.r.t page boundary), ensuring the hugepage
163 /* start is unaligned and end is aligned */
166 /* both start and end are unaligned */

12345678910>>...40