Home
last modified time | relevance | path

Searched refs:ROUND_DOWN (Results 1 – 23 of 23) sorted by relevance

/Zephyr-Core-3.7.0/drivers/syscon/
Dsyscon_common.h27 *reg = ROUND_DOWN(*reg, reg_width); in syscon_sanitize_reg()
/Zephyr-Core-3.7.0/include/zephyr/arch/xtensa/
Dcache.h32 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_range()
48 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_and_invd_range()
64 size_t first = ROUND_DOWN(addr, step); in arch_dcache_invd_range()
/Zephyr-Core-3.7.0/arch/arc/core/
Dcache.c81 start_addr = ROUND_DOWN(start_addr, line_size); in arch_dcache_flush_range()
116 start_addr = ROUND_DOWN(start_addr, line_size); in arch_dcache_invd_range()
/Zephyr-Core-3.7.0/soc/intel/intel_socfpga_std/cyclonev/
Dsoc.c25 uintptr_t pos = ROUND_DOWN(addr, CONFIG_MMU_PAGE_SIZE); in arch_reserved_pages_update()
/Zephyr-Core-3.7.0/drivers/mm/
Dmm_drv_intel_adsp.h52 ((ROUND_DOWN((hpsram_ebb_quantity) + 31u, 32u) / 32u) - 1u)
/Zephyr-Core-3.7.0/lib/libc/common/source/stdlib/
Dmalloc.c107 # define HEAP_SIZE ROUND_DOWN((POINTER_TO_UINT(_heap_sentry) - HEAP_BASE), HEAP_ALIGN)
109 # define HEAP_SIZE ROUND_DOWN((KB((size_t) CONFIG_SRAM_SIZE) - \
/Zephyr-Core-3.7.0/include/zephyr/sys/
Dutil.h313 #define ROUND_DOWN(x, align) \ macro
320 #define WB_DN(x) ROUND_DOWN(x, sizeof(void *))
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/
Dblob_io_flash.c136 ROUND_DOWN(area_offset, WRITE_BLOCK_SIZE), in wr_chunk()
/Zephyr-Core-3.7.0/drivers/cache/
Dcache_andes_l2.h168 align_addr = ROUND_DOWN(addr, line_size); in nds_l2_cache_range()
Dcache_andes.c85 align_addr = ROUND_DOWN(addr, line_size); in nds_cctl_range_operations()
/Zephyr-Core-3.7.0/include/zephyr/kernel/
Dthread_stack.h71 return (char *)ROUND_DOWN(ptr, ARCH_STACK_PTR_ALIGN); in z_stack_ptr_align()
/Zephyr-Core-3.7.0/drivers/disk/
Dflashdisk.c222 fl_addr = ROUND_DOWN(fl_addr, ctx->page_size); in disk_flash_access_read()
322 fl_addr = ROUND_DOWN(start_addr, ctx->page_size); in flashdisk_cache_write()
/Zephyr-Core-3.7.0/subsys/debug/gdbstub/
Dgdbstub.c333 mem_ptr = UINT_TO_POINTER(ROUND_DOWN(addr, align)); in gdb_mem_read_aligned()
476 mem_ptr = UINT_TO_POINTER(ROUND_DOWN(addr, align)); in gdb_mem_write_aligned()
/Zephyr-Core-3.7.0/arch/x86/core/
Dx86_mmu.c219 #define PT_START ((uintptr_t)ROUND_DOWN(VM_ADDR, PT_AREA))
231 #define PD_START ((uintptr_t)ROUND_DOWN(VM_ADDR, PD_AREA))
246 #define PDPT_START ((uintptr_t)ROUND_DOWN(VM_ADDR, PDPT_AREA))
741 uint8_t *virtmap = (uint8_t *)ROUND_DOWN(virt, get_entry_scope(level)); in dump_entry()
2003 uintptr_t pos = ROUND_DOWN(addr, CONFIG_MMU_PAGE_SIZE); in mark_addr_page_reserved()
/Zephyr-Core-3.7.0/arch/xtensa/core/
Dmpu.c984 aligned_addr = ROUND_DOWN((uintptr_t)addr, XCHAL_MPU_ALIGN); in arch_buffer_validate()
1055 aligned_addr = ROUND_DOWN((uintptr_t)addr, XCHAL_MPU_ALIGN); in xtensa_mem_kernel_has_access()
/Zephyr-Core-3.7.0/tests/lib/heap/src/
Dmain.c128 size_t chunk = ROUND_DOWN(addr - 1, 8); in testalloc()
/Zephyr-Core-3.7.0/drivers/can/
Dcan_mcp251xfd.h18 ((flag_u32) >> ROUND_DOWN(LOG2((flag_u32)), 8))
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c1205 #define GET_BLOCK_SIZE(i, total_size, local_blocks, remote_blocks) ROUND_DOWN( \
1227 ROUND_DOWN(DT_REG_ADDR(DT_INST_PHANDLE(i, direction##_region)) + \
/Zephyr-Core-3.7.0/kernel/
Dmmu.c958 *aligned_addr = ROUND_DOWN(addr, align); in k_mem_region_align()
972 uintptr_t pinned_start = ROUND_DOWN(POINTER_TO_UINT(start_addr), in mark_linker_section_pinned()
/Zephyr-Core-3.7.0/drivers/flash/
Dflash_stm32h7x.c507 off_t flush_offset = ROUND_DOWN(offset, FLASH_SECTOR_SIZE);
/Zephyr-Core-3.7.0/lib/heap/
Dheap.c503 uintptr_t end = ROUND_DOWN((uint8_t *)mem + bytes, CHUNK_UNIT); in sys_heap_init()
/Zephyr-Core-3.7.0/drivers/usb/udc/
Dudc_dwc2.c318 len = ROUND_DOWN(max_xfersize, cfg->mps); in dwc2_tx_fifo_write()
433 size = ROUND_DOWN(priv->max_xfersize, cfg->mps); in dwc2_rx_xfer_size()
/Zephyr-Core-3.7.0/drivers/tee/optee/
Doptee.c941 buf_page = (uint8_t *)ROUND_DOWN((uintptr_t)buf, page_size); in optee_construct_page_list()