| /u-boot/drivers/crypto/fsl/ |
| A D | fsl_blob.c | 36 if (!IS_ALIGNED((uintptr_t)key_mod, ARCH_DMA_MINALIGN) || in blob_decap() 37 !IS_ALIGNED((uintptr_t)src, ARCH_DMA_MINALIGN) || in blob_decap() 38 !IS_ALIGNED((uintptr_t)dst, ARCH_DMA_MINALIGN)) { in blob_decap() 108 if (!IS_ALIGNED((uintptr_t)key_mod, ARCH_DMA_MINALIGN) || in blob_encap() 109 !IS_ALIGNED((uintptr_t)src, ARCH_DMA_MINALIGN) || in blob_encap() 110 !IS_ALIGNED((uintptr_t)dst, ARCH_DMA_MINALIGN)) { in blob_encap()
|
| /u-boot/include/linux/ |
| A D | bitmap.h | 221 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_set() 223 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_set() 235 IS_ALIGNED(start, BITMAP_MEM_ALIGNMENT) && in bitmap_clear() 237 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT)) in bitmap_clear()
|
| A D | kernel.h | 53 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) macro
|
| /u-boot/drivers/misc/ |
| A D | p2sb-uclass.c | 59 assert(IS_ALIGNED(offset, align)); in check_pcr_offset_align() 68 assert(IS_ALIGNED(offset, sizeof(uint32_t))); in pcr_read32() 107 assert(IS_ALIGNED(offset, sizeof(indata))); in pcr_write32()
|
| /u-boot/arch/arm/mach-omap2/ |
| A D | sec-common.c | 141 if (!IS_ALIGNED(cert_addr, 4)) { in secure_boot_verify_image() 148 if (!IS_ALIGNED(cert_size, 4)) { in secure_boot_verify_image()
|
| /u-boot/drivers/spi/ |
| A D | stm32_spi.c | 132 IS_ALIGNED((uintptr_t)(priv->tx_buf + offs), sizeof(u32))) { in stm32_spi_write_txfifo() 138 IS_ALIGNED((uintptr_t)(priv->tx_buf + offs), sizeof(u16))) { in stm32_spi_write_txfifo() 167 if (IS_ALIGNED((uintptr_t)(priv->rx_buf + offs), sizeof(u32)) && in stm32_spi_read_rxfifo() 173 } else if (IS_ALIGNED((uintptr_t)(priv->rx_buf + offs), sizeof(u16)) && in stm32_spi_read_rxfifo()
|
| A D | mtk_spim.c | 534 if (!IS_ALIGNED((size_t)op->data.buf.in, 4)) { in mtk_spim_exec_op() 569 !IS_ALIGNED((size_t)op->data.buf.in, 4)) in mtk_spim_exec_op() 588 !IS_ALIGNED((size_t)op->data.buf.in, 4)) in mtk_spim_exec_op()
|
| A D | spi-aspeed-smc.c | 521 if (IS_ALIGNED((uintptr_t)ahb_base, sizeof(uintptr_t)) && in aspeed_spi_read_from_ahb() 522 IS_ALIGNED((uintptr_t)buf, sizeof(uintptr_t))) { in aspeed_spi_read_from_ahb() 538 if (IS_ALIGNED((uintptr_t)ahb_base, sizeof(uintptr_t)) && in aspeed_spi_write_to_ahb() 539 IS_ALIGNED((uintptr_t)buf, sizeof(uintptr_t))) { in aspeed_spi_write_to_ahb()
|
| A D | fsl_qspi.c | 398 !IS_ALIGNED(op->data.nbytes, 8)))) in fsl_qspi_supports_op()
|
| A D | nxp_fspi.c | 437 !IS_ALIGNED(op->data.nbytes, 8)))) in nxp_fspi_supports_op()
|
| /u-boot/fs/btrfs/ |
| A D | disk-io.c | 185 if (!IS_ALIGNED(btrfs_super_root(sb), 4096)) { in btrfs_check_super() 189 if (!IS_ALIGNED(btrfs_super_chunk_root(sb), 4096)) { in btrfs_check_super() 194 if (!IS_ALIGNED(btrfs_super_log_root(sb), 4096)) { in btrfs_check_super() 204 if (!IS_ALIGNED(btrfs_super_nodesize(sb), 4096)) { in btrfs_check_super() 213 if (!IS_ALIGNED(btrfs_super_sectorsize(sb), 4096)) { in btrfs_check_super() 464 if (bytenr < sectorsize || !IS_ALIGNED(bytenr, sectorsize)) { in read_tree_block()
|
| A D | inode.c | 442 ASSERT(IS_ALIGNED(offset, fs_info->sectorsize) && in btrfs_read_extent_reg() 443 IS_ALIGNED(len, fs_info->sectorsize)); in btrfs_read_extent_reg() 542 ASSERT(IS_ALIGNED(file_offset, root->fs_info->sectorsize)); in lookup_data_extent()
|
| A D | volumes.c | 432 if (!IS_ALIGNED(logical, sectorsize)) { in btrfs_check_chunk_valid() 441 if (!length || !IS_ALIGNED(length, sectorsize)) { in btrfs_check_chunk_valid() 492 !IS_ALIGNED(num_stripes, sub_stripes))) || in btrfs_check_chunk_valid()
|
| /u-boot/arch/arm/mach-socfpga/ |
| A D | secure_vab.c | 79 if (!IS_ALIGNED(img_sz, sizeof(u32))) { in socfpga_vendor_authentication()
|
| /u-boot/drivers/mmc/ |
| A D | tmio-common.c | 148 if (likely(IS_ALIGNED((uintptr_t)buf, ((__width) / 8)))) { \ 202 if (likely(IS_ALIGNED((uintptr_t)buf, ((__width) / 8)))) { \ 369 if (!IS_ALIGNED(addr, TMIO_SD_DMA_MINALIGN)) in tmio_sd_addr_is_dmaable() 373 if (!(data->flags & MMC_DATA_READ) && !IS_ALIGNED(addr, 128)) in tmio_sd_addr_is_dmaable()
|
| A D | rpmb.c | 489 if (!IS_ALIGNED((uintptr_t)req, ARCH_DMA_MINALIGN)) { in mmc_rpmb_route_frames()
|
| A D | renesas-sdhi.c | 696 if (!IS_ALIGNED(ubuf, RENESAS_SDHI_DMA_ALIGNMENT)) { in renesas_sdhi_addr_aligned_gen()
|
| /u-boot/drivers/pci/ |
| A D | pcie_iproc.c | 828 if (!IS_ALIGNED(axi_addr, window_size) || in iproc_pcie_setup_ob() 829 !IS_ALIGNED(pci_addr, window_size)) { in iproc_pcie_setup_ob() 1007 if (!IS_ALIGNED(axi_addr, region_size) || in iproc_pcie_setup_ib() 1008 !IS_ALIGNED(pci_addr, region_size)) { in iproc_pcie_setup_ib()
|
| /u-boot/arch/arm/include/asm/ |
| A D | io.h | 310 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 340 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 376 while (count && !IS_ALIGNED((unsigned long)dst, 8)) { in __memset_io()
|
| /u-boot/drivers/usb/dwc3/ |
| A D | ep0.c | 852 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 943 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
|
| /u-boot/board/xilinx/common/ |
| A D | board.c | 639 if (!IS_ALIGNED((ulong)gd->fdt_blob, 0x8)) in board_get_usable_ram_top()
|
| /u-boot/lib/efi_loader/ |
| A D | efi_image_loader.c | 325 if (!IS_ALIGNED(*efi_size, 8)) { in efi_prepare_aligned_image()
|
| /u-boot/drivers/mtd/nand/raw/brcmnand/ |
| A D | brcmnand.c | 1033 likely(IS_ALIGNED((uintptr_t)buf, 4)); in flash_dma_buf_ok() 1035 return buf && likely(IS_ALIGNED((uintptr_t)buf, 4)); in flash_dma_buf_ok()
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | nand_base.c | 2365 use_bufpoi = !IS_ALIGNED((unsigned long)buf, in nand_do_read_ops() 3274 use_bufpoi = !IS_ALIGNED((unsigned long)buf, in nand_do_write_ops()
|
| /u-boot/drivers/net/ |
| A D | mvpp2.c | 2556 if (!IS_ALIGNED(size, 16)) in mvpp2_bm_pool_create() 2564 if (!IS_ALIGNED((unsigned long)bm_pool->virt_addr, in mvpp2_bm_pool_create()
|