Searched refs:mapping (Results 1 - 25 of 30) sorted by relevance

12

/fuchsia/zircon/kernel/lib/unittest/
H A Duser_memory.cpp37 fbl::RefPtr<VmMapping> mapping; local
41 vmo, 0, arch_mmu_flags, "unittest", &mapping);
47 if (mapping) {
48 zx_status_t status = mapping->Unmap(mapping->base(), mapping->size());
54 fbl::unique_ptr<UserMemory> mem(new (&ac) UserMemory(mapping));
/fuchsia/zircon/kernel/dev/udisplay/
H A Dudisplay.cpp59 fbl::RefPtr<VmMapping> mapping; local
62 fbl::move(vmo), 0, kFramebufferArchMmuFlags, "framebuffer_vmo", &mapping);
66 status = mapping->MapRange(0, size, true);
68 mapping->Destroy();
72 g_udisplay.framebuffer_virt = reinterpret_cast<void*>(mapping->base());
74 g_udisplay.framebuffer_vmo_mapping = mapping;
/fuchsia/zircon/kernel/lib/unittest/include/lib/unittest/
H A Duser_memory.h33 UserMemory(fbl::RefPtr<VmMapping> mapping) argument
34 : mapping_(fbl::move(mapping)) {}
/fuchsia/zircon/system/utest/core/memory-mapping/
H A Drules.mk14 $(LOCAL_DIR)/memory-mapping.cpp
16 MODULE_NAME := memory-mapping-test
/fuchsia/zircon/kernel/lib/hypervisor/
H A Dguest_physical_address_space.cpp72 // we don't need to maintain a long-lived reference to the mapping here.
73 fbl::RefPtr<VmMapping> mapping; local
77 &mapping);
82 // Write mapping to page table.
83 status = mapping->MapRange(0, vmo->size(), true);
85 mapping->Destroy();
107 fbl::RefPtr<VmMapping> mapping = FindMapping(RootVmar(), guest_paddr); local
108 if (!mapping) {
113 zx_gpaddr_t offset = guest_paddr - mapping->base();
114 return mapping
118 fbl::RefPtr<VmMapping> mapping = FindMapping(RootVmar(), guest_paddr); local
[all...]
/fuchsia/zircon/kernel/vm/
H A Dkstack.cpp27 // Allocates and maps a kernel stack with one page of padding before and after the mapping.
73 // create a mapping offset padding_size into the vmar we created
86 LTRACEF("%s stack mapping at %#" PRIxPTR "\n",
114 fbl::RefPtr<VmMapping> mapping; local
116 zx_status_t status = allocate_vmar(false, &mapping, &vmar);
120 stack->size = mapping->size();
121 stack->base = mapping->base();
122 stack->top = mapping->base() + DEFAULT_STACK_SIZE;
128 status = allocate_vmar(true, &mapping, &vmar);
133 stack->size = mapping
[all...]
H A Dvm_mapping.cpp136 // TODO(teisenbe): deal with error mapping on arch_mmu_protect fail
138 // If we're changing the whole mapping, just make the change.
148 // Create a new mapping for the right half (has old perms)
150 fbl::RefPtr<VmMapping> mapping(fbl::AdoptRef(
162 mapping->ActivateLocked();
168 // Create a new mapping for the right half (has new perms)
171 fbl::RefPtr<VmMapping> mapping(fbl::AdoptRef(
183 mapping->ActivateLocked();
241 // If we're unmapping everything, destroy this mapping
291 // We're unmapping from the center, so we need to split the mapping
434 VmMappingCoalescer(VmMapping* mapping, vaddr_t base) argument
[all...]
/fuchsia/zircon/kernel/lib/vdso/
H A Drodso.cpp68 fbl::RefPtr<VmMapping> mapping; local
70 start_offset, len, flags, &mapping);
75 "userboot: %s %s mapping %#zx @ %#" PRIxPTR
80 DEBUG_ASSERT(mapping->base() == vmar->vmar()->base() + vmar_offset);
83 mapping->base(), mapping->base() + len);
/fuchsia/zircon/kernel/platform/pc/
H A Dsmbios.cpp65 fbl::RefPtr<VmMapping>* mapping, uintptr_t* struct_table_virt) {
86 *mapping = fbl::move(m);
107 fbl::RefPtr<VmMapping> mapping; local
108 auto cleanup_mapping = fbl::MakeAutoCall([&mapping] {
109 if (mapping) {
110 mapping->Destroy();
131 status = MapStructs2_1(ep, &mapping, &struct_table_virt);
64 MapStructs2_1(const smbios::EntryPoint2_1* ep, fbl::RefPtr<VmMapping>* mapping, uintptr_t* struct_table_virt) argument
/fuchsia/zircon/system/uapp/namespace/
H A Dnamespace.c34 int run_in_namespace(const char** argv, size_t count, const char* const* mapping) { argument
51 const char* dst = *mapping++;
54 fprintf(stderr, "error: mapping '%s' not in form of '<dst>=<src>'\n", dst);
155 const char* const* mapping = argv + 1; local
164 return run_in_namespace(child_argv, count, mapping);
/fuchsia/zircon/kernel/lib/hypervisor/include/hypervisor/
H A Dguest_physical_address_space.h16 // RAII object that holds a mapping of guest physical address space to the host
22 GuestPtr(fbl::RefPtr<VmMapping> mapping, zx_vaddr_t offset) argument
23 : mapping_(fbl::move(mapping)), offset_(offset) {}
/fuchsia/zircon/kernel/arch/x86/
H A Ddescriptor.cpp157 fbl::RefPtr<VmMapping> mapping; local
160 /*vmo_offset*/0u, mmu_flags, "gdt", &mapping);
163 status = mapping->MapRange(0, gdt_real_size, /*commit*/true);
166 memcpy((void*)mapping->base(), _temp_gdt, gdt_real_size);
167 gdt = mapping->base();
H A Dperf_mon.cpp239 fbl::RefPtr<VmMapping> mapping; member in struct:MemoryControllerHubData
1323 if (state->mchbar_data.mapping) {
1324 state->mchbar_data.mapping->Destroy();
1326 state->mchbar_data.mapping.reset();
1355 fbl::RefPtr<VmMapping> mapping;
1359 &mapping);
1363 status = mapping->MapRange(0, PAGE_SIZE, false);
1367 state->mchbar_data.mapping = mapping;
1369 reinterpret_cast<void*>(mapping
1353 fbl::RefPtr<VmMapping> mapping; local
[all...]
/fuchsia/zircon/system/ulib/blobfs/
H A Dhost.cpp41 // A mapping of a file. Does not own the file.
276 FileMapping mapping; local
277 zx_status_t status = mapping.Map(data_fd);
281 return buffer_create_merkle(mapping.data(), mapping.length(), out_digest, out_merkle);
285 FileMapping mapping; local
286 zx_status_t status = mapping.Map(data_fd);
294 status = buffer_create_merkle(mapping.data(), mapping.length(), &digest, &merkle_tree);
299 return blobfs_add_mapped_blob_with_merkle(bs, mapping
307 FileMapping mapping; local
[all...]
/fuchsia/zircon/system/private/efi/protocol/
H A Dpci-root-bridge-io.h90 efi_physical_addr* device_addr, void** mapping) EFIAPI;
93 void* mapping) EFIAPI;
/fuchsia/zircon/kernel/lib/fbl/
H A Darena.cpp46 // + Control pool mapping
48 // + Data pool mapping
91 // Create a mapping for the control pool.
103 LTRACEF("Arena '%s': can't create %zu-byte control mapping (%d)\n",
108 // Create a mapping for the data pool, leaving an unmapped gap
121 LTRACEF("Arena '%s': can't create %zu-byte data mapping (%d)\n",
143 void Arena::Pool::Init(const char* name, fbl::RefPtr<VmMapping> mapping, argument
145 DEBUG_ASSERT(mapping != nullptr);
150 mapping_ = mapping;
H A Darena_tests.cpp175 const auto mapping = region->as_vm_mapping(); local
176 if (mapping == nullptr) {
177 // It's a VMAR, not a mapping, so no pages are committed.
183 auto start_off = ROUNDDOWN(start, PAGE_SIZE) - mapping->base();
184 auto end_off = ROUNDUP(end, PAGE_SIZE) - mapping->base();
185 *committed = mapping->vmo()->AllocatedPagesInRange(
186 start_off + mapping->object_offset(), end_off - start_off);
447 // 0/0 means "no mapping at this address".
448 // FLAKY: Another thread could could come in and allocate a mapping at the
/fuchsia/zircon/system/ulib/libzbi/
H A Dzbi-zx.cpp44 uintptr_t mapping; local
47 &mapping);
49 base_ = reinterpret_cast<uint8_t*>(mapping);
/fuchsia/zircon/third_party/ulib/musl/src/thread/
H A Dallocate.c95 struct iovec* mapping,
116 mapping->iov_base = (void*)addr;
117 mapping->iov_len = size;
92 map_block(zx_handle_t parent_vmar, zx_handle_t vmo, size_t vmo_offset, size_t size, size_t before, size_t after, struct iovec* mapping, struct iovec* region) argument
/fuchsia/zircon/kernel/lib/fbl/include/fbl/
H A Darena.h72 // Initializes the pool. |mapping| must be fully backed by its
75 void Init(const char* name, fbl::RefPtr<VmMapping> mapping,
/fuchsia/zircon/kernel/arch/x86/page_tables/include/arch/x86/page_tables/
H A Dpage_tables.h170 volatile pt_entry_t** mapping) TA_REQ(lock_);
173 volatile pt_entry_t** mapping) TA_REQ(lock_);
/fuchsia/zircon/system/uapp/psutils/
H A Dvmaps.c134 print_mmu_flags(e->u.mapping.mmu_flags);
143 const zx_info_maps_mapping_t* u = &e->u.mapping;
/fuchsia/zircon/kernel/arch/x86/page_tables/
H A Dpage_tables.cpp366 * @param vaddr The virtual address to retrieve the mapping for
367 * @param ret_level The level of the table that defines the found mapping
368 * @param mapping The mapping that was found
370 * @return ZX_OK if mapping is found
371 * @return ZX_ERR_NOT_FOUND if mapping is not found
376 volatile pt_entry_t** mapping) {
379 DEBUG_ASSERT(mapping);
382 return GetMappingL0(table, vaddr, ret_level, mapping);
395 *mapping
373 GetMapping(volatile pt_entry_t* table, vaddr_t vaddr, PageTableLevel level, PageTableLevel* ret_level, volatile pt_entry_t** mapping) argument
404 GetMappingL0(volatile pt_entry_t* table, vaddr_t vaddr, PageTableLevel* ret_level, volatile pt_entry_t** mapping) argument
[all...]
/fuchsia/zircon/system/ulib/runtests-utils/
H A Dfuchsia-run-test.cpp392 uintptr_t mapping; local
394 ZX_VM_PERM_READ, &mapping);
403 auto unmap_vmar = fbl::MakeAutoCall([&]() { zx::vmar::root_self()->unmap(mapping, size); });
431 uint8_t *buf = reinterpret_cast<uint8_t *>(mapping);
/fuchsia/zircon/system/public/zircon/syscalls/
H A Dobject.h135 // mem_scaled_shared_bytes += 1 / (number of tasks mapping this byte)
183 // Describes a VM mapping.
185 // MMU flags for the mapping.
204 // Describes a node in the aspace/vmar/mapping hierarchy for a user process.
220 zx_info_maps_mapping_t mapping; member in union:zx_info_maps::__anon807
255 // Describes a VMO. For mapping information, see |zx_info_maps_t|.
405 // Argument is the base address of the vDSO mapping (or zero), a uintptr_t.

Completed in 113 milliseconds

12