Home
last modified time | relevance | path

Searched refs:total_ram (Results 1 – 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daio-stress.c1015 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,
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_device.c866 uint64_t total_ram = (uint64_t)info.totalram * info.mem_unit; in panvk_get_system_heap_size() local
872 if (total_ram <= 4ull * 1024 * 1024 * 1024) in panvk_get_system_heap_size()
873 available_ram = total_ram / 2; in panvk_get_system_heap_size()
875 available_ram = total_ram * 3 / 4; in panvk_get_system_heap_size()
/third_party/mesa3d/src/imagination/vulkan/
Dpvr_device.c288 uint64_t total_ram; in pvr_compute_heap_size() local
289 if (!os_get_total_physical_memory(&total_ram)) in pvr_compute_heap_size()
296 if (total_ram <= 4ULL * 1024ULL * 1024ULL * 1024ULL) in pvr_compute_heap_size()
297 available_ram = total_ram / 2U; in pvr_compute_heap_size()
299 available_ram = total_ram * 3U / 4U; in pvr_compute_heap_size()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_device.c337 uint64_t total_ram = (uint64_t)info.totalram * (uint64_t)info.mem_unit; in compute_heap_size() local
339 uint64_t total_ram = (uint64_t) v3d_simulator_get_mem_size(); in compute_heap_size()
346 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in compute_heap_size()
347 available_ram = total_ram / 2; in compute_heap_size()
349 available_ram = total_ram * 3 / 4; in compute_heap_size()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_device.c1397 uint64_t total_ram = (uint64_t) info.totalram * (uint64_t) info.mem_unit; in tu_get_system_heap_size() local
1403 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in tu_get_system_heap_size()
1404 available_ram = total_ram / 2; in tu_get_system_heap_size()
1406 available_ram = total_ram * 3 / 4; in tu_get_system_heap_size()
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c344 uint64_t total_ram) in anv_compute_sys_heap_size() argument
350 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in anv_compute_sys_heap_size()
351 available_ram = total_ram / 2; in anv_compute_sys_heap_size()
353 available_ram = total_ram * 3 / 4; in anv_compute_sys_heap_size()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_threaded_context.c4632 uint64_t total_ram; in threaded_context_init_bytes_mapped_limit() local
4633 if (os_get_total_physical_memory(&total_ram)) { in threaded_context_init_bytes_mapped_limit()
4634 tc->bytes_mapped_limit = total_ram / divisor; in threaded_context_init_bytes_mapped_limit()