/fuchsia/zircon/kernel/lib/libc/include/ |
H A D | stdlib.h | 32 #define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1)) macro 35 #define ALIGN(a, b) ROUNDUP(a, b)
|
/fuchsia/zircon/system/ulib/ddk/include/ddk/ |
H A D | driver.h | 133 #define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1)) macro 135 #define ALIGN(a, b) ROUNDUP(a, b)
|
/fuchsia/zircon/system/ulib/pretty/ |
H A D | hexdump.c | 12 #define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1)) macro 24 size_t s = ROUNDUP(MIN(len - count, 16), 4);
|
/fuchsia/zircon/system/ulib/ddk/ |
H A D | mmio-buffer.c | 25 const size_t vmo_size = ROUNDUP(size + page_offset, ZX_PAGE_SIZE); 57 const size_t vmo_size = ROUNDUP(buffer->size + page_offset, ZX_PAGE_SIZE);
|
H A D | io-buffer.c | 29 return zx_bti_pin(bti, options, vmo, 0, ROUNDUP(size, PAGE_SIZE), phys, 1, pmt); 268 uint64_t pages = ROUNDUP(page_length, PAGE_SIZE) / PAGE_SIZE; 305 const size_t pin_length = ROUNDUP(length + sub_offset, PAGE_SIZE);
|
/fuchsia/zircon/kernel/vm/include/vm/ |
H A D | vm.h | 19 #define ROUNDUP_PAGE_SIZE(x) ROUNDUP((x), PAGE_SIZE)
|
/fuchsia/zircon/system/dev/display/intel-i915/ |
H A D | gtt.cpp | 105 uint32_t region_length = ROUNDUP(length, PAGE_SIZE); 121 for (unsigned i = 0; i < ROUNDUP(length, PAGE_SIZE) / PAGE_SIZE; i++, stolen_fb += PAGE_SIZE) { 146 uint32_t num_pages = static_cast<uint32_t>(ROUNDUP(length, PAGE_SIZE) / PAGE_SIZE); 151 size_t num_pins = ROUNDUP(length, gtt_->min_contiguity_) / gtt_->min_contiguity_; 165 uint64_t actual_entries = ROUNDUP(cur_len, gtt_->min_contiguity_) / gtt_->min_contiguity_;
|
/fuchsia/zircon/system/dev/bus/acpi/ |
H A D | nhlt.c | 96 size_t page_size = ROUNDUP(page_offset + size, PAGE_SIZE); 124 zx_vmar_unmap(zx_vmar_root_self(), vaddr, ROUNDUP(size, PAGE_SIZE));
|
/fuchsia/zircon/kernel/vm/ |
H A D | vm.cpp | 133 .size = ROUNDUP((uintptr_t)__code_end - (uintptr_t)__code_start, PAGE_SIZE), 139 .size = ROUNDUP((uintptr_t)__rodata_end - (uintptr_t)__rodata_start, PAGE_SIZE), 145 .size = ROUNDUP((uintptr_t)__data_end - (uintptr_t)__data_start, PAGE_SIZE), 151 .size = ROUNDUP((uintptr_t)_end - (uintptr_t)__bss_start, PAGE_SIZE),
|
H A D | pmm_arena.cpp | 102 paddr_t rounded_base = ROUNDUP(base(), 1UL << alignment_log2); 121 start = ROUNDUP(start - aligned_offset + i + 1, 1UL << (alignment_log2 - PAGE_SIZE_SHIFT)) +
|
H A D | vm_object_physical.cpp | 111 uint64_t end_page_offset = ROUNDUP(end, PAGE_SIZE); 157 uint64_t end_page_offset = ROUNDUP(end, PAGE_SIZE);
|
H A D | vm_address_region.cpp | 237 size = ROUNDUP(size, PAGE_SIZE); 618 size = ROUNDUP(size, PAGE_SIZE); 635 size = ROUNDUP(size, PAGE_SIZE); 778 size = ROUNDUP(size, PAGE_SIZE); 894 vaddr_t prev_region_end = ROUNDUP(base_, align); 902 prev_region_end = ROUNDUP(region.base() + region.size(), align);
|
H A D | vm_aspace.cpp | 294 size = ROUNDUP(size, PAGE_SIZE); 446 size = ROUNDUP(size, PAGE_SIZE); 474 size = ROUNDUP(size, PAGE_SIZE);
|
/fuchsia/zircon/kernel/lib/fbl/ |
H A D | arena.cpp | 50 const size_t control_mem_sz = ROUNDUP(count * sizeof(Node), PAGE_SIZE); 51 const size_t data_mem_sz = ROUNDUP(count * ob_size, PAGE_SIZE); 205 ROUNDUP(reinterpret_cast<uintptr_t>(top_ + kPoolCommitIncrease),
|
/fuchsia/zircon/kernel/arch/x86/ |
H A D | registers.cpp | 450 max_area = ROUNDUP(max_area, 64); 477 new_size = ROUNDUP(new_size, 64); 639 offset = ROUNDUP(offset, 64); 644 offset = ROUNDUP(offset, 64);
|
H A D | bootstrap16.cpp | 79 ROUNDUP((uintptr_t)&_temp_gdt_end, PAGE_SIZE) - ROUNDDOWN((uintptr_t)&_temp_gdt, PAGE_SIZE);
|
H A D | thread.cpp | 50 vaddr_t buf = ROUNDUP(((vaddr_t)t->arch.extended_register_buffer), 64);
|
/fuchsia/zircon/kernel/lib/heap/cmpctmalloc/ |
H A D | cmpctmalloc.c | 297 size_t rounded = ROUNDUP(size, 8); 340 for (index = ROUNDUP(index + 1, 32); 634 unsigned expected = (ROUNDUP(i, 8) >> 3) - 1; 656 unsigned expected = bucket_base + ROUNDUP(i, j) / j; 825 (char*)ROUNDUP((uintptr_t)right, PAGE_SIZE); 829 (char*)ROUNDUP( 1078 size = ROUNDUP(size, PAGE_SIZE);
|
/fuchsia/zircon/kernel/dev/iommu/dummy/ |
H A D | dummy_iommu.cpp | 81 *mapped_len = ROUNDUP(size, PAGE_SIZE);
|
/fuchsia/zircon/kernel/lib/debug/ |
H A D | debug.cpp | 78 size_t s = ROUNDUP(MIN(len - count, 16), 4);
|
/fuchsia/zircon/third_party/lib/acpica/source/os_specific/service_layers/ |
H A D | oszircon.cpp | 142 ACPI_PHYSICAL_ADDRESS end = ROUNDUP(PhysicalAddress + Length, PAGE_SIZE);
|
/fuchsia/zircon/system/dev/bus/platform/ |
H A D | platform-protocol-device.cpp | 79 const size_t vmo_size = ROUNDUP(mmio.base + mmio.length - vmo_base, PAGE_SIZE); 113 const size_t vmo_size = ROUNDUP(mmio.base + mmio.length - vmo_base, PAGE_SIZE);
|
/fuchsia/zircon/system/dev/display/imx8m-display/ |
H A D | imx8m-display.c | 38 return ROUNDUP(width, 32 / ZX_PIXEL_FORMAT_BYTES(format)); 77 unsigned size = ROUNDUP(image->width * image->height * pixel_size, PAGE_SIZE);
|
/fuchsia/zircon/system/dev/lib/usb-request/ |
H A D | usb-request.c | 236 uint64_t pages = ROUNDUP(page_length, PAGE_SIZE) / PAGE_SIZE; 245 const size_t pin_length = ROUNDUP(page_length + sub_offset, PAGE_SIZE);
|
/fuchsia/zircon/system/uapp/netdump/ |
H A D | netdump.c | 26 #define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1)) macro 241 size_t padded_len = ROUNDUP(len, 4);
|