| /linux-6.15/Documentation/core-api/ |
| H A D | unaligned-memory-access.rst | 15 unaligned accesses, why you need to write code that doesn't cause them, 19 The definition of an unaligned access 25 reading 4 bytes of data from address 0x10005 would be an unaligned memory 52 Why unaligned access is bad 59 - Some architectures are able to perform unaligned memory accesses 66 unaligned access to be corrected. 76 Code that does not cause unaligned access 136 lead to unaligned accesses when accessing fields that do not satisfy 145 Code that causes unaligned access 173 (Hint: it'd be an unaligned access.) [all …]
|
| /linux-6.15/Documentation/arch/arm/ |
| H A D | mem_alignment.rst | 14 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-6.15/net/xdp/ |
| H A D | xsk_buff_pool.c | 60 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local 65 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem() 85 pool->unaligned = unaligned; in xp_create_and_assign_umem() 108 if (pool->unaligned) in xp_create_and_assign_umem() 418 if (!pool->unaligned) { in xp_init_dma_info() 474 if (pool->unaligned) in xp_dma_map() 513 if (pool->unaligned) { in xp_get_xskb() 540 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc() 600 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq() 708 return pool->unaligned ? xp_unaligned_add_offset_to_addr(addr) : addr; in __xp_raw_get_addr()
|
| /linux-6.15/arch/alpha/kernel/ |
| H A D | traps.c | 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() 694 ++unaligned[1].count; in do_entUnaUser() 695 unaligned[1].va = (unsigned long)va; in do_entUnaUser() 696 unaligned[1].pc = regs->pc - 4; in do_entUnaUser()
|
| H A D | setup.c | 1049 } unaligned[2]; in show_cpuinfo() local 1112 unaligned[0].count, unaligned[0].pc, unaligned[0].va, in show_cpuinfo() 1113 unaligned[1].count, unaligned[1].pc, unaligned[1].va, in show_cpuinfo()
|
| /linux-6.15/Documentation/devicetree/bindings/pci/ |
| H A D | ti-pci.txt | 36 - 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-6.15/drivers/s390/cio/ |
| H A D | vfio_ccw_cp.c | 92 struct vfio_device *vdev, int pa_nr, bool unaligned) in page_array_unpin() argument 102 !unaligned) { in page_array_unpin() 131 static int page_array_pin(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_pin() argument 142 !unaligned) { in page_array_pin() 164 page_array_unpin(pa, vdev, pinned, unaligned); in page_array_pin() 169 static void page_array_unpin_free(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_unpin_free() argument 171 page_array_unpin(pa, vdev, pa->pa_nr, unaligned); in page_array_unpin_free()
|
| /linux-6.15/arch/riscv/ |
| H A D | Kconfig | 931 bool "Probe for hardware unaligned access support" 936 the speed of unaligned accesses on the underlying system. If unaligned 942 bool "Emulate unaligned access where system support is missing" 946 supported by the system, the kernel will emulate the unaligned 948 unaligned accesses, the unaligned accesses are assumed to be slow. 956 that do not support unaligned memory accesses. 968 support efficient unaligned memory accesses. 973 prompt "Vector unaligned Accesses Support" 983 bool "Probe speed of vector unaligned accesses" 998 that do not support unaligned memory accesses. [all …]
|
| /linux-6.15/include/net/ |
| H A D | xsk_buff_pool.h | 85 bool unaligned; member 229 if (xskb->pool->unaligned) in xp_release() 239 if (!pool->unaligned) in xp_get_handle()
|
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | unaligned-memory-access.rst | 3 :Original: Documentation/core-api/unaligned-memory-access.rst 178 避免非对齐访问的最简单方法是使用<linux/unaligned.h>头文件提供的get_unaligned()和
|
| /linux-6.15/arch/parisc/boot/compressed/ |
| H A D | vmlinux.scr | 7 output_len = . - 4; /* can be at unaligned address */
|
| /linux-6.15/Documentation/dev-tools/ |
| H A D | ubsan.rst | 68 Detection of unaligned accesses controlled through the separate option - 70 unaligned accesses (CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y). One could
|
| /linux-6.15/Documentation/devicetree/bindings/mtd/ |
| H A D | mtd-physmap.yaml | 84 no-unaligned-direct-access: 90 with JFFS2 usage, as the local bus (LPB) doesn't support unaligned 92 "no-unaligned-direct-access", the flash will not be exposed directly to
|
| /linux-6.15/arch/loongarch/lib/ |
| H A D | Makefile | 7 clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o
|
| /linux-6.15/arch/arc/lib/ |
| H A D | Makefile | 12 lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs-unaligned.o
|
| H A D | memcpy-archs.S | 94 ;;; CASE 1: The source is unaligned, off by 1 139 ;;; CASE 2: The source is unaligned, off by 2 180 ;;; CASE 3: The source is unaligned, off by 3
|
| H A D | strchr-700.S | 41 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.
|
| /linux-6.15/Documentation/netlink/specs/ |
| H A D | ovs_datapath.yaml | 26 name: unaligned 27 doc: Allow last Netlink attribute to be unaligned
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| H A D | pool.c | 75 xsk->unaligned = pool->unaligned; in mlx5e_build_xsk_param()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | Makefile | 78 obj-$(CONFIG_RISCV_PROBE_UNALIGNED_ACCESS) += copy-unaligned.o 79 obj-$(CONFIG_RISCV_PROBE_VECTOR_UNALIGNED_ACCESS) += vec-copy-unaligned.o
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | module.c | 199 goto unaligned; in apply_r_larch_sop_imm_field() 214 goto unaligned; in apply_r_larch_sop_imm_field() 225 goto unaligned; in apply_r_larch_sop_imm_field() 251 unaligned: in apply_r_larch_sop_imm_field()
|
| /linux-6.15/drivers/gpu/drm/ci/xfails/ |
| H A D | i915-whl-flakes.txt | 13 gen9_exec_parse@unaligned-access
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-imx.c | 347 int unaligned; in spi_imx_buf_rx_swap() local 350 unaligned = spi_imx->remainder % 4; in spi_imx_buf_rx_swap() 352 if (!unaligned) { in spi_imx_buf_rx_swap() 364 while (unaligned--) { in spi_imx_buf_rx_swap() 366 *(u8 *)spi_imx->rx_buf = (val >> (8 * unaligned)) & 0xff; in spi_imx_buf_rx_swap() 399 int unaligned; in spi_imx_buf_tx_swap() local 402 unaligned = spi_imx->count % 4; in spi_imx_buf_tx_swap() 404 if (!unaligned) { in spi_imx_buf_tx_swap() 414 while (unaligned--) { in spi_imx_buf_tx_swap() 416 val |= *(u8 *)spi_imx->tx_buf << (8 * unaligned); in spi_imx_buf_tx_swap()
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | emulated_ops.h | 35 struct ppc_emulated_entry unaligned; member
|
| /linux-6.15/arch/arc/kernel/ |
| H A D | Makefile | 18 obj-$(CONFIG_ARC_EMUL_UNALIGNED) += unaligned.o
|