Home
last modified time | relevance | path

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

1234

/linux-6.6.21/Documentation/core-api/
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-6.6.21/Documentation/arch/arm/
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-6.6.21/net/xdp/
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()
104 if (pool->unaligned) in xp_create_and_assign_umem()
397 if (!pool->unaligned) { in xp_init_dma_info()
454 if (pool->unaligned) in xp_dma_map()
504 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in __xp_alloc()
514 if (pool->unaligned) { in __xp_alloc()
573 ok = pool->unaligned ? xp_check_unaligned(pool, &addr) : in xp_alloc_new_from_fq()
581 if (pool->unaligned) { in xp_alloc_new_from_fq()
[all …]
/linux-6.6.21/drivers/s390/cio/
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-6.6.21/arch/alpha/kernel/
Dtraps.c427 } unaligned[2]; variable
443 unaligned[0].count++; in do_entUna()
444 unaligned[0].va = (unsigned long) va; in do_entUna()
445 unaligned[0].pc = pc; in do_entUna()
752 ++unaligned[1].count; in do_entUnaUser()
753 unaligned[1].va = (unsigned long)va; in do_entUnaUser()
754 unaligned[1].pc = regs->pc - 4; in do_entUnaUser()
Dsetup.c1132 } unaligned[2]; in show_cpuinfo() local
1195 unaligned[0].count, unaligned[0].pc, unaligned[0].va, in show_cpuinfo()
1196 unaligned[1].count, unaligned[1].pc, unaligned[1].va, in show_cpuinfo()
/linux-6.6.21/Documentation/devicetree/bindings/pci/
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-6.6.21/include/net/
Dxsk_buff_pool.h83 bool unaligned; member
222 if (xskb->pool->unaligned) in xp_release()
231 if (!xskb->pool->unaligned) in xp_get_handle()
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dunaligned-memory-access.rst3 :Original: Documentation/core-api/unaligned-memory-access.rst
178 避免非对齐访问的最简单方法是使用<asm/unaligned.h>头文件提供的get_unaligned()和
Dindex.rst110 unaligned-memory-access
/linux-6.6.21/arch/parisc/boot/compressed/
Dvmlinux.scr7 output_len = . - 4; /* can be at unaligned address */
/linux-6.6.21/Documentation/devicetree/bindings/mtd/
Dmtd-physmap.yaml84 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.6.21/arch/loongarch/lib/
DMakefile7 clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o
/linux-6.6.21/arch/arc/lib/
DMakefile12 lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs-unaligned.o
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
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.
/linux-6.6.21/Documentation/netlink/specs/
Dovs_datapath.yaml25 name: unaligned
26 doc: Allow last Netlink attribute to be unaligned
/linux-6.6.21/Documentation/dev-tools/
Dubsan.rst78 Detection of unaligned accesses controlled through the separate option -
80 unaligned accesses (CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y). One could
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dpool.c75 xsk->unaligned = pool->unaligned; in mlx5e_build_xsk_param()
/linux-6.6.21/arch/loongarch/kernel/
Dmodule.c198 goto unaligned; in apply_r_larch_sop_imm_field()
213 goto unaligned; in apply_r_larch_sop_imm_field()
224 goto unaligned; in apply_r_larch_sop_imm_field()
250 unaligned: in apply_r_larch_sop_imm_field()
/linux-6.6.21/drivers/spi/
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-6.6.21/arch/powerpc/include/asm/
Demulated_ops.h35 struct ppc_emulated_entry unaligned; member
/linux-6.6.21/arch/arc/kernel/
DMakefile18 obj-$(CONFIG_ARC_EMUL_UNALIGNED) += unaligned.o
/linux-6.6.21/drivers/net/ethernet/broadcom/
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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c44 bool unaligned = xsk ? xsk->unaligned : false; in mlx5e_mpwrq_umr_mode() local
75 if (unaligned) in mlx5e_mpwrq_umr_mode()
622 mlx5e_mpwrq_max_log_rq_pkts(mdev, page_shift, xsk->unaligned)); in mlx5e_mpwrq_validate_xsk()
1193 .unaligned = false, in mlx5e_build_icosq_log_wq_sz()
1201 xsk.unaligned = true; in mlx5e_build_icosq_log_wq_sz()

1234