Lines Matching refs:aligned_size
894 size_t aligned_size, align_boundary; in k_mem_map_phys_bare() local
903 addr_offset = k_mem_region_align(&aligned_phys, &aligned_size, in k_mem_map_phys_bare()
906 __ASSERT(aligned_size != 0U, "0-length mapping at 0x%lx", aligned_phys); in k_mem_map_phys_bare()
907 __ASSERT(aligned_phys < (aligned_phys + (aligned_size - 1)), in k_mem_map_phys_bare()
909 aligned_phys, aligned_size); in k_mem_map_phys_bare()
911 align_boundary = arch_virt_region_align(aligned_phys, aligned_size); in k_mem_map_phys_bare()
929 IN_RANGE(aligned_phys + aligned_size - 1, in k_mem_map_phys_bare()
933 uint8_t *adjusted_end = MIN(dest_addr + aligned_size, in k_mem_map_phys_bare()
946 dest_addr = virt_region_alloc(aligned_size, align_boundary); in k_mem_map_phys_bare()
959 aligned_phys, aligned_size, flags, addr_offset); in k_mem_map_phys_bare()
961 arch_mem_map(dest_addr, aligned_phys, aligned_size, flags); in k_mem_map_phys_bare()
982 size_t aligned_size; in k_mem_unmap_phys_bare() local
985 addr_offset = k_mem_region_align(&aligned_virt, &aligned_size, in k_mem_unmap_phys_bare()
988 __ASSERT(aligned_size != 0U, "0-length mapping at 0x%lx", aligned_virt); in k_mem_unmap_phys_bare()
989 __ASSERT(aligned_virt < (aligned_virt + (aligned_size - 1)), in k_mem_unmap_phys_bare()
991 aligned_virt, aligned_size); in k_mem_unmap_phys_bare()
996 aligned_virt, aligned_size, addr_offset); in k_mem_unmap_phys_bare()
998 arch_mem_unmap(UINT_TO_POINTER(aligned_virt), aligned_size); in k_mem_unmap_phys_bare()
999 virt_region_free(UINT_TO_POINTER(aligned_virt), aligned_size); in k_mem_unmap_phys_bare()
1007 size_t k_mem_region_align(uintptr_t *aligned_addr, size_t *aligned_size, in k_mem_region_align() argument
1017 *aligned_size = ROUND_UP(size + addr_offset, align); in k_mem_region_align()