Home
last modified time | relevance | path

Searched refs:IS_ALIGNED (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/Linux-v6.6/mm/kasan/
Dinit.c118 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate()
154 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate()
196 if (IS_ALIGNED(addr, P4D_SIZE) && end - addr >= P4D_SIZE) { in zero_p4d_populate()
247 if (IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_populate_early_shadow()
388 if (IS_ALIGNED(addr, PMD_SIZE) && in kasan_remove_pmd_table()
389 IS_ALIGNED(next, PMD_SIZE)) { in kasan_remove_pmd_table()
414 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table()
415 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table()
441 if (IS_ALIGNED(addr, P4D_SIZE) && in kasan_remove_p4d_table()
442 IS_ALIGNED(next, P4D_SIZE)) { in kasan_remove_p4d_table()
[all …]
/Linux-v6.6/arch/s390/mm/
Dvmem.c113 if (likely(IS_ALIGNED(unused_sub_pmd_start, PMD_SIZE))) in vmemmap_use_sub_pmd()
131 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd()
138 if (!IS_ALIGNED(end, PMD_SIZE)) in vmemmap_use_new_sub_pmd()
229 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table()
230 IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table()
242 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table()
243 IS_ALIGNED(next, PMD_SIZE) && in modify_pmd_table()
262 if (!IS_ALIGNED(addr, PMD_SIZE) || in modify_pmd_table()
263 !IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table()
322 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table()
[all …]
/Linux-v6.6/arch/x86/lib/
Dusercopy_64.c64 if (!IS_ALIGNED(dest, 4) || size != 4) in __copy_user_flushcache()
67 if (!IS_ALIGNED(dest, 8)) { in __copy_user_flushcache()
73 if (size > flushed && !IS_ALIGNED(size - flushed, 8)) in __copy_user_flushcache()
86 if (!IS_ALIGNED(dest, 8)) { in __memcpy_flushcache()
/Linux-v6.6/drivers/hwtracing/coresight/
Dcoresight-trbe.h118 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_limit_pointer()
127 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_base_pointer()
134 WARN_ON(!IS_ALIGNED(addr, (1UL << TRBBASER_EL1_BASE_SHIFT))); in set_trbe_base_pointer()
135 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in set_trbe_base_pointer()
/Linux-v6.6/drivers/gpu/drm/i915/
Di915_gem_gtt.c106 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_reserve()
107 GEM_BUG_ON(!IS_ALIGNED(offset, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_reserve()
203 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
205 GEM_BUG_ON(alignment && !IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_insert()
207 GEM_BUG_ON(start > 0 && !IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
208 GEM_BUG_ON(end < U64_MAX && !IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
/Linux-v6.6/arch/riscv/include/asm/
Dvmalloc.h43 if (!IS_ALIGNED(addr, size)) in arch_vmap_pte_range_map_size()
46 if (!IS_ALIGNED(PFN_PHYS(pfn), size)) in arch_vmap_pte_range_map_size()
71 if (!IS_ALIGNED(size, napot_cont_size(order))) in arch_vmap_pte_supported_shift()
/Linux-v6.6/arch/loongarch/kernel/
Dio.c14 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio()
42 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio()
76 while (count && !IS_ALIGNED((unsigned long)dst, 8)) { in __memset_io()
/Linux-v6.6/arch/csky/kernel/
Dio.c12 while (count && !IS_ALIGNED((unsigned long)from, 4)) { in __memcpy_fromio()
40 while (count && !IS_ALIGNED((unsigned long)to, 4)) { in __memcpy_toio()
73 while (count && !IS_ALIGNED((unsigned long)dst, 4)) { in __memset_io()
/Linux-v6.6/arch/arm64/kernel/
Dio.c17 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio()
45 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio()
79 while (count && !IS_ALIGNED((unsigned long)dst, 8)) { in __memset_io()
/Linux-v6.6/arch/riscv/mm/
Dkasan_init.c66 if (pmd_none(*pmdp) && IS_ALIGNED(vaddr, PMD_SIZE) && (next - vaddr) >= PMD_SIZE) { in kasan_populate_pmd()
96 if (pud_none(*pudp) && IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_populate_pud()
126 if (p4d_none(*p4dp) && IS_ALIGNED(vaddr, P4D_SIZE) && (next - vaddr) >= P4D_SIZE) { in kasan_populate_p4d()
148 if (pgd_none(*pgdp) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_populate_pgd()
178 if (IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_early_clear_pud()
203 if (pgtable_l4_enabled && IS_ALIGNED(vaddr, P4D_SIZE) && in kasan_early_clear_p4d()
221 if (pgtable_l5_enabled && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_clear_pgd()
249 if (pud_none(*pudp) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_early_populate_pud()
287 if (p4d_none(*p4dp) && IS_ALIGNED(vaddr, P4D_SIZE) && in kasan_early_populate_p4d()
308 if (pgd_none(*pgdp) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_populate_pgd()
/Linux-v6.6/drivers/gpu/drm/i915/gvt/
Dcfg_space.c185 bool lo = IS_ALIGNED(offset, 8); in emulate_pci_bar_write()
270 if (IS_ALIGNED(offset, 2) && offset == PCI_COMMAND) { in intel_vgpu_emulate_cfg_write()
278 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
283 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
288 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
296 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
Dmmio.c126 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4) && in intel_vgpu_emulate_mmio_read()
127 !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_read()
151 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, bytes))) in intel_vgpu_emulate_mmio_read()
202 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4) && in intel_vgpu_emulate_mmio_write()
203 !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_write()
/Linux-v6.6/drivers/gpu/drm/i915/gt/
Dgen8_ppgtt.c306 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear()
307 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear()
390 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc()
391 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc()
528 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && in xehpsdv_ppgtt_insert_huge()
561 } else if (IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in xehpsdv_ppgtt_insert_huge()
597 if (unlikely(!IS_ALIGNED(iter->dma, page_size))) in xehpsdv_ppgtt_insert_huge()
631 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && in gen8_ppgtt_insert_huge()
648 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in gen8_ppgtt_insert_huge()
649 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge()
[all …]
Dgen8_engine_cs.h95 GEM_BUG_ON(!IS_ALIGNED(gtt_offset, 8)); in gen8_emit_ggtt_write_rcs()
108 GEM_BUG_ON(!IS_ALIGNED(gtt_offset, 8)); in gen12_emit_ggtt_write_rcs()
134 GEM_BUG_ON(!IS_ALIGNED(gtt_offset, 8)); in gen8_emit_ggtt_write()
Dintel_ring.h52 GEM_BUG_ON(!IS_ALIGNED(rq->ring->emit, 8)); /* RING_TAIL qword align */ in intel_ring_advance()
75 if (!IS_ALIGNED(pos, 8)) /* must be qword aligned */ in intel_ring_offset_valid()
/Linux-v6.6/drivers/net/wireless/silabs/wfx/
Dbus_sdio.c59 WARN(!IS_ALIGNED((uintptr_t)dst, 4), "unaligned buffer address"); in wfx_sdio_copy_from_io()
60 WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); in wfx_sdio_copy_from_io()
79 WARN(!IS_ALIGNED((uintptr_t)src, 4), "unaligned buffer address"); in wfx_sdio_copy_to_io()
80 WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); in wfx_sdio_copy_to_io()
/Linux-v6.6/arch/s390/boot/
Dvmem.c127 IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_pgd_populate_zero_shadow()
138 IS_ALIGNED(addr, P4D_SIZE) && end - addr >= P4D_SIZE) { in kasan_p4d_populate_zero_shadow()
149 IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in kasan_pud_populate_zero_shadow()
160 IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in kasan_pmd_populate_zero_shadow()
274 IS_ALIGNED(addr, PUD_SIZE) && (end - addr) >= PUD_SIZE; in can_large_pud()
280 IS_ALIGNED(addr, PMD_SIZE) && (end - addr) >= PMD_SIZE; in can_large_pmd()
/Linux-v6.6/drivers/firmware/tegra/
Divc.c564 if (!IS_ALIGNED(queue_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_total_queue_size()
577 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, tx.count), in tegra_ivc_check_params()
579 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, rx.count), in tegra_ivc_check_params()
581 BUILD_BUG_ON(!IS_ALIGNED(sizeof(struct tegra_ivc_header), in tegra_ivc_check_params()
589 if (!IS_ALIGNED(frame_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
598 if (!IS_ALIGNED(rx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
603 if (!IS_ALIGNED(tx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
/Linux-v6.6/drivers/gpu/drm/i915/gem/
Di915_gem_region.c74 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_MIN_ALIGNMENT)); in __i915_gem_object_create_region()
124 if (GEM_WARN_ON(!IS_ALIGNED(size, mem->min_page_size)) || in i915_gem_object_create_region_at()
125 GEM_WARN_ON(!IS_ALIGNED(offset, mem->min_page_size))) in i915_gem_object_create_region_at()
/Linux-v6.6/drivers/crypto/
Domap-crypto.c94 if (!IS_ALIGNED(total, bs)) in omap_crypto_check_sg()
100 if (!IS_ALIGNED(sg->offset, 4)) in omap_crypto_check_sg()
102 if (!IS_ALIGNED(sg->length, bs)) in omap_crypto_check_sg()
/Linux-v6.6/fs/btrfs/
Dtree-checker.c108 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \
114 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \
212 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item()
355 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_csum_item()
361 if (unlikely(!IS_ALIGNED(btrfs_item_size(leaf, slot), csumsize))) { in check_csum_item()
836 if (unlikely(!IS_ALIGNED(logical, fs_info->sectorsize))) { in btrfs_check_chunk_valid()
849 if (unlikely(!length || !IS_ALIGNED(length, fs_info->sectorsize))) { in btrfs_check_chunk_valid()
1207 if (unlikely(!IS_ALIGNED(btrfs_root_bytenr(&ri), fs_info->sectorsize))) { in check_root_item()
1289 if (unlikely(!IS_ALIGNED(key->objectid, fs_info->sectorsize))) { in check_extent_item()
1370 if (unlikely(!IS_ALIGNED(key->offset, fs_info->sectorsize))) { in check_extent_item()
[all …]
/Linux-v6.6/arch/x86/kernel/
Dshstk.c55 if (!IS_ALIGNED(ssp, 8)) in create_rstor_token()
285 if (!IS_ALIGNED(target_ssp, 8)) in shstk_push_sigframe()
308 if (!IS_ALIGNED(*ssp, 8)) in shstk_pop_sigframe()
331 if (unlikely(!IS_ALIGNED(token_addr, 8))) in shstk_pop_sigframe()
/Linux-v6.6/include/linux/
Dbitmap.h374 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal()
459 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set()
461 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set()
475 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear()
477 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
/Linux-v6.6/drivers/dma/
Dmpc512x_dma.c632 if (IS_ALIGNED(src | dst | len, 32)) { in mpc_dma_prep_memcpy()
637 } else if (!mdma->is_mpc8308 && IS_ALIGNED(src | dst | len, 16)) { in mpc_dma_prep_memcpy()
643 } else if (IS_ALIGNED(src | dst | len, 4)) { in mpc_dma_prep_memcpy()
648 } else if (IS_ALIGNED(src | dst | len, 2)) { in mpc_dma_prep_memcpy()
745 if (!IS_ALIGNED(sg_dma_address(sg), mchan->dwidth)) in mpc_dma_prep_slave_sg()
754 if (!IS_ALIGNED(sg_dma_address(sg), mchan->swidth)) in mpc_dma_prep_slave_sg()
766 if (!IS_ALIGNED(tcd->nbytes, mchan->swidth)) in mpc_dma_prep_slave_sg()
775 if (!IS_ALIGNED(len, tcd->nbytes)) in mpc_dma_prep_slave_sg()
850 if (!IS_ALIGNED(cfg->src_addr, cfg->src_addr_width) || in mpc_dma_device_config()
851 !IS_ALIGNED(cfg->dst_addr, cfg->dst_addr_width)) { in mpc_dma_device_config()
/Linux-v6.6/arch/powerpc/include/asm/nohash/32/
Dmmu-8xx.h236 if (!IS_ALIGNED(addr, size)) in arch_vmap_try_size()
239 if (!IS_ALIGNED(PFN_PHYS(pfn), size)) in arch_vmap_try_size()

12345678910>>...16