Home
last modified time | relevance | path

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

12345678910>>...12

/kernel/linux/linux-5.10/mm/kasan/
Dinit.c122 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()
191 if (IS_ALIGNED(addr, P4D_SIZE) && end - addr >= P4D_SIZE) { in zero_p4d_populate()
241 if (IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_populate_early_shadow()
379 if (IS_ALIGNED(addr, PMD_SIZE) && in kasan_remove_pmd_table()
380 IS_ALIGNED(next, PMD_SIZE)) { in kasan_remove_pmd_table()
405 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table()
406 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table()
432 if (IS_ALIGNED(addr, P4D_SIZE) && in kasan_remove_p4d_table()
433 IS_ALIGNED(next, P4D_SIZE)) { in kasan_remove_p4d_table()
[all …]
/kernel/linux/linux-5.10/arch/s390/mm/
Dvmem.c111 if (likely(IS_ALIGNED(unused_pmd_start, PMD_SIZE))) in vmemmap_use_sub_pmd()
129 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd()
136 if (!IS_ALIGNED(end, PMD_SIZE)) in vmemmap_use_new_sub_pmd()
227 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table()
228 IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table()
240 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table()
241 IS_ALIGNED(next, PMD_SIZE) && in modify_pmd_table()
260 if (!IS_ALIGNED(addr, PMD_SIZE) || in modify_pmd_table()
261 !IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table()
328 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table()
[all …]
Dkasan_init.c118 IS_ALIGNED(address, PGDIR_SIZE) && in kasan_early_vmemmap_populate()
138 IS_ALIGNED(address, P4D_SIZE) && in kasan_early_vmemmap_populate()
158 IS_ALIGNED(address, PUD_SIZE) && in kasan_early_vmemmap_populate()
171 if (IS_ALIGNED(address, PMD_SIZE) && in kasan_early_vmemmap_populate()
308 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, P4D_SIZE)); in kasan_early_init()
309 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, P4D_SIZE)); in kasan_early_init()
318 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, PUD_SIZE)); in kasan_early_init()
319 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PUD_SIZE)); in kasan_early_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_gem_gtt.c109 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_reserve()
110 GEM_BUG_ON(!IS_ALIGNED(offset, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_reserve()
204 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
206 GEM_BUG_ON(alignment && !IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_insert()
208 GEM_BUG_ON(start > 0 && !IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
209 GEM_BUG_ON(end < U64_MAX && !IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
/kernel/linux/linux-5.10/arch/x86/lib/
Dusercopy_64.c101 if (!IS_ALIGNED(dest, 4) || size != 4) in __copy_user_flushcache()
104 if (!IS_ALIGNED(dest, 8)) { in __copy_user_flushcache()
110 if (size > flushed && !IS_ALIGNED(size - flushed, 8)) in __copy_user_flushcache()
123 if (!IS_ALIGNED(dest, 8)) { in __memcpy_flushcache()
/kernel/linux/linux-5.10/mm/
Dioremap.c94 if (!IS_ALIGNED(addr, PMD_SIZE)) in ioremap_try_huge_pmd()
97 if (!IS_ALIGNED(phys_addr, PMD_SIZE)) in ioremap_try_huge_pmd()
140 if (!IS_ALIGNED(addr, PUD_SIZE)) in ioremap_try_huge_pud()
143 if (!IS_ALIGNED(phys_addr, PUD_SIZE)) in ioremap_try_huge_pud()
186 if (!IS_ALIGNED(addr, P4D_SIZE)) in ioremap_try_huge_p4d()
189 if (!IS_ALIGNED(phys_addr, P4D_SIZE)) in ioremap_try_huge_p4d()
Dpage_isolation.c190 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in start_isolate_page_range()
191 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in start_isolate_page_range()
227 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
228 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/kernel/base/include/
Dlos_vm_common.h74 #define IS_ALIGNED(a, b) (!(((UINTPTR)(a)) & (((UINTPTR)(b)) - 1))) macro
75 #define IS_PAGE_ALIGNED(x) IS_ALIGNED(x, PAGE_SIZE)
76 #define IS_SECTION_ALIGNED(x) IS_ALIGNED(x, SECTION_SIZE)
/kernel/liteos_a/arch/arm/arm/include/
Dlos_mmu_descriptor_v6.h49 #ifndef IS_ALIGNED
50 #define IS_ALIGNED(a, b) (!(((UINTPTR)(a)) & (((UINTPTR)(b))… macro
83 #define MMU_DESCRIPTOR_IS_L1_SIZE_ALIGNED(x) IS_ALIGNED(x, MMU_DESCRIPTOR_L1_SMA…
140 #define MMU_DESCRIPTOR_IS_L2_SIZE_ALIGNED(x) IS_ALIGNED(x, MMU_DESCRIPTOR_L2_SMA…
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dcfg_space.c237 bool lo = IS_ALIGNED(offset, 8); in emulate_pci_bar_write()
324 if (IS_ALIGNED(offset, 2) && offset == PCI_COMMAND) { in intel_vgpu_emulate_cfg_write()
332 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
337 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
342 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
350 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
Dmmio.c122 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4) && in intel_vgpu_emulate_mmio_read()
123 !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_read()
147 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, bytes))) in intel_vgpu_emulate_mmio_read()
198 if (drm_WARN_ON(&i915->drm, !IS_ALIGNED(offset, 4) && in intel_vgpu_emulate_mmio_write()
199 !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_write()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dgen8_ppgtt.c260 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear()
261 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear()
345 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc()
346 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc()
430 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && in gen8_ppgtt_insert_huge()
447 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in gen8_ppgtt_insert_huge()
448 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge()
472 !(IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in gen8_ppgtt_insert_huge()
473 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge()
477 if (unlikely(!IS_ALIGNED(iter->dma, page_size))) in gen8_ppgtt_insert_huge()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/tegra/
Divc.c551 if (!IS_ALIGNED(queue_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_total_queue_size()
564 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, tx.count), in tegra_ivc_check_params()
566 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, rx.count), in tegra_ivc_check_params()
568 BUILD_BUG_ON(!IS_ALIGNED(sizeof(struct tegra_ivc_header), in tegra_ivc_check_params()
576 if (!IS_ALIGNED(frame_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
585 if (!IS_ALIGNED(rx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
590 if (!IS_ALIGNED(tx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
/kernel/linux/linux-5.10/fs/btrfs/
Dtree-checker.c103 if (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))) \
108 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \
206 if (!IS_ALIGNED(key->offset, sectorsize)) { in check_extent_data_item()
347 if (!IS_ALIGNED(key->offset, sectorsize)) { in check_csum_item()
353 if (!IS_ALIGNED(btrfs_item_size_nr(leaf, slot), csumsize)) { in check_csum_item()
794 if (!IS_ALIGNED(logical, fs_info->sectorsize)) { in btrfs_check_chunk_valid()
807 if (!length || !IS_ALIGNED(length, fs_info->sectorsize)) { in btrfs_check_chunk_valid()
1131 if (!IS_ALIGNED(btrfs_root_bytenr(&ri), fs_info->sectorsize)) { in check_root_item()
1212 if (!IS_ALIGNED(key->objectid, fs_info->sectorsize)) { in check_extent_item()
1292 if (!IS_ALIGNED(key->offset, fs_info->sectorsize)) { in check_extent_item()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbitmap.h347 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal()
419 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set()
421 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set()
433 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear()
435 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
849 if (!IS_ALIGNED(cfg->src_addr, cfg->src_addr_width) || in mpc_dma_device_config()
850 !IS_ALIGNED(cfg->dst_addr, cfg->dst_addr_width)) { in mpc_dma_device_config()
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Darm64-stub.c122 if (!IS_ALIGNED((u64)_text, SEGMENT_ALIGN)) in handle_kernel_image()
144 } else if (IS_ALIGNED((u64)_text, min_kimg_align)) { in handle_kernel_image()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c107 GEM_BUG_ON(!IS_ALIGNED(phys_size, PAGE_SIZE)); in huge_gem_object()
108 GEM_BUG_ON(!IS_ALIGNED(dma_size, I915_GTT_PAGE_SIZE)); in huge_gem_object()
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
Dipu3-mmu.c262 if (!IS_ALIGNED(iova | paddr | size, IPU3_PAGE_SIZE)) { in imgu_mmu_map()
313 if (!IS_ALIGNED(s->offset, IPU3_PAGE_SIZE)) in imgu_mmu_map_sg()
317 if (i == nents - 1 && !IS_ALIGNED(s->length, IPU3_PAGE_SIZE)) in imgu_mmu_map_sg()
390 if (!IS_ALIGNED(iova | size, IPU3_PAGE_SIZE)) { in imgu_mmu_unmap()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dradix_pgtable.c290 if (IS_ALIGNED(addr, PUD_SIZE) && gap >= PUD_SIZE && in create_physical_mapping()
294 } else if (IS_ALIGNED(addr, PMD_SIZE) && gap >= PMD_SIZE && in create_physical_mapping()
828 if (!IS_ALIGNED(addr, PMD_SIZE) || in remove_pmd_table()
829 !IS_ALIGNED(next, PMD_SIZE)) { in remove_pmd_table()
858 if (!IS_ALIGNED(addr, PUD_SIZE) || in remove_pud_table()
859 !IS_ALIGNED(next, PUD_SIZE)) { in remove_pud_table()
891 if (!IS_ALIGNED(addr, P4D_SIZE) || in remove_pagetable()
892 !IS_ALIGNED(next, P4D_SIZE)) { in remove_pagetable()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_interval.c30 BUG_ON(!IS_ALIGNED(this->size, 512)); in drbd_insert_interval()
118 BUG_ON(!IS_ALIGNED(size, 512)); in drbd_find_overlap()
/kernel/linux/linux-5.10/tools/include/linux/
Dbitmap.h168 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) macro
176 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal()
/kernel/linux/linux-5.10/arch/arm64/mm/
Dkasan_init.c170 BUILD_BUG_ON(!IS_ALIGNED(_KASAN_SHADOW_START(VA_BITS), PGDIR_SIZE)); in kasan_early_init()
171 BUILD_BUG_ON(!IS_ALIGNED(_KASAN_SHADOW_START(VA_BITS_MIN), PGDIR_SIZE)); in kasan_early_init()
172 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()

12345678910>>...12