| /Linux-v4.19/mm/kasan/ |
| D | kasan_init.c | 115 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate() 146 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate() 181 if (IS_ALIGNED(addr, P4D_SIZE) && end - addr >= P4D_SIZE) { in zero_p4d_populate() 229 if (IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_populate_zero_shadow() 374 if (IS_ALIGNED(addr, PMD_SIZE) && in kasan_remove_pmd_table() 375 IS_ALIGNED(next, PMD_SIZE)) in kasan_remove_pmd_table() 399 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table() 400 IS_ALIGNED(next, PUD_SIZE)) in kasan_remove_pud_table() 425 if (IS_ALIGNED(addr, P4D_SIZE) && in kasan_remove_p4d_table() 426 IS_ALIGNED(next, P4D_SIZE)) in kasan_remove_p4d_table() [all …]
|
| /Linux-v4.19/arch/arm64/kernel/ |
| D | io.c | 28 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 56 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 90 while (count && !IS_ALIGNED((unsigned long)dst, 8)) { in __memset_io()
|
| /Linux-v4.19/arch/x86/lib/ |
| D | usercopy_64.c | 140 if (!IS_ALIGNED(dest, 4) || size != 4) in __copy_user_flushcache() 143 if (!IS_ALIGNED(dest, 8)) { in __copy_user_flushcache() 149 if (size > flushed && !IS_ALIGNED(size - flushed, 8)) in __copy_user_flushcache() 162 if (!IS_ALIGNED(dest, 8)) { in memcpy_flushcache()
|
| /Linux-v4.19/drivers/gpu/drm/i915/gvt/ |
| D | cfg_space.c | 216 bool lo = IS_ALIGNED(offset, 8); in emulate_pci_bar_write() 297 if (IS_ALIGNED(offset, 2) && offset == PCI_COMMAND) { in intel_vgpu_emulate_cfg_write() 305 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 310 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 315 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write() 323 if (WARN_ON(!IS_ALIGNED(offset, 4))) in intel_vgpu_emulate_cfg_write()
|
| D | mmio.c | 120 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_read() 143 if (WARN_ON(!IS_ALIGNED(offset, bytes))) in intel_vgpu_emulate_mmio_read() 193 if (WARN_ON(!IS_ALIGNED(offset, 4) && !IS_ALIGNED(offset, 8))) in intel_vgpu_emulate_mmio_write()
|
| /Linux-v4.19/mm/ |
| D | page_isolation.c | 194 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in start_isolate_page_range() 195 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in start_isolate_page_range() 230 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in undo_isolate_page_range() 231 BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
|
| /Linux-v4.19/include/linux/ |
| D | bitmap.h | 326 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_equal() 378 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set() 380 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set() 392 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear() 394 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
|
| D | siphash.h | 81 if (!IS_ALIGNED((unsigned long)data, SIPHASH_ALIGNMENT)) in siphash() 134 if (!IS_ALIGNED((unsigned long)data, HSIPHASH_ALIGNMENT)) in hsiphash()
|
| /Linux-v4.19/drivers/firmware/tegra/ |
| D | ivc.c | 559 if (!IS_ALIGNED(queue_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_total_queue_size() 572 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, tx.count), in tegra_ivc_check_params() 574 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct tegra_ivc_header, rx.count), in tegra_ivc_check_params() 576 BUILD_BUG_ON(!IS_ALIGNED(sizeof(struct tegra_ivc_header), in tegra_ivc_check_params() 584 if (!IS_ALIGNED(frame_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params() 593 if (!IS_ALIGNED(rx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params() 598 if (!IS_ALIGNED(tx, TEGRA_IVC_ALIGN)) { in tegra_ivc_check_params()
|
| /Linux-v4.19/drivers/crypto/ |
| D | omap-crypto.c | 97 if (!IS_ALIGNED(total, bs)) in omap_crypto_check_sg() 103 if (!IS_ALIGNED(sg->offset, 4)) in omap_crypto_check_sg() 105 if (!IS_ALIGNED(sg->length, bs)) in omap_crypto_check_sg()
|
| /Linux-v4.19/lib/ |
| D | ioremap.c | 94 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range() 121 IS_ALIGNED(phys_addr + addr, PUD_SIZE) && in ioremap_pud_range() 148 IS_ALIGNED(phys_addr + addr, P4D_SIZE)) { in ioremap_p4d_range()
|
| /Linux-v4.19/drivers/dma/ |
| D | mpc512x_dma.c | 644 if (IS_ALIGNED(src | dst | len, 32)) { in mpc_dma_prep_memcpy() 649 } else if (!mdma->is_mpc8308 && IS_ALIGNED(src | dst | len, 16)) { in mpc_dma_prep_memcpy() 655 } else if (IS_ALIGNED(src | dst | len, 4)) { in mpc_dma_prep_memcpy() 660 } else if (IS_ALIGNED(src | dst | len, 2)) { in mpc_dma_prep_memcpy() 757 if (!IS_ALIGNED(sg_dma_address(sg), mchan->dwidth)) in mpc_dma_prep_slave_sg() 766 if (!IS_ALIGNED(sg_dma_address(sg), mchan->swidth)) in mpc_dma_prep_slave_sg() 778 if (!IS_ALIGNED(tcd->nbytes, mchan->swidth)) in mpc_dma_prep_slave_sg() 787 if (!IS_ALIGNED(len, tcd->nbytes)) in mpc_dma_prep_slave_sg() 861 if (!IS_ALIGNED(cfg->src_addr, cfg->src_addr_width) || in mpc_dma_device_config() 862 !IS_ALIGNED(cfg->dst_addr, cfg->dst_addr_width)) { in mpc_dma_device_config()
|
| /Linux-v4.19/fs/nfs/ |
| D | nfs4file.c | 196 if (!IS_ALIGNED(src_off, bs) || !IS_ALIGNED(dst_off, bs)) in nfs42_clone_file_range() 198 if (!IS_ALIGNED(count, bs) && i_size_read(src_inode) != (src_off + count)) in nfs42_clone_file_range()
|
| /Linux-v4.19/fs/btrfs/ |
| D | tree-checker.c | 99 if (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))) \ 104 (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ 115 if (!IS_ALIGNED(key->offset, sectorsize)) { in check_extent_data_item() 204 if (!IS_ALIGNED(key->offset, sectorsize)) { in check_csum_item() 210 if (!IS_ALIGNED(btrfs_item_size_nr(leaf, slot), csumsize)) { in check_csum_item() 671 if (!IS_ALIGNED(bytenr, fs_info->sectorsize)) { in btrfs_check_node()
|
| D | uuid-tree.c | 59 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_lookup() 191 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_remove() 292 if (!IS_ALIGNED(item_size, sizeof(u64))) { in btrfs_uuid_tree_iterate()
|
| D | print-tree.c | 98 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item() 114 if (!IS_ALIGNED(offset, eb->fs_info->nodesize)) in print_extent_item() 131 if (!IS_ALIGNED(item_size, sizeof(u64))) { in print_uuid_item()
|
| /Linux-v4.19/drivers/gpu/drm/i915/selftests/ |
| D | huge_gem_object.c | 119 GEM_BUG_ON(!IS_ALIGNED(phys_size, PAGE_SIZE)); in huge_gem_object() 120 GEM_BUG_ON(!IS_ALIGNED(dma_size, I915_GTT_PAGE_SIZE)); in huge_gem_object()
|
| /Linux-v4.19/drivers/gpu/drm/i915/ |
| D | i915_vma.c | 173 GEM_BUG_ON(!IS_ALIGNED(vma->size, I915_GTT_PAGE_SIZE)); in vma_create() 186 GEM_BUG_ON(!IS_ALIGNED(vma->fence_size, I915_GTT_MIN_ALIGNMENT)); in vma_create() 436 if (alignment && !IS_ALIGNED(vma->node.start, alignment)) in i915_vma_misplaced() 468 IS_ALIGNED(vma->node.start, vma->fence_alignment)); in __i915_vma_set_map_and_fenceable() 559 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_vma_insert() 560 GEM_BUG_ON(!IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_vma_insert() 564 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_vma_insert() 571 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_vma_insert() 602 if (!IS_ALIGNED(offset, alignment) || in i915_vma_insert()
|
| D | i915_gem_fence_reg.c | 83 GEM_BUG_ON(!IS_ALIGNED(vma->node.start, I965_FENCE_PAGE)); in i965_write_fence_reg() 84 GEM_BUG_ON(!IS_ALIGNED(vma->fence_size, I965_FENCE_PAGE)); in i965_write_fence_reg() 85 GEM_BUG_ON(!IS_ALIGNED(stride, 128)); in i965_write_fence_reg() 130 GEM_BUG_ON(!IS_ALIGNED(vma->node.start, vma->fence_size)); in i915_write_fence_reg() 169 GEM_BUG_ON(!IS_ALIGNED(vma->node.start, vma->fence_size)); in i830_write_fence_reg()
|
| D | i915_gem_tiling.c | 85 GEM_BUG_ON(!IS_ALIGNED(stride, I965_FENCE_PAGE)); in i915_gem_fence_size() 171 if (!stride || !IS_ALIGNED(stride, tile_width)) in i915_tiling_ok() 191 if (!IS_ALIGNED(vma->node.start, alignment)) in i915_vma_fence_prepare()
|
| D | i915_gem_evict.c | 286 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_gem_evict_for_node() 287 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_gem_evict_for_node()
|
| /Linux-v4.19/drivers/crypto/rockchip/ |
| D | rk3288_crypto.c | 76 in = IS_ALIGNED((uint32_t)sg_src->offset, 4) && in check_alignment() 77 IS_ALIGNED((uint32_t)sg_src->length, align_mask); in check_alignment() 80 out = IS_ALIGNED((uint32_t)sg_dst->offset, 4) && in check_alignment() 81 IS_ALIGNED((uint32_t)sg_dst->length, align_mask); in check_alignment()
|
| /Linux-v4.19/drivers/block/drbd/ |
| D | drbd_interval.c | 53 BUG_ON(!IS_ALIGNED(this->size, 512)); in drbd_insert_interval() 141 BUG_ON(!IS_ALIGNED(size, 512)); in drbd_find_overlap()
|
| /Linux-v4.19/drivers/dax/ |
| D | device.c | 118 if (!IS_ALIGNED(res->start, align) in alloc_dax_region() 119 || !IS_ALIGNED(resource_size(res), align)) in alloc_dax_region() 460 if (!IS_ALIGNED(addr, dax_region->align)) in dev_dax_split() 634 if (!IS_ALIGNED(res[i].start, dax_region->align) in devm_create_dev_dax() 635 || !IS_ALIGNED(resource_size(&res[i]), in devm_create_dev_dax()
|
| /Linux-v4.19/arch/arm64/mm/ |
| D | kasan_init.c | 140 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, PGDIR_SIZE)); in kasan_early_init() 141 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()
|