| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | adreno_gen7_0_0_snapshot.h | 171 static_assert(IS_ALIGNED(sizeof(gen7_0_0_pre_crashdumper_gpu_registers), 8)); 177 static_assert(IS_ALIGNED(sizeof(gen7_0_0_post_crashdumper_registers), 8)); 208 static_assert(IS_ALIGNED(sizeof(gen7_0_0_gpu_registers), 8)); 241 static_assert(IS_ALIGNED(sizeof(gen7_0_0_gmu_registers), 8)); 257 static_assert(IS_ALIGNED(sizeof(gen7_0_0_gmugx_registers), 8)); 270 static_assert(IS_ALIGNED(sizeof(gen7_0_0_noncontext_pipe_br_registers), 8)); 283 static_assert(IS_ALIGNED(sizeof(gen7_0_0_noncontext_pipe_bv_registers), 8)); 289 static_assert(IS_ALIGNED(sizeof(gen7_0_0_noncontext_pipe_lpac_registers), 8)); 295 static_assert(IS_ALIGNED(sizeof(gen7_0_0_noncontext_rb_rac_pipe_br_registers), 8)); 304 static_assert(IS_ALIGNED(sizeof(gen7_0_0_noncontext_rb_rbp_pipe_br_registers), 8)); [all …]
|
| H A D | adreno_gen7_9_0_snapshot.h | 223 static_assert(IS_ALIGNED(sizeof(gen7_9_0_pre_crashdumper_gpu_registers), 8)); 282 static_assert(IS_ALIGNED(sizeof(gen7_9_0_gpu_registers), 8)); 289 static_assert(IS_ALIGNED(sizeof(gen7_9_0_gxclkctl_registers), 8)); 333 static_assert(IS_ALIGNED(sizeof(gen7_9_0_gmu_registers), 8)); 354 static_assert(IS_ALIGNED(sizeof(gen7_9_0_gmugx_registers), 8)); 366 static_assert(IS_ALIGNED(sizeof(gen7_9_0_cx_misc_registers), 8)); 381 static_assert(IS_ALIGNED(sizeof(gen7_9_0_dbgc_registers), 8)); 393 static_assert(IS_ALIGNED(sizeof(gen7_9_0_cx_dbgc_registers), 8)); 414 static_assert(IS_ALIGNED(sizeof(gen7_9_0_non_context_pipe_br_registers), 8)); 435 static_assert(IS_ALIGNED(sizeof(gen7_9_0_non_context_pipe_bv_registers), 8)); [all …]
|
| H A D | adreno_gen7_2_0_snapshot.h | 225 static_assert(IS_ALIGNED(sizeof(gen7_2_0_gpu_registers), 8)); 265 static_assert(IS_ALIGNED(sizeof(gen7_2_0_gmu_registers), 8)); 282 static_assert(IS_ALIGNED(sizeof(gen7_2_0_gmugx_registers), 8)); 295 static_assert(IS_ALIGNED(sizeof(gen7_2_0_noncontext_pipe_br_registers), 8)); 308 static_assert(IS_ALIGNED(sizeof(gen7_2_0_noncontext_pipe_bv_registers), 8)); 314 static_assert(IS_ALIGNED(sizeof(gen7_2_0_noncontext_rb_rac_pipe_br_registers), 8)); 323 static_assert(IS_ALIGNED(sizeof(gen7_2_0_noncontext_rb_rbp_pipe_br_registers), 8)); 332 static_assert(IS_ALIGNED(sizeof(gen7_2_0_gras_cluster_gras_pipe_br_registers), 8)); 341 static_assert(IS_ALIGNED(sizeof(gen7_2_0_gras_cluster_gras_pipe_bv_registers), 8)); 356 static_assert(IS_ALIGNED(sizeof(gen7_2_0_rb_rac_cluster_ps_pipe_br_registers), 8)); [all …]
|
| /linux/mm/kasan/ |
| H A D | init.c | 118 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate() 152 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate() 190 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() 380 if (IS_ALIGNED(addr, PMD_SIZE) && in kasan_remove_pmd_table() 381 IS_ALIGNED(next, PMD_SIZE)) { in kasan_remove_pmd_table() 406 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table() 407 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table() 433 if (IS_ALIGNED(addr, P4D_SIZE) && in kasan_remove_p4d_table() 434 IS_ALIGNED(next, P4D_SIZE)) { in kasan_remove_p4d_table() [all …]
|
| /linux/arch/s390/mm/ |
| H A D | vmem.c | 128 if (likely(IS_ALIGNED(unused_sub_pmd_start, PMD_SIZE))) in vmemmap_use_sub_pmd() 146 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 153 if (!IS_ALIGNED(end, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 240 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table() 241 IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table() 253 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table() 254 IS_ALIGNED(next, PMD_SIZE) && in modify_pmd_table() 273 if (!IS_ALIGNED(addr, PMD_SIZE) || in modify_pmd_table() 274 !IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table() 331 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_gem_gtt.c | 105 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_reserve() 106 GEM_BUG_ON(!IS_ALIGNED(offset, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_reserve() 202 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert() 204 GEM_BUG_ON(alignment && !IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_insert() 206 GEM_BUG_ON(start > 0 && !IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert() 207 GEM_BUG_ON(end < U64_MAX && !IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_gem_gtt_insert()
|
| /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()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-trbe.h | 120 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_limit_pointer() 129 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_base_pointer() 136 WARN_ON(!IS_ALIGNED(addr, (1UL << TRBBASER_EL1_BASE_SHIFT))); in set_trbe_base_pointer() 137 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in set_trbe_base_pointer()
|
| /linux/tools/include/linux/ |
| H A D | bitmap.h | 158 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal() 189 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set() 191 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set() 205 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear() 207 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
|
| /linux/arch/riscv/mm/ |
| H A D | kasan_init.c | 66 if (pmd_none(pmdp_get(pmdp)) && IS_ALIGNED(vaddr, PMD_SIZE) && in kasan_populate_pmd() 97 if (pud_none(pudp_get(pudp)) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_populate_pud() 128 if (p4d_none(p4dp_get(p4dp)) && IS_ALIGNED(vaddr, P4D_SIZE) && in kasan_populate_p4d() 151 if (pgd_none(pgdp_get(pgdp)) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_populate_pgd() 181 if (IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_early_clear_pud() 206 if (pgtable_l4_enabled && IS_ALIGNED(vaddr, P4D_SIZE) && in kasan_early_clear_p4d() 224 if (pgtable_l5_enabled && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_clear_pgd() 252 if (pud_none(pudp_get(pudp)) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_early_populate_pud() 290 if (p4d_none(p4dp_get(p4dp)) && IS_ALIGNED(vaddr, P4D_SIZE) && in kasan_early_populate_p4d() 311 if (pgd_none(pgdp_get(pgdp)) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_populate_pgd()
|
| /linux/lib/ |
| H A D | iomem_copy.c | 27 while (count && !IS_ALIGNED((long)addr, sizeof(long))) { in memset_io() 64 while (count && !IS_ALIGNED((long)src, sizeof(long))) { in memcpy_fromio() 106 while (count && !IS_ALIGNED((long)dst, sizeof(long))) { in memcpy_toio()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | gen8_ppgtt.c | 310 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear() 311 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_clear() 394 GEM_BUG_ON(!IS_ALIGNED(start, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc() 395 GEM_BUG_ON(!IS_ALIGNED(length, BIT_ULL(GEN8_PTE_SHIFT))); in gen8_ppgtt_alloc() 532 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && in xehp_ppgtt_insert_huge() 565 } else if (IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in xehp_ppgtt_insert_huge() 601 if (unlikely(!IS_ALIGNED(iter->dma, page_size))) in xehp_ppgtt_insert_huge() 635 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_2M) && in gen8_ppgtt_insert_huge() 652 IS_ALIGNED(iter->dma, I915_GTT_PAGE_SIZE_64K) && in gen8_ppgtt_insert_huge() 653 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge() [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()
|
| /linux/arch/s390/boot/ |
| H A D | vmem.c | 141 IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_pgd_populate_zero_shadow() 152 IS_ALIGNED(addr, P4D_SIZE) && end - addr >= P4D_SIZE) { in kasan_p4d_populate_zero_shadow() 163 IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in kasan_pud_populate_zero_shadow() 174 IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in kasan_pmd_populate_zero_shadow() 307 !IS_ALIGNED(addr, PUD_SIZE) || (size < PUD_SIZE)) in try_get_large_pud_pa() 311 if (!IS_ALIGNED(pa, PUD_SIZE)) in try_get_large_pud_pa() 323 !IS_ALIGNED(addr, PMD_SIZE) || (size < PMD_SIZE)) in try_get_large_pmd_pa() 327 if (!IS_ALIGNED(pa, PMD_SIZE)) in try_get_large_pmd_pa()
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | shmem.c | 43 WARN_ON(!IS_ALIGNED((unsigned long)from, 4) || in shmem_memcpy_fromio32() 44 !IS_ALIGNED((unsigned long)to, 4) || in shmem_memcpy_fromio32() 54 WARN_ON(!IS_ALIGNED((unsigned long)to, 4) || in shmem_memcpy_toio32() 55 !IS_ALIGNED((unsigned long)from, 4) || in shmem_memcpy_toio32()
|
| /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()
|
| /linux/fs/btrfs/ |
| H A D | tree-checker.c | 111 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \ 117 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ 217 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item() 378 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_csum_item() 384 if (unlikely(!IS_ALIGNED(btrfs_item_size(leaf, slot), csumsize))) { in check_csum_item() 916 if (unlikely(!IS_ALIGNED(logical, sectorsize))) { in btrfs_check_chunk_valid() 928 if (unlikely(!length || !IS_ALIGNED(length, sectorsize))) { in btrfs_check_chunk_valid() 1273 if (unlikely(!IS_ALIGNED(btrfs_root_bytenr(&ri), fs_info->sectorsize))) { in check_root_item() 1388 if (unlikely(!IS_ALIGNED(key->objectid, fs_info->sectorsize))) { in check_extent_item() 1481 if (unlikely(!IS_ALIGNED(key->offset, fs_info->sectorsize))) { in check_extent_item() [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | vmalloc.h | 37 if (!IS_ALIGNED(addr, CONT_PTE_SIZE)) in arch_vmap_pte_range_map_size() 40 if (!IS_ALIGNED(PFN_PHYS(pfn), CONT_PTE_SIZE)) in arch_vmap_pte_range_map_size()
|
| /linux/arch/x86/kernel/apic/ |
| H A D | x2apic_savic.c | 94 if (WARN_ONCE(!IS_ALIGNED(reg, 16), in savic_read() 112 if (WARN_ONCE(!(IS_ALIGNED(reg, 16) || in savic_read() 113 IS_ALIGNED(reg - 4, 16)), in savic_read() 234 if (IS_ALIGNED(reg - 4, 16)) { in savic_write()
|
| /linux/lib/crypto/sparc/ |
| H A D | aes.h | 54 if (IS_ALIGNED((uintptr_t)in_key, 4)) { in aes_preparekey_arch() 93 if (IS_ALIGNED((uintptr_t)in | (uintptr_t)out, 4)) { in aes_encrypt_arch() 123 if (IS_ALIGNED((uintptr_t)in | (uintptr_t)out, 4)) { in aes_decrypt_arch()
|
| /linux/arch/s390/include/asm/ |
| H A D | pci_io.h | 137 if (IS_ALIGNED(src, 8) && IS_ALIGNED(dst, 8) && IS_ALIGNED(size, 8)) in zpci_get_max_io_size()
|
| /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()
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | bus_sdio.c | 60 WARN(!IS_ALIGNED((uintptr_t)dst, 4), "unaligned buffer address"); in wfx_sdio_copy_from_io() 61 WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); in wfx_sdio_copy_from_io() 80 WARN(!IS_ALIGNED((uintptr_t)src, 4), "unaligned buffer address"); in wfx_sdio_copy_to_io() 81 WARN(!IS_ALIGNED(count, 4), "unaligned buffer size"); in wfx_sdio_copy_to_io()
|
| /linux/drivers/dma/ |
| H A D | mpc512x_dma.c | 632 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/drivers/gpu/drm/xe/ |
| H A D | xe_lmtt_2l.c | 130 XE_WARN_ON(!IS_ALIGNED(offset, SZ_2M)); in lmtt_2l_pte_encode() 134 XE_WARN_ON(!IS_ALIGNED(offset, SZ_64K)); in lmtt_2l_pte_encode()
|