| /linux/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 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, 64 - Some architectures raise processor exceptions when unaligned accesses 66 unaligned access to be corrected. [all …]
|
| /linux/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/net/xdp/ |
| H A D | xsk_buff_pool.c | 62 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local 67 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem() 87 pool->unaligned = unaligned; in xp_create_and_assign_umem() 111 if (pool->unaligned) in xp_create_and_assign_umem() 444 if (!pool->unaligned) { in xp_init_dma_info() 501 if (pool->unaligned) in xp_dma_map() 540 if (pool->unaligned) { in xp_get_xskb() 567 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc() 627 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq() 735 return pool->unaligned ? xp_unaligned_add_offset_to_addr(addr) : addr; in __xp_raw_get_addr()
|
| /linux/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/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/arch/alpha/kernel/ |
| H A D | setup.c | 1048 } unaligned[2]; in show_cpuinfo() 1111 unaligned[0].count, unaligned[0].pc, unaligned[0].va, in show_cpuinfo() 1112 unaligned[1].count, unaligned[1].pc, unaligned[1].va, in show_cpuinfo()
|
| /linux/include/net/ |
| H A D | xsk_buff_pool.h | 88 bool unaligned; member 227 if (xskb->pool->unaligned) in xp_release() 237 if (!pool->unaligned) in xp_get_handle()
|
| /linux/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()和
|
| H A D | index.rst | 111 unaligned-memory-access
|
| /linux/drivers/spi/ |
| H A D | spi-imx.c | 379 int unaligned; in spi_imx_buf_rx_swap() local 382 unaligned = spi_imx->remainder % 4; in spi_imx_buf_rx_swap() 384 if (!unaligned) { in spi_imx_buf_rx_swap() 396 while (unaligned--) { in spi_imx_buf_rx_swap() 398 *(u8 *)spi_imx->rx_buf = (val >> (8 * unaligned)) & 0xff; in spi_imx_buf_rx_swap() 431 int unaligned; in spi_imx_buf_tx_swap() local 434 unaligned = spi_imx->count % 4; in spi_imx_buf_tx_swap() 436 if (!unaligned) { in spi_imx_buf_tx_swap() 446 while (unaligned--) { in spi_imx_buf_tx_swap() 448 val |= *(u8 *)spi_imx->tx_buf << (8 * unaligned); in spi_imx_buf_tx_swap() [all …]
|
| /linux/arch/parisc/boot/compressed/ |
| H A D | vmlinux.scr | 7 output_len = . - 4; /* can be at unaligned address */
|
| /linux/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/arch/loongarch/lib/ |
| H A D | Makefile | 6 lib-y += delay.o clear_user.o copy_user.o dump_tlb.o unaligned.o
|
| /linux/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/rust/zerocopy-derive/ |
| H A D | lib.rs | 127 derive!(Unaligned => derive_unaligned => crate::derive::unaligned::derive_unaligned); 149 (crate::derive::unaligned::derive_unaligned, Trait::Unaligned), in most_traits()
|
| /linux/arch/riscv/kernel/ |
| H A D | Makefile | 80 obj-$(CONFIG_RISCV_PROBE_UNALIGNED_ACCESS) += copy-unaligned.o 81 obj-$(CONFIG_RISCV_PROBE_VECTOR_UNALIGNED_ACCESS) += vec-copy-unaligned.o
|
| /linux/arch/powerpc/include/asm/ |
| H A D | emulated_ops.h | 35 struct ppc_emulated_entry unaligned; member
|
| /linux/arch/loongarch/kernel/ |
| H A D | module.c | 216 goto unaligned; in apply_r_larch_sop_imm_field() 231 goto unaligned; in apply_r_larch_sop_imm_field() 242 goto unaligned; in apply_r_larch_sop_imm_field() 268 unaligned: in apply_r_larch_sop_imm_field()
|
| /linux/arch/arc/kernel/ |
| H A D | Makefile | 18 obj-$(CONFIG_ARC_EMUL_UNALIGNED) += unaligned.o
|
| /linux/Documentation/translations/zh_CN/process/ |
| H A D | index.rst | 87 ../core-api/unaligned-memory-access
|
| /linux/lib/crypto/arm/ |
| H A D | sha1-armv4-large.S | 93 ldr r9,[r1],#4 @ handles unaligned 118 ldr r9,[r1],#4 @ handles unaligned 143 ldr r9,[r1],#4 @ handles unaligned 168 ldr r9,[r1],#4 @ handles unaligned 193 ldr r9,[r1],#4 @ handles unaligned 221 ldr r9,[r1],#4 @ handles unaligned
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 62 bool unaligned = xsk ? xsk->unaligned : false; in mlx5e_mpwrq_umr_mode() local 93 if (unaligned) in mlx5e_mpwrq_umr_mode() 591 mlx5e_mpwrq_max_log_rq_pkts(mdev, page_shift, xsk->unaligned)); in mlx5e_mpwrq_validate_xsk() 1189 xsk.unaligned = false; in mlx5e_max_xsk_wqebbs() 1194 xsk.unaligned = true; in mlx5e_max_xsk_wqebbs()
|
| /linux/arch/parisc/kernel/ |
| H A D | Makefile | 11 signal.o hpmc.o real2.o parisc_ksyms.o unaligned.o \
|