Searched refs:exec_mem (Results 1 – 3 of 3) sorted by relevance
/third_party/mesa3d/src/mapi/ |
D | u_execmem.c | 46 static unsigned char *exec_mem = (unsigned char *)0; variable 80 if (!exec_mem) in init_map() 81 exec_mem = mmap(NULL, EXEC_MAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_map() 84 return (exec_mem != MAP_FAILED); in init_map() 100 exec_mem = VirtualAlloc(NULL, EXEC_MAP_SIZE, MEM_COMMIT, PAGE_EXECUTE_READWRITE); in init_map() 102 return (exec_mem != NULL); in init_map() 113 exec_mem = malloc(EXEC_MAP_SIZE); in init_map() 115 return (exec_mem != NULL); in init_map() 140 addr = exec_mem + head; in u_execmem_alloc()
|
/third_party/mesa3d/src/mesa/main/ |
D | execmem.c | 66 static unsigned char *exec_mem = NULL; variable 83 if (!exec_mem) in init_heap() 84 exec_mem = mmap(NULL, EXEC_HEAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_heap() 87 return (exec_mem != MAP_FAILED); in init_heap() 108 addr = exec_mem + block->ofs; in _mesa_exec_malloc() 125 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in _mesa_exec_free()
|
/third_party/mesa3d/src/gallium/auxiliary/rtasm/ |
D | rtasm_execmem.c | 69 static unsigned char *exec_mem = NULL; variable 78 if (!exec_mem) in init_heap() 79 exec_mem = (unsigned char *) mmap(0, EXEC_HEAP_SIZE, in init_heap() 83 return (exec_mem != MAP_FAILED); in init_heap() 104 addr = exec_mem + block->ofs; in rtasm_exec_malloc() 121 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in rtasm_exec_free()
|