Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 48) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_mmap.py6 mmap = import_module('mmap') variable
8 PAGESIZE = mmap.PAGESIZE
33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
124 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ)
179 m = mmap.mmap(f.fileno(), mapsize+1)
201 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE)
217 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_COPY)
232 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize, access=4)
238 self.assertRaises(ValueError, mmap.mmap, f.fileno(), mapsize,
239 flags=mmap.MAP_PRIVATE,
[all …]
Dwin_console_handler.py14 import mmap
44 m = mmap.mmap(-1, 1, sys.argv[1])
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/common/
Darm_bl1_fwu.c51 bl1_mem_info_t *mmap; in bl1_plat_mem_check() local
66 mmap = fwu_addr_map_secure; in bl1_plat_mem_check()
68 mmap = fwu_addr_map_non_secure; in bl1_plat_mem_check()
70 while (mmap[index].mem_size) { in bl1_plat_mem_check()
71 if ((mem_base >= mmap[index].mem_base) && in bl1_plat_mem_check()
73 <= (mmap[index].mem_base + in bl1_plat_mem_check()
74 mmap[index].mem_size))) in bl1_plat_mem_check()
/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_xlat_setup.c18 const struct mmap_region *mmap) in uniphier_mmap_setup() argument
55 if (mmap) in uniphier_mmap_setup()
56 mmap_add(mmap); in uniphier_mmap_setup()
Duniphier.h55 const struct mmap_region *mmap);
/device/linaro/bootloader/arm-trusted-firmware/lib/xlat_tables/
Dxlat_tables_common.c49 static mmap_region_t mmap[MAX_MMAP_REGIONS + 1]; variable
56 mmap_region_t *mm = mmap; in print_mmap()
70 mmap_region_t *mm = mmap; in mmap_add_region()
71 mmap_region_t *mm_last = mm + ARRAY_SIZE(mmap) - 1; in mmap_add_region()
93 for (mm = mmap; mm->size; ++mm) { in mmap_add_region()
133 mm = mmap; /* Restore pointer to the start of the array */ in mmap_add_region()
385 init_xlation_table_inner(mmap, base_va, table, level); in init_xlation_table()
/device/google/cuttlefish_common/guest/vsoc/lib/
Dmanaged_region_e2e_test.cpp65 void* mapped_ptr = mmap(NULL, perm.end_offset - perm.begin_offset, in testManagedRegionMap()
76 mapped_ptr = mmap(NULL, end_offset - begin_offset, PROT_WRITE | PROT_READ, in testManagedRegionMap()
90 mapped_ptr = mmap(NULL, end_offset - begin_offset, PROT_WRITE | PROT_READ, in testManagedRegionMap()
/device/linaro/bootloader/arm-trusted-firmware/include/lib/xlat_tables/
Dxlat_tables_v2_helpers.h60 struct mmap_region *mmap; member
149 .mmap = _ctx_name##_mmap, \
/device/linaro/bootloader/arm-trusted-firmware/lib/xlat_tables_v2/
Dxlat_tables_private.h63 void print_mmap(mmap_region_t *const mmap);
Dxlat_tables_internal.c611 void print_mmap(mmap_region_t *const mmap) in print_mmap() argument
615 mmap_region_t *mm = mmap; in print_mmap()
668 if (ctx->mmap[ctx->mmap_num - 1].size != 0) in mmap_add_region_check()
672 for (mmap_region_t *mm_cursor = ctx->mmap; in mmap_add_region_check()
737 mmap_region_t *mm_cursor = ctx->mmap; in mmap_add_region_ctx()
835 mmap_region_t *mm_cursor = ctx->mmap; in mmap_add_dynamic_region_ctx()
951 mmap_region_t *mm = ctx->mmap; in mmap_remove_dynamic_region_ctx()
993 mm = ctx->mmap; in mmap_remove_dynamic_region_ctx()
1003 mm = ctx->mmap; in mmap_remove_dynamic_region_ctx()
1233 mmap_region_t *mm = ctx->mmap; in init_xlat_tables_ctx()
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-fio.c171 …XF_CHK_ERR((ipc->shmem = mmap(NULL, XF_CFG_REMOTE_IPC_POOL_SIZE, PROT_READ | PROT_WRITE, MAP_SHARE… in xf_ipc_open()
173 …XF_CHK_ERR((ipc->shmem = mmap(NULL, xf_cfg_remote_ipc_pool_size, PROT_READ | PROT_WRITE, MAP_SHARE… in xf_ipc_open()
/device/google/cuttlefish_common/guest/hals/gralloc/legacy/
Dregion_registry.cpp167 return mmap(addr, length, prot, flags, fd, offset); in recycle_mmap()
173 if (addr != mmap(addr, length, PROT_READ|PROT_WRITE, in recycle_munmap()
/device/linaro/bootloader/arm-trusted-firmware/docs/
Dxlat-tables-lib-v2-design.rst60 `mmap` regions
74 The user usually provides a list of such mmap regions to map and lets the
139 * The maximum number of `mmap` regions to map.
167 - number of `mmap` regions: ``MAX_MMAP_REGIONS``;
181 When dynamic memory mapping is enabled, the library categorises mmap regions as
246 #. Initialize translation tables based on the list of mmap regions (using one of
302 From mmap regions to translation tables
311 The mmap regions list is a conceptual way to represent the memory layout. At
316 mmap regions list. Adding a static or dynamic region at this point through one
318 they only get registered in the internal mmap region list. It is only when the
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
Dgoldfish_address_space.cpp97 void *GoldfishAddressSpaceBlock::mmap(uint64_t opaque) in mmap() function in GoldfishAddressSpaceBlock
217 void *GoldfishAddressSpaceBlock::mmap(uint64_t host_addr) in mmap() function in GoldfishAddressSpaceBlock
397 void *GoldfishAddressSpaceBlock::mmap(uint64_t host_addr) in mmap() function in GoldfishAddressSpaceBlock
Dgoldfish_address_space.h66 void *mmap(uint64_t opaque);
Dgoldfish_dma.cpp87 void *mapped = mmap(0, cxt->size, PROT_WRITE, MAP_SHARED, cxt->fd, 0); in goldfish_dma_map()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dconfigure417 return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
422 echo Checking for mmap support... Yes.
424 echo Checking for mmap support... No.
/device/linaro/hikey/gralloc960/
Dgralloc_buffer_priv.cpp76 hnd->attr_base = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate()
Dgralloc_buffer_priv.h86 hnd->attr_base = mmap(NULL, PAGE_SIZE, prot_flags, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_map()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.c353 res = mmap ((void *)base, length, prot, flags, fd, 0); in MapMemory()
446 res = mmap ( in MapFd0()
461 res = mmap ( in MapFd0()
477 res2 = mmap ( in MapFd0()
499 res3 = mmap ( in MapFd0()
/device/generic/goldfish/gralloc/
Dmapper.cpp44 void* mappedAddress = mmap(0, size, in gralloc_map()
/device/google/cuttlefish_common/guest/hals/gralloc/
Dmapper.cpp79 mmap(NULL, hnd->size, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->fd, 0); in reference_buffer()
/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c91 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dextensions_win32.ini37 [mmap] section
38 dsp=%PYTHONPREFIX%\PCBuild\mmap.dsp argument
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3Mem.cpp580 void *vaddr = mmap(NULL, in allocate()
638 void *vaddr = mmap(NULL, in allocateOne()
835 vaddr = mmap(NULL, in registerBuffer()

12