Lines Matching refs:newseg

4100 	lgrp_shm_policy_seg_t	*newseg;  in lgrp_shm_policy_split()  local
4117 newseg = kmem_alloc(sizeof (lgrp_shm_policy_seg_t), KM_SLEEP); in lgrp_shm_policy_split()
4118 newseg->shm_policy = seg->shm_policy; in lgrp_shm_policy_split()
4119 newseg->shm_off = off; in lgrp_shm_policy_split()
4120 newseg->shm_size = seg->shm_size - (off - seg->shm_off); in lgrp_shm_policy_split()
4127 avl_insert(tree, newseg, where); in lgrp_shm_policy_split()
4129 return (newseg); in lgrp_shm_policy_split()
4145 lgrp_shm_policy_seg_t *newseg; in lgrp_shm_policy_set() local
4246 newseg = kmem_alloc(sizeof (lgrp_shm_policy_seg_t), in lgrp_shm_policy_set()
4248 newseg->shm_policy.mem_policy = policy; in lgrp_shm_policy_set()
4249 newseg->shm_policy.mem_lgrpid = LGRP_NONE; in lgrp_shm_policy_set()
4250 newseg->shm_off = off; in lgrp_shm_policy_set()
4251 avl_insert(tree, newseg, where); in lgrp_shm_policy_set()
4258 seg = AVL_NEXT(tree, newseg); in lgrp_shm_policy_set()
4260 newseg->shm_size = len; in lgrp_shm_policy_set()
4263 newseg->shm_size = seg->shm_off - off; in lgrp_shm_policy_set()
4265 len -= newseg->shm_size; in lgrp_shm_policy_set()
4274 prev = AVL_PREV(tree, newseg); in lgrp_shm_policy_set()
4275 next = AVL_NEXT(tree, newseg); in lgrp_shm_policy_set()
4276 (void) lgrp_shm_policy_concat(tree, newseg, next); in lgrp_shm_policy_set()
4277 (void) lgrp_shm_policy_concat(tree, prev, newseg); in lgrp_shm_policy_set()
4334 newseg = NULL; in lgrp_shm_policy_set()
4336 newseg = lgrp_shm_policy_split(tree, seg, off); in lgrp_shm_policy_set()
4343 newseg->shm_policy.mem_policy = policy; in lgrp_shm_policy_set()
4344 newseg->shm_policy.mem_lgrpid = in lgrp_shm_policy_set()
4347 newseg, AVL_NEXT(tree, newseg)); in lgrp_shm_policy_set()
4357 if (newseg) { in lgrp_shm_policy_set()
4359 newseg, eoff); in lgrp_shm_policy_set()
4360 newseg->shm_policy.mem_policy = policy; in lgrp_shm_policy_set()
4361 newseg->shm_policy.mem_lgrpid = in lgrp_shm_policy_set()