Home
last modified time | relevance | path

Searched refs:IS_ALIGNED (Results 76 – 100 of 392) sorted by relevance

12345678910>>...16

/openbmc/linux/drivers/base/
H A Dmemory.c859 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in create_memory_block_devices()
860 !IS_ALIGNED(size, memory_block_size_bytes()))) in create_memory_block_devices()
895 if (WARN_ON_ONCE(!IS_ALIGNED(start, memory_block_size_bytes()) || in remove_memory_block_devices()
896 !IS_ALIGNED(size, memory_block_size_bytes()))) in remove_memory_block_devices()
/openbmc/linux/arch/powerpc/include/asm/
H A Dpgtable.h193 return IS_ALIGNED(vmemmap_size, PMD_SIZE); in arch_supports_memmap_on_memory()
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-trbe.c423 if (!IS_ALIGNED(head, cpudata->trbe_align)) { in __trbe_normal_offset()
599 WARN_ON(!IS_ALIGNED(addr, (1UL << TRBLIMITR_EL1_LIMIT_SHIFT))); in set_trbe_limit_pointer_enabled()
600 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in set_trbe_limit_pointer_enabled()
944 if (WARN_ON(!IS_ALIGNED(buf->trbe_write, PAGE_SIZE))) in trbe_apply_work_around_before_enable()
974 !IS_ALIGNED(buf->trbe_limit, PAGE_SIZE))) in trbe_apply_work_around_before_enable()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dsdio.c58 return IS_ALIGNED(addr, alignment) && in rtw_sdio_use_memcpy_io()
209 if (!IS_ALIGNED(addr, 2)) { in rtw_sdio_indirect_read16()
232 if (!IS_ALIGNED(addr, 4)) { in rtw_sdio_indirect_read32()
353 if (!IS_ALIGNED(addr, 2)) { in rtw_sdio_indirect_write16()
374 if (!IS_ALIGNED(addr, 4)) { in rtw_sdio_indirect_write32()
647 if (!IS_ALIGNED((unsigned long)skb->data, RTW_SDIO_DATA_PTR_ALIGN)) in rtw_sdio_write_port()
/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dhuge_pages.c183 GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask)))); in huge_pages_object()
334 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in fake_huge_pages_object()
411 IS_ALIGNED(i915_vma_offset(vma), SZ_2M) && in igt_check_page_sizes()
544 if (!IS_ALIGNED(phys, page_size)) { in igt_mock_memory_region_huge_pages()
813 if (!IS_ALIGNED(vma->node.start, in igt_ppgtt_huge_fill()
821 if (!IS_ALIGNED(vma->node.size, in igt_ppgtt_huge_fill()
1001 if (!IS_ALIGNED(vma->node.start, in igt_ppgtt_64K()
1009 if (!IS_ALIGNED(vma->node.size, in igt_ppgtt_64K()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_vma.c193 GEM_BUG_ON(!IS_ALIGNED(vma->size, I915_GTT_PAGE_SIZE)); in vma_create()
216 GEM_BUG_ON(!IS_ALIGNED(vma->fence_size, I915_GTT_MIN_ALIGNMENT)); in vma_create()
691 if (alignment && !IS_ALIGNED(i915_vma_offset(vma), alignment)) in i915_vma_misplaced()
720 IS_ALIGNED(i915_vma_offset(vma), vma->fence_alignment)); in __i915_vma_set_map_and_fenceable()
798 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
799 GEM_BUG_ON(!IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_vma_insert()
815 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
822 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
845 if (!IS_ALIGNED(offset, alignment) || in i915_vma_insert()
H A Di915_scatterlist.h123 GEM_BUG_ON(!IS_ALIGNED(sg_dma_len(sg), PAGE_SIZE)); in i915_sg_dma_sizes()
/openbmc/linux/arch/arm64/kvm/
H A Dpvtime.c90 if (!IS_ALIGNED(ipa, 64)) in kvm_arm_pvtime_set_attr()
/openbmc/linux/arch/arm64/kernel/probes/
H A Duprobes.c42 else if (!IS_ALIGNED(addr, AARCH64_INSN_SIZE)) in arch_uprobe_analyze_insn()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_buddy.c623 if (!new_size || !IS_ALIGNED(new_size, mm->chunk_size)) in drm_buddy_block_trim()
692 if (!IS_ALIGNED(start | end | size, mm->chunk_size)) in drm_buddy_alloc_blocks()
705 if (!IS_ALIGNED(size, min_page_size)) in drm_buddy_alloc_blocks()
/openbmc/linux/mm/kasan/
H A Dgeneric.c75 if (unlikely(!IS_ALIGNED((unsigned long)addr, KASAN_GRANULE_SIZE))) in memory_is_poisoned_16()
299 WARN_ON(!IS_ALIGNED((unsigned long)addr, KASAN_ALLOCA_REDZONE_SIZE)); in __asan_alloca_poison()
/openbmc/linux/drivers/base/regmap/
H A Dregmap-spi-avmm.c585 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_gather_write()
609 if (!IS_ALIGNED(val_len, SPI_AVMM_VAL_SIZE)) in regmap_spi_avmm_read()
H A Dregmap.c1942 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_write()
1969 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_write_async()
2169 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_noinc_write()
2310 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_bulk_write()
2544 if (!IS_ALIGNED(reg, map->reg_stride)) in _regmap_multi_reg_write()
2695 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_raw_write_async()
2826 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_read()
2855 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_read_bypassed()
2897 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_raw_read()
2997 if (!IS_ALIGNED(reg, map->reg_stride)) in regmap_noinc_read()
[all …]
/openbmc/linux/drivers/dma-buf/
H A Dudmabuf.c217 if (!IS_ALIGNED(list[i].offset, PAGE_SIZE)) in udmabuf_create()
219 if (!IS_ALIGNED(list[i].size, PAGE_SIZE)) in udmabuf_create()
/openbmc/linux/drivers/misc/
H A Dpci_endpoint_test.c409 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { in pci_endpoint_test_copy()
441 if (alignment && !IS_ALIGNED(orig_dst_phys_addr, alignment)) { in pci_endpoint_test_copy()
546 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_write()
644 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_read()
/openbmc/linux/drivers/s390/block/
H A Ddcssblk.c872 if (!IS_ALIGNED(bio->bi_iter.bi_sector, 8) || in dcssblk_submit_bio()
873 !IS_ALIGNED(bio->bi_iter.bi_size, PAGE_SIZE)) in dcssblk_submit_bio()
895 if (unlikely(!IS_ALIGNED((unsigned long)page_addr, PAGE_SIZE) || in dcssblk_submit_bio()
896 !IS_ALIGNED(bvec.bv_len, PAGE_SIZE))) in dcssblk_submit_bio()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_internal.c148 GEM_BUG_ON(!IS_ALIGNED(size, PAGE_SIZE)); in __i915_gem_object_create_internal()
/openbmc/linux/drivers/bluetooth/
H A Dbtrsi.c73 if (!IS_ALIGNED((unsigned long)skb->data, RSI_DMA_ALIGN)) { in rsi_hci_send_pkt()
/openbmc/linux/fs/btrfs/
H A Dzoned.c243 ASSERT(IS_ALIGNED(pos, zinfo->zone_size)); in btrfs_get_dev_zones()
427 if (!IS_ALIGNED(nr_sectors, zone_sectors)) in btrfs_get_dev_zone_info()
751 if (!IS_ALIGNED(zone_size, BTRFS_STRIPE_LEN)) { in btrfs_check_zoned_mode()
1055 ASSERT(IS_ALIGNED(hole_start, zinfo->zone_size)); in btrfs_find_allocatable_zones()
1056 ASSERT(IS_ALIGNED(num_bytes, zinfo->zone_size)); in btrfs_find_allocatable_zones()
1170 ASSERT(IS_ALIGNED(start, zinfo->zone_size)); in btrfs_ensure_empty_zones()
1171 ASSERT(IS_ALIGNED(size, zinfo->zone_size)); in btrfs_ensure_empty_zones()
1334 WARN_ON(!IS_ALIGNED(info->physical, fs_info->zone_size)); in btrfs_load_zone_info()
1462 if (!IS_ALIGNED(length, fs_info->zone_size)) { in btrfs_load_block_group_zone_info()
/openbmc/linux/drivers/remoteproc/
H A Dmtk_scp_ipi.c92 if (!IS_ALIGNED((unsigned long)dst, 4)) { in scp_memcpy_aligned()
/openbmc/u-boot/drivers/mmc/
H A Dtmio-common.c164 if (likely(IS_ALIGNED((uintptr_t)buf, ((__width) / 8)))) { \
218 if (likely(IS_ALIGNED((uintptr_t)buf, ((__width) / 8)))) { \
383 if (!IS_ALIGNED(addr, TMIO_SD_DMA_MINALIGN)) in tmio_sd_addr_is_dmaable()
/openbmc/linux/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c95 if (!IS_ALIGNED(sg->offset, sizeof(u32)) || in sdmmc_idma_validate_data()
96 !IS_ALIGNED(sg->length, in sdmmc_idma_validate_data()
105 if (!IS_ALIGNED(sg->offset, sizeof(u32))) { in sdmmc_idma_validate_data()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_buddy_test.c98 if (!IS_ALIGNED(block_size, mm->chunk_size)) { in check_block()
103 if (!IS_ALIGNED(offset, mm->chunk_size)) { in check_block()
108 if (!IS_ALIGNED(offset, block_size)) { in check_block()
/openbmc/linux/drivers/net/wireless/silabs/wfx/
H A Dhwio.c220 WARN(!IS_ALIGNED((uintptr_t)buf, 4), "unaligned buffer"); in wfx_data_read()
234 WARN(!IS_ALIGNED((uintptr_t)buf, 4), "unaligned buffer"); in wfx_data_write()
/openbmc/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c47 if (!IS_ALIGNED(src_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()
49 if (!IS_ALIGNED(dst_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()

12345678910>>...16