Lines Matching defs:new
317 struct resource_i *r, *s, *t, *new;
327 * least part of the desired new range must overlap with the
372 * allocating a new resource. We can safely drop the lock and then
373 * insert a new range to handle the shrinking case afterwards.
398 * Handle the shrinking cases that require allocating a new
400 * if we still need this new region after acquiring the lock.
403 new = int_alloc_resource(M_WAITOK);
404 new->r_start = r->r_start;
405 new->r_end = start - 1;
406 new->r_rm = rm;
412 free(new, M_RMAN);
414 TAILQ_INSERT_BEFORE(r, new, r_link);
418 new = int_alloc_resource(M_WAITOK);
419 new->r_start = end + 1;
420 new->r_end = r->r_end;
421 new->r_rm = rm;
427 free(new, M_RMAN);
429 TAILQ_INSERT_AFTER(&rm->rm_list, r, new, r_link);
546 * two new allocations; the second requires but one.