Home
last modified time | relevance | path

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

/kernel/arch/arm64/
A Dthread.cpp51 stack_top = ROUNDDOWN(stack_top, 16); in arch_thread_initialize()
69 ROUNDDOWN(t->stack.unsafe_base + t->stack.size, 16); in arch_thread_initialize()
/kernel/arch/x86/
A Dcache.cpp46 addr_t ptr = ROUNDDOWN(start, clsize); in arch_clean_invalidate_cache_range()
A Dthread.cpp29 stack_top = ROUNDDOWN(stack_top, 16); in arch_thread_initialize()
61 ROUNDDOWN(t->stack.unsafe_base + t->stack.size, 16); in arch_thread_initialize()
A Dbootstrap16.cpp77 vaddr_to_paddr((void*)ROUNDDOWN((uintptr_t)&_temp_gdt, PAGE_SIZE)); in x86_bootstrap16_acquire()
79 ROUNDUP((uintptr_t)&_temp_gdt_end, PAGE_SIZE) - ROUNDDOWN((uintptr_t)&_temp_gdt, PAGE_SIZE); in x86_bootstrap16_acquire()
A Darch.cpp194 ROUNDDOWN(thread->stack.unsafe_base + thread->stack.size, 16)); in x86_secondary_entry()
A Dioapic.cpp132 paddr_t paddr_page_base = ROUNDDOWN(paddr, PAGE_SIZE); in apic_io_init()
/kernel/vm/
A Dvm_object_physical.cpp85 uint64_t pa = base_ + ROUNDDOWN(offset, PAGE_SIZE); in GetPageLocked()
108 uint64_t cur_offset = ROUNDDOWN(offset, PAGE_SIZE); in Lookup()
A Dvm_object_paged.cpp584 offset = ROUNDDOWN(offset, PAGE_SIZE); in CommitRange()
662 uint64_t start = ROUNDDOWN(offset, PAGE_SIZE); in DecommitRange()
705 const uint64_t start_page_offset = ROUNDDOWN(offset, PAGE_SIZE); in PinLocked()
753 const uint64_t start_page_offset = ROUNDDOWN(offset, PAGE_SIZE); in UnpinLocked()
981 const uint64_t start_page_offset = ROUNDDOWN(offset, PAGE_SIZE); in Lookup()
A Dvm_object.cpp238 const uint64_t aligned_offset = ROUNDDOWN(offset, PAGE_SIZE); in RangeChangeUpdateLocked()
A Dvm.cpp45 pa = ROUNDDOWN(pa, PAGE_SIZE); in MarkPagesInUsePhys()
A Dpmm_node.cpp177 address = ROUNDDOWN(address, PAGE_SIZE); in AllocRange()
A Dvm_page_list.cpp25 return ROUNDDOWN(offset, PAGE_SIZE * VmPageListNode::kPageFanOut); in offset_to_node_offset()
A Dvm_mapping.cpp606 va = ROUNDDOWN(va, PAGE_SIZE); in PageFault()
/kernel/lib/libc/include/
A Dstdlib.h33 #define ROUNDDOWN(a, b) ((a) & ~((b)-1)) macro
/kernel/object/
A Dresource.cpp75 const uint64_t aligned_rbase = ROUNDDOWN(rbase, PAGE_SIZE); in validate_ranged_resource()
/kernel/tests/
A Dmem_tests.cpp27 ptr = (void*)ROUNDDOWN((uintptr_t)ptr, 64); in mem_test_fail()
/kernel/lib/hypervisor/
A Dguest_physical_address_space.cpp141 const zx_gpaddr_t begin = ROUNDDOWN(guest_paddr, PAGE_SIZE); in CreateGuestPtr()
/kernel/vm/include/vm/
A Dvm_object_paged.h103 static const uint64_t MAX_SIZE = ROUNDDOWN(UINT64_MAX, PAGE_SIZE);
/kernel/lib/fbl/
A Darena_tests.cpp183 auto start_off = ROUNDDOWN(start, PAGE_SIZE) - mapping->base(); in count_committed_pages()
215 auto ps = ROUNDDOWN(obj, PAGE_SIZE); in committing_tests()
/kernel/lib/vdso/
A Dvdso.cpp40 uint64_t page_offset = ROUNDDOWN(offset, PAGE_SIZE); in KernelVmoWindow()
/kernel/platform/pc/
A Dmemory.cpp123 uint64_t size = ROUNDDOWN(range->base + range->size, PAGE_SIZE) - in mem_arena_init()
/kernel/lib/heap/cmpctmalloc/
A Dcmpctmalloc.cpp860 (char*)ROUNDDOWN((uintptr_t)free_area, PAGE_SIZE); in cmpct_trim()
865 (char*)ROUNDDOWN((uintptr_t)(right - 1), PAGE_SIZE); in cmpct_trim()
/kernel/syscalls/
A Dddk_pci.cpp284 arg->addr_windows[0].size = ROUNDDOWN(end - arg->addr_windows[0].base, in sys_pci_init()

Completed in 49 milliseconds