Searched refs:PAGE_SIZE (Results 51 - 75 of 208) sorted by relevance

123456789

/fuchsia/zircon/system/utest/vdso/
H A Dvdso.cpp165 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 Dvm_page_list.cpp75 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 Dpage.cpp79 hexdump(ptr, PAGE_SIZE);
H A Dpmm_node.cpp177 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 Dvm_mapping.cpp83 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 Dvdso-base.c93 vdso_code_start - PAGE_SIZE,
94 PAGE_SIZE * 2);
126 PAGE_SIZE, &addr);
/fuchsia/zircon/kernel/tests/
H A Dbenchmarks.cpp51 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 Dbootstrap16.h112 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 Dutils.h28 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 Dgauss-audio.c22 .base = EE_AUDIO_MMIO_BASE, .length = PAGE_SIZE,
25 .base = PDM_MMIO_BASE, .length = PAGE_SIZE,
H A Dgauss-gpio.c21 .length = PAGE_SIZE,
/fuchsia/zircon/system/dev/bus/virtio/
H A Dblock.cpp24 #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 Dshared-memory.h115 static constexpr uint64_t kAlignment = PAGE_SIZE;
131 static constexpr size_t kDriverPoolSize = 4 * PAGE_SIZE;
H A Dshared-memory.cpp30 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 Dstack-test.c16 return (uintptr_t)ptr & -PAGE_SIZE;
102 EXPECT_LE(PTHREAD_STACK_MIN, PAGE_SIZE, "");
/fuchsia/zircon/system/utest/ramdisk/
H A Dramdisk.cpp137 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 Dallocate.c28 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 DGinit.c91 #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 Dresource.cpp22 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 Draw-bitmap-tests.cpp435 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 Dcmpctmalloc.c525 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 Dusb-request.c233 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 Dpage_tables.cpp552 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 Del2_cpu_state.cpp38 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 Dasm.S78 mov $PAGE_SIZE >> 3, %rcx

Completed in 491 milliseconds

123456789