Lines Matching defs:candidate
115 long candidate, limit, candidateidx, end, idx;
142 candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi) +
153 if (candidate + num > limit) {
166 candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi)), alignment);
173 ((candidate ^ (candidate + num - 1)) & pagemask) != 0) {
178 candidate = (candidate + num - 1) & pagemask;
179 candidate = roundup2(candidate, alignment);
188 if (uvm_physseg_find(candidate, &cidx) != psi)
190 if (cidx != candidate - uvm_physseg_get_start(psi))
192 if (uvm_physseg_find(candidate + num - 1, &cidx) != psi)
194 if (cidx != candidate - uvm_physseg_get_start(psi) + num - 1)
197 candidateidx = candidate - uvm_physseg_get_start(psi);
204 printf("%s: psi=%d candidate=%#lx end=%#lx skip=%#x, align=%#"PRIxPADDR,
270 candidate += cnt;
283 uvm_physseg_set_start_hint(psi, candidate + num -
288 candidate + num,
528 long limit, candidate;
551 candidate = ulmax(low, uvm_physseg_get_avail_start(psi) +
554 pg = uvm_physseg_get_pg(psi, candidate - uvm_physseg_get_start(psi));
558 for (;; candidate++, pg++) {
559 if (candidate >= limit) {
561 candidate = limit - 1;
565 candidate = ulmax(low, uvm_physseg_get_avail_start(psi));
568 pg = uvm_physseg_get_pg(psi, candidate - uvm_physseg_get_start(psi));
574 const uvm_physseg_t bank = uvm_physseg_find(candidate, &cidx);
577 candidate, bank, psi);
578 KDASSERTMSG(cidx == candidate - uvm_physseg_get_start(psi),
580 candidate, cidx, (paddr_t)candidate - uvm_physseg_get_start(psi));
596 uvm_physseg_set_start_hint(psi, candidate + 1 - uvm_physseg_get_avail_start(psi));
600 candidate + 1,