Home
last modified time | relevance | path

Searched refs:unaligned (Results 1 – 25 of 91) sorted by relevance

1234

/linux/Documentation/core-api/
H A Dunaligned-memory-access.rst15 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 Dmem_alignment.rst14 unaligned memory access in general. If those access are predictable, you
15 are better to use the macros provided by include/asm/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 Dxsk_buff_pool.c58 bool unaligned = umem->flags & XDP_UMEM_UNALIGNED_CHUNK_FLAG; in xp_create_and_assign_umem() local
63 entries = unaligned ? umem->chunks : 0; in xp_create_and_assign_umem()
83 pool->unaligned = unaligned; in xp_create_and_assign_umem()
106 if (pool->unaligned) in xp_create_and_assign_umem()
415 if (!pool->unaligned) { in xp_init_dma_info()
469 if (pool->unaligned) in xp_dma_map()
519 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc()
529 if (pool->unaligned) { in __xp_alloc()
586 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq()
594 if (pool->unaligned) { in xp_alloc_new_from_fq()
[all …]
/linux/arch/alpha/kernel/
H A Dtraps.c369 } 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 Dsetup.c1049 } 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/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/drivers/s390/cio/
H A Dvfio_ccw_cp.c92 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/include/net/
H A Dxsk_buff_pool.h84 bool unaligned;
221 if (xskb->pool->unaligned) in xp_aligned_extract_idx()
230 if (!xskb->pool->unaligned)
86 bool unaligned; global() member
/linux/Documentation/translations/zh_CN/core-api/
H A Dunaligned-memory-access.rst3 :Original: Documentation/core-api/unaligned-memory-access.rst
178 避免非对齐访问的最简单方法是使用<asm/unaligned.h>头文件提供的get_unaligned()和
/linux/Documentation/dev-tools/
H A Dubsan.rst68 Detection of unaligned accesses controlled through the separate option -
70 unaligned accesses (CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y). One could
/linux/arch/riscv/
H A DKconfig781 This determines the level of support for unaligned accesses. This
787 bool "Probe for hardware unaligned access support"
791 speed of unaligned accesses. This probing will dynamically determine
792 the speed of unaligned accesses on the underlying system. If unaligned
794 system, the kernel will emulate the unaligned accesses to preserve the
798 bool "Emulate unaligned access where system support is missing"
801 If unaligned memory accesses trap into the kernel as they are not
802 supported by the system, the kernel will emulate the unaligned
804 unaligned accesses, the unaligned accesses are assumed to be slow.
807 bool "Assume the system supports slow unaligned memory accesses"
[all …]
/linux/arch/arc/lib/
H A Dmemcpy-archs.S94 ;;; 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 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.
H A DMakefile12 lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs-unaligned.o
/linux/arch/loongarch/kernel/
H A Dmodule.c199 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/arch/parisc/boot/compressed/
H A Dvmlinux.scr7 output_len = . - 4; /* can be at unaligned address */
/linux/drivers/spi/
H A Dspi-imx.c330 int unaligned; in spi_imx_buf_rx_swap() local
333 unaligned = spi_imx->remainder % 4; in spi_imx_buf_rx_swap()
335 if (!unaligned) { in spi_imx_buf_rx_swap()
347 while (unaligned--) { in spi_imx_buf_rx_swap()
349 *(u8 *)spi_imx->rx_buf = (val >> (8 * unaligned)) & 0xff; in spi_imx_buf_rx_swap()
382 int unaligned; in spi_imx_buf_tx_swap() local
385 unaligned = spi_imx->count % 4; in spi_imx_buf_tx_swap()
387 if (!unaligned) { in spi_imx_buf_tx_swap()
397 while (unaligned--) { in spi_imx_buf_tx_swap()
399 val |= *(u8 *)spi_imx->tx_buf << (8 * unaligned); in spi_imx_buf_tx_swap()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Dpool.c75 xsk->unaligned = pool->unaligned; in mlx5e_build_xsk_param()
/linux/arch/loongarch/lib/
H A DMakefile7 clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o
/linux/drivers/gpu/drm/ci/xfails/
H A Dmediatek-mt8173-flakes.txt20 fbdev@unaligned-write
/linux/drivers/net/ethernet/broadcom/
H A Dbgmac.c646 ring->unaligned = bgmac_dma_unaligned(bgmac, ring, in bgmac_dma_alloc()
648 if (ring->unaligned) in bgmac_dma_alloc()
671 ring->unaligned = bgmac_dma_unaligned(bgmac, ring, in bgmac_dma_alloc()
673 if (ring->unaligned) in bgmac_dma_alloc()
694 if (!ring->unaligned) in bgmac_dma_init()
700 if (ring->unaligned) in bgmac_dma_init()
712 if (!ring->unaligned) in bgmac_dma_init()
718 if (ring->unaligned) in bgmac_dma_init()
/linux/arch/powerpc/include/asm/
H A Demulated_ops.h35 struct ppc_emulated_entry unaligned; member
/linux/arch/arc/kernel/
H A DMakefile18 obj-$(CONFIG_ARC_EMUL_UNALIGNED) += unaligned.o
/linux/arch/arm/crypto/
H A Dsha1-armv4-large.S93 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 Dparams.c45 bool unaligned = xsk ? xsk->unaligned : false; in mlx5e_mpwrq_umr_mode() local
76 if (unaligned) in mlx5e_mpwrq_umr_mode()
566 mlx5e_mpwrq_max_log_rq_pkts(mdev, page_shift, xsk->unaligned)); in mlx5e_mpwrq_validate_xsk()
1149 .unaligned = false, in mlx5e_build_icosq_log_wq_sz()
1157 xsk.unaligned = true; in mlx5e_build_icosq_log_wq_sz()

1234