Searched refs:total_ram (Results 1 – 7 of 7) sorted by relevance
1015 size_t total_ram; local1019 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,
866 uint64_t total_ram = (uint64_t)info.totalram * info.mem_unit; in panvk_get_system_heap_size() local872 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()
288 uint64_t total_ram; in pvr_compute_heap_size() local289 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()
337 uint64_t total_ram = (uint64_t)info.totalram * (uint64_t)info.mem_unit; in compute_heap_size() local339 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()
1397 uint64_t total_ram = (uint64_t) info.totalram * (uint64_t) info.mem_unit; in tu_get_system_heap_size() local1403 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()
344 uint64_t total_ram) in anv_compute_sys_heap_size() argument350 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()
4632 uint64_t total_ram; in threaded_context_init_bytes_mapped_limit() local4633 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()