Searched refs:mem_fd (Results 1 - 7 of 7) sorted by relevance
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | os_memory_fd.c | 105 int mem_fd; local in function:os_malloc_aligned_fd 122 mem_fd = os_create_anonymous_file(alloc_size, fd_name); 124 if(mem_fd < 0) 129 if (fcntl(mem_fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_SEAL) != 0) 133 ptr = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, 0); 158 *fd = mem_fd; 162 close(mem_fd);
|
| /xsrc/external/mit/MesaLib.old/dist/src/intel/tools/ |
| H A D | aub_mem.c | 158 MAYBE_UNUSED int ftruncate_res = ftruncate(mem->mem_fd, mem->mem_fd_len += 4096); 162 mem->mem_fd, new_mem->fd_offset); 294 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); 360 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); 376 mem->mem_fd = memfd_create("phys memory", 0); 378 return mem->mem_fd != -1; 384 if (mem->mem_fd == -1) 399 close(mem->mem_fd); 400 mem->mem_fd = -1;
|
| H A D | aub_mem.h | 43 int mem_fd; member in struct:aub_mem
|
| /xsrc/external/mit/MesaLib/dist/src/intel/tools/ |
| H A D | aub_mem.c | 167 ASSERTED int ftruncate_res = ftruncate(mem->mem_fd, mem->mem_fd_len += 4096); 171 mem->mem_fd, new_mem->fd_offset); 302 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); 367 MAP_SHARED | MAP_FIXED, mem->mem_fd, phys_mem->fd_offset); 383 mem->mem_fd = os_create_anonymous_file(0, "phys memory"); 385 return mem->mem_fd != -1; 391 if (mem->mem_fd == -1) 406 close(mem->mem_fd); 407 mem->mem_fd = -1;
|
| H A D | aub_mem.h | 43 int mem_fd; member in struct:aub_mem
|
| /xsrc/external/mit/MesaLib/dist/src/drm-shim/ |
| H A D | device.c | 87 shim_device.mem_fd = memfd_create("shim mem", MFD_CLOEXEC); 88 assert(shim_device.mem_fd != -1); 90 ASSERTED int ret = ftruncate(shim_device.mem_fd, SHIM_MEM_SIZE); 383 return mmap(NULL, length, prot, flags, shim_device.mem_fd, bo->mem_addr);
|
| H A D | drm_shim.h | 48 int mem_fd; member in struct:shim_device
|
Completed in 8 milliseconds