/fuchsia/zircon/system/utest/vdso/ |
H A D | vdso.cpp | 165 map(0, vdso_vmo, 0, PAGE_SIZE, 170 ASSERT_GE(scratch.vdso_code_size(), PAGE_SIZE, "vDSO code < page??"); 171 if (scratch.vdso_code_size() > PAGE_SIZE) { 172 ASSERT_EQ(scratch.vdso_code_size() % PAGE_SIZE, 0); 174 map(0, vdso_vmo, scratch.vdso_code_offset(), PAGE_SIZE,
|
/fuchsia/zircon/kernel/vm/ |
H A D | vm_page_list.cpp | 75 uint64_t node_offset = ROUNDDOWN(offset, PAGE_SIZE * VmPageListNode::kPageFanOut); 104 uint64_t node_offset = ROUNDDOWN(offset, PAGE_SIZE * VmPageListNode::kPageFanOut); 120 uint64_t node_offset = ROUNDDOWN(offset, PAGE_SIZE * VmPageListNode::kPageFanOut);
|
H A D | page.cpp | 79 hexdump(ptr, PAGE_SIZE);
|
H A D | pmm_node.cpp | 177 address = ROUNDDOWN(address, PAGE_SIZE); 200 address += PAGE_SIZE; 342 this, free_count_, free_count_ * PAGE_SIZE, arena_cumulative_size_); 371 memset(kvaddr, PMM_FREE_FILL_BYTE, PAGE_SIZE); 376 for (size_t j = 0; j < PAGE_SIZE; ++j) {
|
H A D | vm_mapping.cpp | 83 size = ROUNDUP(size, PAGE_SIZE); 103 return aspace->arch_aspace().Protect(base, size / PAGE_SIZE, new_arch_mmu_flags); 105 return aspace->arch_aspace().Unmap(base, size / PAGE_SIZE, nullptr); 225 size = ROUNDUP(size, PAGE_SIZE); 273 zx_status_t status = aspace_->arch_aspace().Unmap(base, size / PAGE_SIZE, nullptr); 308 zx_status_t status = aspace_->arch_aspace().Unmap(base, size / PAGE_SIZE, nullptr); 382 static_cast<size_t>(len_new) / PAGE_SIZE, nullptr); 402 if (count_ >= fbl::count_of(phys_) || vaddr != base_ + count_ * PAGE_SIZE) { 459 base_ += count_ * PAGE_SIZE; 469 len = ROUNDUP(len, PAGE_SIZE); [all...] |
/fuchsia/zircon/system/utest/vdso-base/ |
H A D | vdso-base.c | 93 vdso_code_start - PAGE_SIZE, 94 PAGE_SIZE * 2); 126 PAGE_SIZE, &addr);
|
/fuchsia/zircon/kernel/tests/ |
H A D | benchmarks.cpp | 51 uint8_t* buf = (uint8_t*)memalign(PAGE_SIZE, BUFSIZE); 75 uint8_t* buf = (uint8_t*)memalign(PAGE_SIZE, BUFSIZE); 85 for (size_t j = 0; j < BUFSIZE; j += PAGE_SIZE) { 86 memset(buf + j, 0, PAGE_SIZE); 101 uint8_t* buf = (uint8_t*)memalign(PAGE_SIZE, BUFSIZE); 111 for (size_t j = 0; j < BUFSIZE; j += PAGE_SIZE) {
|
/fuchsia/zircon/kernel/arch/x86/include/arch/x86/ |
H A D | bootstrap16.h | 112 static_assert(sizeof(struct x86_ap_bootstrap_data) <= PAGE_SIZE, ""); 113 static_assert(sizeof(struct x86_realmode_entry_data) <= PAGE_SIZE, "");
|
/fuchsia/zircon/system/dev/audio/intel-hda/controller/ |
H A D | utils.h | 28 constexpr size_t MAPPED_CORB_RIRB_SIZE = PAGE_SIZE; 31 constexpr size_t MAPPED_BDL_SIZE = PAGE_SIZE;
|
/fuchsia/zircon/system/dev/board/gauss/ |
H A D | gauss-audio.c | 22 .base = EE_AUDIO_MMIO_BASE, .length = PAGE_SIZE, 25 .base = PDM_MMIO_BASE, .length = PAGE_SIZE,
|
H A D | gauss-gpio.c | 21 .length = PAGE_SIZE,
|
/fuchsia/zircon/system/dev/bus/virtio/ |
H A D | block.cpp | 24 #define MAX_MAX_XFER ((MAX_SCATTER - 1) * PAGE_SIZE) 26 #define PAGE_MASK (PAGE_SIZE - 1) 54 info->max_transfer_size = (uint32_t)(PAGE_SIZE * (ring_size - 2)); 341 desc->len = (uint32_t) ((bytes > PAGE_SIZE) ? PAGE_SIZE : bytes); 350 size_t max = PAGE_SIZE - page0_offset; 401 size_t pin_size = ROUNDUP(suboffset + bytes, PAGE_SIZE); 402 size_t num_pages = pin_size / PAGE_SIZE;
|
/fuchsia/zircon/system/dev/tee/optee/ |
H A D | shared-memory.h | 115 static constexpr uint64_t kAlignment = PAGE_SIZE; 131 static constexpr size_t kDriverPoolSize = 4 * PAGE_SIZE;
|
H A D | shared-memory.cpp | 30 shared_mem_start = fbl::round_up(shared_mem_start, static_cast<uint32_t>(PAGE_SIZE)); 32 static_cast<uint32_t>(PAGE_SIZE));
|
/fuchsia/zircon/system/utest/core/stack/ |
H A D | stack-test.c | 16 return (uintptr_t)ptr & -PAGE_SIZE; 102 EXPECT_LE(PTHREAD_STACK_MIN, PAGE_SIZE, "");
|
/fuchsia/zircon/system/utest/ramdisk/ |
H A D | ramdisk.cpp | 137 uint8_t buf[PAGE_SIZE]; 138 uint8_t out[PAGE_SIZE]; 142 ASSERT_TRUE(RamdiskTest::Create(PAGE_SIZE / 2, 512, &ramdisk)); 164 ASSERT_TRUE(RamdiskTest::CreateWithGuid(PAGE_SIZE / 2, 512, kGuid, sizeof(kGuid), &ramdisk)); 177 ASSERT_EQ(zx::vmo::create(256 * PAGE_SIZE, 0, &vmo), ZX_OK); 185 uint8_t buf[PAGE_SIZE * 2]; 186 uint8_t out[PAGE_SIZE * 2]; 211 if (create_ramdisk(PAGE_SIZE / 2, 512, ramdisk_path)) { 297 if (create_ramdisk(PAGE_SIZE / 2, 512, ramdisk_path)) { 315 uint8_t buf[PAGE_SIZE]; [all...] |
/fuchsia/zircon/third_party/ulib/musl/src/thread/ |
H A D | allocate.c | 28 return (sz + PAGE_SIZE - 1) & -PAGE_SIZE; 163 if (map_block(_zx_vmar_root_self(), vmo, 0, tcb_size, PAGE_SIZE, PAGE_SIZE,
|
/fuchsia/zircon/third_party/ulib/ngunwind/src/x86_64/ |
H A D | Ginit.c | 91 #define PAGE_SIZE 4096 macro 92 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 121 len = PAGE_SIZE; 123 len = PAGE_SIZE * 2;
|
/fuchsia/zircon/system/utest/core/resource/ |
H A D | resource.cpp | 22 static const size_t mmio_test_size = (PAGE_SIZE * 4); 178 EXPECT_EQ(zx_vmo_create_physical(mmio.get(), mmio_test_base, PAGE_SIZE, 191 PAGE_SIZE/2, NULL, 0, &mmio), 193 EXPECT_EQ(zx_vmo_create_physical(mmio.get(), mmio_test_base, PAGE_SIZE, 201 // to the proper PAGE_SIZE. 233 ASSERT_EQ(ZX_OK, zx_vmo_create(PAGE_SIZE, 0, vmo.reset_and_get_address()));
|
/fuchsia/zircon/system/utest/bitmap/ |
H A D | raw-bitmap-tests.cpp | 435 EXPECT_NE(bitmap.SetOne(16 * PAGE_SIZE - 1), ZX_OK); 437 EXPECT_EQ(bitmap.Grow(16 * PAGE_SIZE), ZX_OK); 438 EXPECT_EQ(bitmap.Find(true, 101, 16 * PAGE_SIZE, 1, &bitoff_start), ZX_ERR_NO_RESOURCES, 442 EXPECT_FALSE(bitmap.GetOne(16 * PAGE_SIZE - 1)); 443 EXPECT_EQ(bitmap.SetOne(16 * PAGE_SIZE - 1), ZX_OK); 444 EXPECT_TRUE(bitmap.GetOne(16 * PAGE_SIZE - 1)); 452 EXPECT_EQ(bitmap.Grow(16 * PAGE_SIZE), ZX_OK); 454 EXPECT_FALSE(bitmap.GetOne(16 * PAGE_SIZE - 1)); 517 EXPECT_EQ(bitmap.Grow(8 * PAGE_SIZE), ZX_ERR_NO_RESOURCES);
|
/fuchsia/zircon/kernel/lib/heap/cmpctmalloc/ |
H A D | cmpctmalloc.c | 525 for (size_t s = 1; s < PAGE_SIZE * 4; s = (s + 1) * 1.1) { 530 test_sizes[sizes++] = PAGE_SIZE + s; 544 if (s<PAGE_SIZE>> 1) { 556 ASSERT(remaining < PAGE_SIZE * 2); 569 if (s >= PAGE_SIZE && with_second_alloc) { 620 ASSERT(remaining < PAGE_SIZE * 2); 735 if (((uintptr_t)a & (PAGE_SIZE - 1)) != sizeof(header_t) * 2) { 812 for (int bucket = size_to_index_freeing(PAGE_SIZE); 820 free_area->header.size >= PAGE_SIZE + sizeof(header_t)); 825 (char*)ROUNDUP((uintptr_t)right, PAGE_SIZE); [all...] |
/fuchsia/zircon/system/dev/lib/usb-request/ |
H A D | usb-request.c | 233 uint64_t page_offset = ROUNDDOWN(req->offset, PAGE_SIZE); 236 uint64_t pages = ROUNDUP(page_length, PAGE_SIZE) / PAGE_SIZE; 243 const size_t sub_offset = page_offset & (PAGE_SIZE - 1); 245 const size_t pin_length = ROUNDUP(page_length + sub_offset, PAGE_SIZE); 247 if (pin_length / PAGE_SIZE != pages) {
|
/fuchsia/zircon/kernel/arch/x86/page_tables/ |
H A D | page_tables.cpp | 552 new_cursor->vaddr += PAGE_SIZE; 553 new_cursor->size -= PAGE_SIZE; 680 new_cursor->paddr += PAGE_SIZE; 681 new_cursor->vaddr += PAGE_SIZE; 682 new_cursor->size -= PAGE_SIZE; 797 new_cursor->vaddr += PAGE_SIZE; 798 new_cursor->size -= PAGE_SIZE; 817 .paddr = 0, .vaddr = vaddr, .size = count * PAGE_SIZE, 867 .paddr = 0, .vaddr = vaddr, .size = idx * PAGE_SIZE, 880 .paddr = phys[idx], .vaddr = v, .size = PAGE_SIZE, [all...] |
/fuchsia/zircon/kernel/arch/arm64/hypervisor/ |
H A D | el2_cpu_state.cpp | 38 for (size_t i = 0; i < PAGE_SIZE / sizeof(pte_t); i++) { 57 return page_.PhysicalAddress() + PAGE_SIZE;
|
/fuchsia/zircon/kernel/arch/x86/ |
H A D | asm.S | 78 mov $PAGE_SIZE >> 3, %rcx
|