Home
last modified time | relevance | path

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

12345678910>>...16

/linux/drivers/gpu/drm/msm/adreno/
H A Dadreno_gen7_0_0_snapshot.h171 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 Dadreno_gen7_9_0_snapshot.h223 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 Dadreno_gen7_2_0_snapshot.h225 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 Dinit.c118 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 Dvmem.c128 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 Di915_gem_gtt.c105 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/drivers/hwtracing/coresight/
H A Dcoresight-trbe.h120 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 Dbitmap.h158 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 Dkasan_init.c66 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/drivers/gpu/drm/i915/gt/
H A Dgen8_ppgtt.c310 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 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()
/linux/arch/s390/boot/
H A Dvmem.c141 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/tegra/
H A 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/arch/arm64/include/asm/
H A Dvmalloc.h37 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/fs/btrfs/
H A Dtree-checker.c111 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 …]
H A Dfile-item.c92 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize)); in btrfs_inode_set_file_extent_range()
121 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize) || in btrfs_inode_clear_file_extent_range()
130 ASSERT(IS_ALIGNED(bytes, fs_info->sectorsize)); in bytes_to_csum_size()
137 ASSERT(IS_ALIGNED(csum_size, fs_info->csum_size)); in csum_size_to_bytes()
291 ASSERT(IS_ALIGNED(disk_bytenr, sectorsize) && in search_csum_tree()
292 IS_ALIGNED(len, sectorsize)); in search_csum_tree()
513 ASSERT(IS_ALIGNED(start, fs_info->sectorsize) && in btrfs_lookup_csums_list()
514 IS_ALIGNED(end + 1, fs_info->sectorsize)); in btrfs_lookup_csums_list()
657 ASSERT(IS_ALIGNED(start, fs_info->sectorsize) && in btrfs_lookup_csums_bitmap()
658 IS_ALIGNED(end + 1, fs_info->sectorsize)); in btrfs_lookup_csums_bitmap()
[all …]
/linux/arch/x86/kernel/apic/
H A Dx2apic_savic.c94 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/drivers/net/wireless/silabs/wfx/
H A Dbus_sdio.c60 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/gpu/drm/xe/
H A Dxe_lmtt_2l.c130 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()
H A Dxe_lmtt_ml.c140 XE_WARN_ON(!IS_ALIGNED(offset, SZ_2M)); in lmtt_ml_pte_encode()
145 XE_WARN_ON(!IS_ALIGNED(offset, SZ_64K)); in lmtt_ml_pte_encode()
/linux/drivers/dma/
H A 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/drivers/crypto/
H A 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/drivers/mtd/nand/raw/brcmnand/
H A Dbcmbca_nand.c37 return IS_ALIGNED((uintptr_t)buffer, ALIGN_REQ) && in bcmbca_nand_is_buf_aligned()
38 IS_ALIGNED((uintptr_t)flash_cache, ALIGN_REQ); in bcmbca_nand_is_buf_aligned()
/linux/arch/x86/kernel/
H A Dshstk.c55 if (!IS_ALIGNED(ssp, 8)) in create_rstor_token()
325 if (!IS_ALIGNED(target_ssp, 8)) in shstk_push_sigframe()
348 if (!IS_ALIGNED(*ssp, 8)) in shstk_pop_sigframe()
371 if (unlikely(!IS_ALIGNED(token_addr, 8))) in shstk_pop_sigframe()
/linux/fs/xfs/scrub/
H A Dialloc_repair.c353 if (!IS_ALIGNED(agbno, igeo->blocks_per_cluster) || in xrep_ibt_check_inode_ext()
354 !IS_ALIGNED(agbno + len, igeo->blocks_per_cluster)) in xrep_ibt_check_inode_ext()
362 (!IS_ALIGNED(agbno, igeo->cluster_align) || in xrep_ibt_check_inode_ext()
363 !IS_ALIGNED(agbno + len, igeo->cluster_align))) in xrep_ibt_check_inode_ext()
371 (!IS_ALIGNED(agbno, mp->m_sb.sb_spino_align) || in xrep_ibt_check_inode_ext()
372 !IS_ALIGNED(agbno + len, mp->m_sb.sb_spino_align))) in xrep_ibt_check_inode_ext()

12345678910>>...16