Lines Matching refs:mem_affinity
76 struct mem_affinity __read_mostly *mem_affinity;
231 if (vm_ndomains == 1 || mem_affinity == NULL)
238 for (i = 0; mem_affinity[i].end != 0; i++)
239 if (mem_affinity[i].start <= high &&
240 mem_affinity[i].end >= low)
241 DOMAINSET_SET(mem_affinity[i].domain, &mask);
422 if (mem_affinity == NULL) {
428 if (mem_affinity[i].end == 0)
430 if (mem_affinity[i].end <= start)
432 if (mem_affinity[i].start > start)
435 if (mem_affinity[i].end >= end) {
437 mem_affinity[i].domain);
440 _vm_phys_create_seg(start, mem_affinity[i].end,
441 mem_affinity[i].domain);
442 start = mem_affinity[i].end;
622 vm_phys_register_domains(int ndomains, struct mem_affinity *affinity,
639 mem_affinity = affinity;
1625 * Search the mem_affinity array for the biggest address
1634 if (mem_affinity != NULL) {
1636 size = mem_affinity[i].end - mem_affinity[i].start;
1639 if (domain != -1 && mem_affinity[i].domain != domain)
1646 mem_start = mem_affinity[mem_index].start;
1647 mem_end = mem_affinity[mem_index].end;
1717 if (mem_affinity != NULL) {
1720 for (i = 0; mem_affinity[i].end != 0; i++) {
1721 idx = vm_phys_avail_find(mem_affinity[i].start);
1723 phys_avail[idx] != mem_affinity[i].start)
1724 vm_phys_avail_split(mem_affinity[i].start, idx);
1725 idx = vm_phys_avail_find(mem_affinity[i].end);
1727 phys_avail[idx] != mem_affinity[i].end)
1728 vm_phys_avail_split(mem_affinity[i].end, idx);