Searched refs:total_ram (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aio-stress.c | 1015 size_t total_ram; local 1019 total_ram = num_files * depth * padded_reclen + num_threads; 1021 total_ram += padded_reclen; 1024 total_ram += page_size_mask; 1027 p = malloc(total_ram); 1029 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700); 1053 ftruncate(fd, total_ram); 1055 p = mmap((char *)0x50000000, total_ram,
|
/external/autotest/client/tests/aiostress/ |
D | aio-stress.c | 998 size_t total_ram; local 1002 total_ram = num_files * depth * padded_reclen + num_threads; 1004 total_ram += padded_reclen; 1007 p = malloc(total_ram + page_size_mask); 1009 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700); 1033 ftruncate(fd, total_ram); 1035 p = mmap((char *)0x50000000, total_ram,
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_userptr_blits.c | 1808 uint64_t total_ram; variable 1844 total_ram = intel_get_total_ram_mb(); 1845 igt_info("Total RAM is %'llu MiB\n", (long long)total_ram); 1847 if (count > total_ram * 3 / 4) { 1947 if (count > total_ram * 3 / 4) 1978 if (count > total_ram * 3 / 4) 2065 if (count > total_ram * 3 / 4)
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_device.c | 314 uint64_t total_ram = (uint64_t)info.totalram * (uint64_t)info.mem_unit; in compute_heap_size() local 316 uint64_t total_ram = (uint64_t) v3d_simulator_get_mem_size(); in compute_heap_size() 323 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in compute_heap_size() 324 available_ram = total_ram / 2; in compute_heap_size() 326 available_ram = total_ram * 3 / 4; in compute_heap_size()
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_device.c | 895 uint64_t total_ram = (uint64_t) info.totalram * (uint64_t) info.mem_unit; in tu_get_system_heap_size() local 901 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in tu_get_system_heap_size() 902 available_ram = total_ram / 2; in tu_get_system_heap_size() 904 available_ram = total_ram * 3 / 4; in tu_get_system_heap_size()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_pipe.c | 756 uint64_t total_ram; in si_pipe_create_context() local 782 if (tc && tc != ctx && os_get_total_physical_memory(&total_ram)) { in si_pipe_create_context() 783 ((struct threaded_context *) tc)->bytes_mapped_limit = total_ram / 4; in si_pipe_create_context()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_device.c | 115 uint64_t total_ram; in anv_compute_heap_size() local 116 if (!os_get_total_physical_memory(&total_ram)) in anv_compute_heap_size() 123 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in anv_compute_heap_size() 124 available_ram = total_ram / 2; in anv_compute_heap_size() 126 available_ram = total_ram * 3 / 4; in anv_compute_heap_size()
|