Searched refs:mem_avail (Results 1 – 2 of 2) sorted by relevance
77 u64 mem_base, mem_avail; in mthca_make_profile() local124 mem_avail = dev_lim->hca.arbel.max_icm_sz; in mthca_make_profile()127 mem_avail = dev->fw.tavor.fw_start - dev->ddr_start; in mthca_make_profile()147 if (total_size > mem_avail) { in mthca_make_profile()151 (unsigned long long) mem_avail); in mthca_make_profile()169 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile()170 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile()
79 static uint64_t mem_avail; variable99 mem_avail = strtoll(buf + 13, NULL, 0); in memory_limits()100 mem_avail <<= 10; /* Units are kB */ in memory_limits()111 mem_avail = 31ul << 30; /* 31GB free */ in memory_limits()112 commit_limit = mem_avail * 9 / 10; /* 90% comittable */ in memory_limits()117 (long long)mem_avail); in memory_limits()533 sz = MIN(sz, rounddown2(mem_avail * 45 / 100, SEGALIGN)); in get_phys_buffer()