Searched refs:ROUNDUP (Results 1 - 25 of 51) sorted by relevance

123

/fuchsia/zircon/kernel/lib/libc/include/
H A Dstdlib.h32 #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 Ddriver.h133 #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 Dhexdump.c12 #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 Dmmio-buffer.c25 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 Dio-buffer.c29 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 Dvm.h19 #define ROUNDUP_PAGE_SIZE(x) ROUNDUP((x), PAGE_SIZE)
/fuchsia/zircon/system/dev/display/intel-i915/
H A Dgtt.cpp105 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 Dnhlt.c96 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 Dvm.cpp133 .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 Dpmm_arena.cpp102 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 Dvm_object_physical.cpp111 uint64_t end_page_offset = ROUNDUP(end, PAGE_SIZE);
157 uint64_t end_page_offset = ROUNDUP(end, PAGE_SIZE);
H A Dvm_address_region.cpp237 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 Dvm_aspace.cpp294 size = ROUNDUP(size, PAGE_SIZE);
446 size = ROUNDUP(size, PAGE_SIZE);
474 size = ROUNDUP(size, PAGE_SIZE);
/fuchsia/zircon/kernel/lib/fbl/
H A Darena.cpp50 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 Dregisters.cpp450 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 Dbootstrap16.cpp79 ROUNDUP((uintptr_t)&_temp_gdt_end, PAGE_SIZE) - ROUNDDOWN((uintptr_t)&_temp_gdt, PAGE_SIZE);
H A Dthread.cpp50 vaddr_t buf = ROUNDUP(((vaddr_t)t->arch.extended_register_buffer), 64);
/fuchsia/zircon/kernel/lib/heap/cmpctmalloc/
H A Dcmpctmalloc.c297 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 Ddummy_iommu.cpp81 *mapped_len = ROUNDUP(size, PAGE_SIZE);
/fuchsia/zircon/kernel/lib/debug/
H A Ddebug.cpp78 size_t s = ROUNDUP(MIN(len - count, 16), 4);
/fuchsia/zircon/third_party/lib/acpica/source/os_specific/service_layers/
H A Doszircon.cpp142 ACPI_PHYSICAL_ADDRESS end = ROUNDUP(PhysicalAddress + Length, PAGE_SIZE);
/fuchsia/zircon/system/dev/bus/platform/
H A Dplatform-protocol-device.cpp79 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 Dimx8m-display.c38 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 Dusb-request.c236 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 Dnetdump.c26 #define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1)) macro
241 size_t padded_len = ROUNDUP(len, 4);

Completed in 201 milliseconds

123