Lines Matching refs:endaddr
1176 * Adds the address range [addr, endaddr) to arena vmp, by either:
1177 * 1. joining two existing spans, [x, addr), and [endaddr, y) (which
1179 * 2. expanding an existing [x, addr) span to [x, endaddr),
1180 * 3. expanding an existing [endaddr, x) span to [addr, x), or
1181 * 4. creating a new [addr, endaddr) span.
1191 vmem_extend_unlocked(vmem_t *vmp, uintptr_t addr, uintptr_t endaddr)
1204 if (span->vs_end == addr || span->vs_start == endaddr)
1209 return (vmem_span_create(vmp, (void *)addr, endaddr - addr, 0));
1210 if (span->vs_kprev->vs_end == addr && span->vs_start == endaddr) {
1222 * [addr, endaddr).
1233 nextseg->vs_start == endaddr);
1254 prevseg->vs_end = endaddr;
1261 ASSERT(nextseg->vs_start == endaddr);
1276 span->vs_end = endaddr;
1282 span->vs_end = endaddr;
1288 oldseg->vs_end = endaddr;
1291 vsp = vmem_seg_create(vmp, oldseg, addr, endaddr);
1294 ASSERT(span->vs_start == endaddr);
1299 ASSERT(oldseg->vs_start == endaddr);
1304 vsp = vmem_seg_create(vmp, span, addr, endaddr);
1307 vmp->vm_kstat.vk_mem_total += (endaddr - addr);
1321 uintptr_t endaddr = addr + size;
1324 ASSERT(vaddr != NULL && size != 0 && endaddr > addr);
1341 vsp = vmem_extend_unlocked(vmp, addr, endaddr);