/openbmc/u-boot/drivers/crypto/fsl/ |
H A D | fsl_blob.c | 33 if (!IS_ALIGNED((uintptr_t)key_mod, ARCH_DMA_MINALIGN) || in blob_decap() 34 !IS_ALIGNED((uintptr_t)src, ARCH_DMA_MINALIGN) || in blob_decap() 35 !IS_ALIGNED((uintptr_t)dst, ARCH_DMA_MINALIGN)) { in blob_decap() 98 if (!IS_ALIGNED((uintptr_t)key_mod, ARCH_DMA_MINALIGN) || in blob_encap() 99 !IS_ALIGNED((uintptr_t)src, ARCH_DMA_MINALIGN) || in blob_encap() 100 !IS_ALIGNED((uintptr_t)dst, ARCH_DMA_MINALIGN)) { in blob_encap()
|
/openbmc/linux/mm/kasan/ |
H A D | init.c | 118 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() 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() 475 if (IS_ALIGNED(addr, PGDIR_SIZE) && in kasan_remove_zero_shadow() [all …]
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-trbe.h | 118 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()
|
/openbmc/linux/arch/x86/lib/ |
H A D | usercopy_64.c | 64 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()
|
/openbmc/linux/arch/s390/mm/ |
H A D | vmem.c | 135 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 142 if (!IS_ALIGNED(end, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 233 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table() 234 IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table() 246 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table() 247 IS_ALIGNED(next, PMD_SIZE) && in modify_pmd_table() 326 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 327 IS_ALIGNED(next, PUD_SIZE)) { in modify_pud_table() 334 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 335 IS_ALIGNED(next, PUD_SIZE) && in modify_pud_table() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 106 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()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | io.c | 17 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()
|
/openbmc/linux/arch/csky/kernel/ |
H A D | io.c | 12 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()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | io.c | 14 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()
|
/openbmc/linux/arch/riscv/mm/ |
H A D | kasan_init.c | 66 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()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | cfg_space.c | 185 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()
|
H A D | mmio.c | 126 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()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | gen8_ppgtt.c | 306 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear() 528 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && 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() 677 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge() 681 if (unlikely(!IS_ALIGNED(iter->dma, page_size))) in gen8_ppgtt_insert_huge() 697 !iter->sg && IS_ALIGNED(vma_res->start + in gen8_ppgtt_insert_huge() 794 GEM_BUG_ON(!IS_ALIGNED(addr, SZ_64K)); in __xehpsdv_ppgtt_insert_entry_lm() [all …]
|
H A D | gen8_engine_cs.h | 95 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()
|
H A D | intel_ring.h | 52 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()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | bus_sdio.c | 59 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()
|
/openbmc/linux/arch/s390/boot/ |
H A D | vmem.c | 127 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()
|
/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | 213 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item() 356 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_csum_item() 838 if (unlikely(!IS_ALIGNED(logical, fs_info->sectorsize))) { in btrfs_check_chunk_valid() 1386 if (unlikely(!IS_ALIGNED(key->offset, fs_info->sectorsize))) { in check_extent_item() 1449 if (unlikely(!IS_ALIGNED(inline_offset, in check_extent_item() 1469 if (unlikely(!IS_ALIGNED(dref_offset, in check_extent_item() 1481 if (unlikely(!IS_ALIGNED(inline_offset, in check_extent_item() 1574 !IS_ALIGNED(key->offset, leaf->fs_info->sectorsize))) { in check_simple_keyed_refs() 1701 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_dev_extent_item() 1715 if (unlikely(!IS_ALIGNED(btrfs_dev_extent_length(leaf, de), in check_dev_extent_item() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_region.c | 74 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()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | pci_io.h | 136 if (IS_ALIGNED(src, 8) && IS_ALIGNED(dst, 8) && IS_ALIGNED(size, 8)) in zpci_get_max_io_size()
|
/openbmc/linux/drivers/firmware/tegra/ |
H A D | ivc.c | 564 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()
|
/openbmc/u-boot/fs/btrfs/ |
H A D | super.c | 124 if (!IS_ALIGNED(sb->root, sb->sectorsize)) { in btrfs_check_super() 130 if (!IS_ALIGNED(sb->chunk_root, sb->sectorsize)) { in btrfs_check_super() 136 if (!IS_ALIGNED(sb->log_root, sb->sectorsize)) { in btrfs_check_super()
|
/openbmc/linux/drivers/crypto/ |
H A D | omap-crypto.c | 94 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()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | shstk.c | 55 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()
|
/openbmc/linux/include/linux/ |
H A D | bitmap.h | 388 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal() 473 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set() 475 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set() 489 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear() 491 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
|