Home
last modified time | relevance | path

Searched refs:ROUND_UP (Results 1 – 25 of 87) sorted by relevance

1234

/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/backends/
Dipc_rpmsg_static_vrings.h146 return ROUND_UP((buf_size * num), MEM_ALIGNMENT); in vq_ring_size()
152 ROUND_UP(vring_size(num, MEM_ALIGNMENT), MEM_ALIGNMENT))); in shm_size()
/Zephyr-Core-3.7.0/include/zephyr/arch/riscv/
Darch.h56 ROUND_UP(sizeof(struct arch_esf) + CONFIG_PMP_STACK_GUARD_MIN_SIZE, \
141 ROUND_UP(Z_RISCV_STACK_GUARD_SIZE + CONFIG_PRIVILEGED_STACK_SIZE, \
144 ROUND_UP(size, Z_RISCV_STACK_PMP_ALIGN)
/Zephyr-Core-3.7.0/include/zephyr/kernel/
Dthread_stack.h97 #define Z_KERNEL_STACK_SIZE_ADJUST(size) (ROUND_UP(size, \
108 ROUND_UP(Z_KERNEL_STACK_SIZE_ADJUST(size), Z_KERNEL_STACK_OBJ_ALIGN)
388 (ROUND_UP((size), ARCH_STACK_PTR_ALIGN) + K_THREAD_STACK_RESERVED)
572 ROUND_UP(Z_THREAD_STACK_SIZE_ADJUST(size), \
/Zephyr-Core-3.7.0/include/zephyr/arch/arc/
Darch.h181 (ROUND_UP((size), Z_ARC_MPU_ALIGN))
203 Z_POW2_CEIL(ROUND_UP((size), Z_ARC_MPU_ALIGN))
222 (ROUND_UP((size), Z_ARC_MPU_ALIGN))
/Zephyr-Core-3.7.0/include/zephyr/arch/xtensa/
Dcache.h33 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range()
49 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range()
65 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_invd_range()
Dthread_stack.h68 ROUND_UP((size), XTENSA_STACK_SIZE_ALIGN)
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/
Dblob_io_flash.c120 uint8_t buf[ROUND_UP(BLOB_CHUNK_SIZE_MAX(BT_MESH_RX_SDU_MAX), in wr_chunk()
132 memset(&buf[i], 0xff, ROUND_UP(i, WRITE_BLOCK_SIZE) - i); in wr_chunk()
133 i = ROUND_UP(i, WRITE_BLOCK_SIZE); in wr_chunk()
/Zephyr-Core-3.7.0/subsys/net/ip/
Dnbr.h78 uint8_t data[ROUND_UP(_size, 4)] __net_nbr_align; \
83 .size = ROUND_UP(_size, 4) } }, \
/Zephyr-Core-3.7.0/lib/posix/options/
Dmmap.c87 k_mem_map_phys_bare((uint8_t **)&virt, phys, (size_t)ROUND_UP(len, _page_size), in mmap()
124 k_mem_unmap(addr, ROUND_UP(len, _page_size)); in munmap()
/Zephyr-Core-3.7.0/include/zephyr/arch/arm64/
Dthread_stack.h57 ROUND_UP((size), Z_ARM64_STACK_SIZE_ALIGN)
/Zephyr-Core-3.7.0/lib/libc/common/source/stdlib/
Dmalloc.c82 # define HEAP_SIZE ROUND_UP(CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE, HEAP_ALIGN)
102 # define HEAP_BASE ROUND_UP(USED_RAM_END_ADDR, HEAP_ALIGN)
218 heap_base = UINT_TO_POINTER(ROUND_UP(HEAP_BASE, heap_size)); in malloc_prepare()
/Zephyr-Core-3.7.0/arch/arc/core/
Dtls.c20 size_t tls_size_aligned = ROUND_UP(tls_size, ARCH_STACK_PTR_ALIGN); in arch_tls_stack_setup()
/Zephyr-Core-3.7.0/include/zephyr/arch/x86/
Dthread_stack.h101 ROUND_UP((size), Z_X86_STACK_SIZE_ALIGN)
/Zephyr-Core-3.7.0/soc/intel/intel_socfpga_std/cyclonev/
Dsoc.c26 uintptr_t end = ROUND_UP(addr + len, CONFIG_MMU_PAGE_SIZE); in arch_reserved_pages_update()
/Zephyr-Core-3.7.0/arch/x86/core/
Dcache.c98 end = ROUND_UP(end, line_size); in arch_dcache_flush_range()
/Zephyr-Core-3.7.0/include/zephyr/arch/mips/
Darch.h37 #define STACK_ROUND_UP(x) ROUND_UP(x, ARCH_STACK_PTR_ALIGN)
/Zephyr-Core-3.7.0/include/zephyr/arch/sparc/
Darch.h47 #define STACK_ROUND_UP(x) ROUND_UP(x, ARCH_STACK_PTR_ALIGN)
/Zephyr-Core-3.7.0/tests/subsys/logging/log_msg/src/
Dmain.c396 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
425 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
454 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
489 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
532 exp_len = ROUND_UP(exp_len, Z_LOG_MSG_ALIGNMENT) / sizeof(int); in ZTEST()
550 ROUND_UP(offsetof(struct log_msg, data) + 2 * sizeof(void *), in ZTEST()
/Zephyr-Core-3.7.0/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c48 MAX(FLASH_WRITE_SIZE, ROUND_UP(CONFIG_DEBUG_COREDUMP_FLASH_CHUNK_SIZE, FLASH_WRITE_SIZE))
56 #define HEADER_SCRAMBLE_SIZE ROUND_UP(sizeof(struct flash_hdr_t), \
275 offset = ROUND_UP(sizeof(struct flash_hdr_t), FLASH_WRITE_SIZE); in process_stored_dump()
344 off += ROUND_UP(sizeof(struct flash_hdr_t), FLASH_WRITE_SIZE); in get_stored_dump()
432 header_size = ROUND_UP(sizeof(struct flash_hdr_t), FLASH_WRITE_SIZE); in coredump_flash_backend_start()
/Zephyr-Core-3.7.0/include/zephyr/ipc/
Dpbuf.h36 #define _PBUF_MIN_DATA_LEN ROUND_UP(PBUF_PACKET_LEN_SZ + 1 + _PBUF_IDX_SIZE, _PBUF_IDX_SIZE)
/Zephyr-Core-3.7.0/include/zephyr/arch/arm/
Darch.h253 ROUND_UP(size, CONFIG_ARM_MPU_REGION_MIN_ALIGN_AND_SIZE)
/Zephyr-Core-3.7.0/soc/nordic/common/
Ddmm.c106 return ROUND_UP(dh->region->dt_allc, dh->region->dt_align); in dmm_heap_start_get()
116 length = ROUND_UP(length, dh->region->dt_align); in dmm_buffer_alloc()
/Zephyr-Core-3.7.0/drivers/dma/
Ddma_mcux_lpc.c614 assert(block_config->source_address == ROUND_UP(block_config->source_address, width)); in dma_mcux_lpc_configure()
615 assert(block_config->dest_address == ROUND_UP(block_config->dest_address, width)); in dma_mcux_lpc_configure()
669 ROUND_UP(block_config->source_address, width)); in dma_mcux_lpc_configure()
671 ROUND_UP(block_config->dest_address, width)); in dma_mcux_lpc_configure()
768 assert(src == ROUND_UP(src, data->width)); in dma_mcux_lpc_reload()
769 assert(dst == ROUND_UP(dst, data->width)); in dma_mcux_lpc_reload()
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/lib/
Dpbuf.c137 wr_idx = idx_wrap(blen, ROUND_UP(wr_idx + len, _PBUF_IDX_SIZE)); in pbuf_write()
215 rd_idx = idx_wrap(blen, ROUND_UP(rd_idx + len, _PBUF_IDX_SIZE)); in pbuf_read()
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb/
Dudc_buf.h60 static uint8_t __aligned(UDC_BUF_ALIGN) name[ROUND_UP(size, UDC_BUF_GRANULARITY)];

1234