Searched refs:exec_mem (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/mapi/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() 136 addr = exec_mem + head; in u_execmem_alloc()
|
/external/mesa3d/src/mesa/main/ |
D | execmem.c | 65 static unsigned char *exec_mem = NULL; variable 82 if (!exec_mem) in init_heap() 83 exec_mem = mmap(NULL, EXEC_HEAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_heap() 86 return (exec_mem != MAP_FAILED); in init_heap() 107 addr = exec_mem + block->ofs; in _mesa_exec_malloc() 124 struct mem_block *block = mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in _mesa_exec_free()
|
/external/mesa3d/src/gallium/auxiliary/rtasm/ |
D | rtasm_execmem.c | 68 static unsigned char *exec_mem = NULL; variable 77 if (!exec_mem) in init_heap() 78 exec_mem = (unsigned char *) mmap(0, EXEC_HEAP_SIZE, in init_heap() 100 addr = exec_mem + block->ofs; in rtasm_exec_malloc() 116 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in rtasm_exec_free()
|