Lines Matching refs:found

660 	struct memlist *found;  in ndata_alloc()  local
670 if ((found = ndata_select_chunk(ndata, wanted, alignment)) == NULL) in ndata_alloc()
676 base = roundup(found->ml_address, alignment); in ndata_alloc()
678 ASSERT(end <= found->ml_address + found->ml_size); in ndata_alloc()
680 below = base - found->ml_address; in ndata_alloc()
681 above = found->ml_address + found->ml_size - end; in ndata_alloc()
688 found->ml_size = below - below % ecache_alignsize; in ndata_alloc()
695 if ((fnd_above->ml_next = found->ml_next) != NULL) in ndata_alloc()
696 found->ml_next->ml_prev = fnd_above; in ndata_alloc()
697 fnd_above->ml_prev = found; in ndata_alloc()
698 found->ml_next = fnd_above; in ndata_alloc()
704 if (found->ml_prev == NULL) { in ndata_alloc()
708 ASSERT(found == ndata); in ndata_alloc()
710 found->ml_address = end; in ndata_alloc()
711 found->ml_size = above; in ndata_alloc()
712 } else if (found->ml_next != NULL) { in ndata_alloc()
713 found->ml_address = found->ml_next->ml_address; in ndata_alloc()
714 found->ml_size = found->ml_next->ml_size; in ndata_alloc()
715 if ((found->ml_next = found->ml_next->ml_next) != NULL) in ndata_alloc()
716 found->ml_next->ml_prev = found; in ndata_alloc()
718 bzero((void *)found->ml_address, in ndata_alloc()
721 found->ml_address = end; in ndata_alloc()
722 found->ml_size = 0; in ndata_alloc()
736 if ((fnd_above->ml_next = found->ml_next) != NULL) in ndata_alloc()
738 fnd_above->ml_prev = found->ml_prev; in ndata_alloc()
739 found->ml_prev->ml_next = fnd_above; in ndata_alloc()
742 if ((found->ml_prev->ml_next = found->ml_next) != NULL) in ndata_alloc()
743 found->ml_next->ml_prev = found->ml_prev; in ndata_alloc()
746 bzero((void *)found->ml_address, sizeof (struct memlist)); in ndata_alloc()