Home
last modified time | relevance | path

Searched refs:mmap_size (Results 1 – 10 of 10) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/mremap/
Dmremap06.c29 static int page_size, mmap_size, mremap_size; variable
71 buf = SAFE_MMAP(0, mmap_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in do_test()
100 mmap_size = (NUM_PAGES+1) * page_size; in setup()
105 ret = fallocate(fd, 0, 0, mmap_size); in setup()
109 buf = SAFE_MMAP(0, mmap_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in setup()
115 SAFE_MUNMAP(buf, mmap_size); in setup()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer.h15 size_t mmap_size; /* for internal use only (i.e., munmap) */ member
27 size_t mmap_size; member
290 assert(shmem->mmap_size >= size); in vn_renderer_shmem_create()
330 assert(!bo->mmap_size || bo->mmap_size >= size); in vn_renderer_bo_create_from_device_memory()
351 assert(!bo->mmap_size || bo->mmap_size >= size); in vn_renderer_bo_create_from_dma_buf()
Dvn_renderer_virtgpu.c1112 virtgpu_ioctl_map(gpu, bo->gem_handle, bo->base.mmap_size); in virtgpu_bo_map()
1149 munmap(bo->base.mmap_ptr, bo->base.mmap_size); in virtgpu_bo_destroy()
1198 size_t mmap_size; in virtgpu_bo_create_from_dma_buf() local
1211 mmap_size = 0; in virtgpu_bo_create_from_dma_buf()
1216 mmap_size = size; in virtgpu_bo_create_from_dma_buf()
1224 mmap_size = 0; in virtgpu_bo_create_from_dma_buf()
1231 if (bo->base.mmap_size < mmap_size) in virtgpu_bo_create_from_dma_buf()
1245 .mmap_size = mmap_size, in virtgpu_bo_create_from_dma_buf()
1288 .mmap_size = size, in virtgpu_bo_create_from_device_memory()
1306 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in virtgpu_shmem_destroy_now()
[all …]
Dvn_renderer_vtest.c686 void *ptr = mmap(NULL, bo->base.mmap_size, PROT_READ | PROT_WRITE, in vtest_bo_map()
690 bo->res_fd, bo->base.mmap_size, strerror(errno)); in vtest_bo_map()
720 munmap(bo->base.mmap_ptr, bo->base.mmap_size); in vtest_bo_destroy()
770 .mmap_size = size, in vtest_bo_create_from_device_memory()
788 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in vtest_shmem_destroy_now()
843 .mmap_size = size, in vtest_shmem_create()
Dvn_renderer_internal.c101 choose_bucket(cache, shmem->mmap_size, &idx); in vn_renderer_shmem_cache_add()
/third_party/ffmpeg/libavcodec/
Dsmacker.c277 int mmap_size, mclr_size, full_size, type_size, ret; in decode_header_trees() local
280 mmap_size = AV_RL32(smk->avctx->extradata); in decode_header_trees()
298 ret = smacker_decode_header_tree(smk, &gb, &smk->mmap_tbl, smk->mmap_last, mmap_size); in decode_header_trees()
/third_party/alsa-lib/src/pcm/
Dpcm_shm.c90 size_t mmap_size, mmap_offset, offset; in snd_pcm_shm_new_rbptr() local
98 mmap_size = page_ptr(shm_rbptr->offset, sizeof(snd_pcm_uframes_t), &offset, &mmap_offset); in snd_pcm_shm_new_rbptr()
99 ptr = mmap(NULL, mmap_size, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED, fd, mmap_offset); in snd_pcm_shm_new_rbptr()
/third_party/libbpf/src/
Dlibbpf.c12763 perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size, argument
12776 ehdr = base + (data_tail & (mmap_size - 1));
12779 if (((void *)ehdr) + ehdr_size > base + mmap_size) {
12781 size_t len_first = base + mmap_size - copy_start;
12842 size_t mmap_size; member
12856 munmap(cpu_buf->base, pb->mmap_size + pb->page_size))
12915 cpu_buf->base = mmap(NULL, pb->mmap_size + pb->page_size,
13051 pb->mmap_size = pb->page_size * page_cnt;
13199 ret = perf_event_read_simple(cpu_buf->base, pb->mmap_size,
13272 *buf_size = pb->mmap_size;
/third_party/mesa3d/docs/relnotes/
D21.2.0.rst1337 - venus: fix dmabuf import mmap_size check
5207 - venus: fix mismatched bo mmap_size for export and multiple imports
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h43860 long unsigned int mmap_size; member