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