Lines Matching refs:sh
90 struct slab_head *sh;
91 for (sh = slabs->slabs; sh != NULL && sh->free == 0; sh = sh->next);
93 if (sh == NULL) {
103 for (sh = slabs->slabs; sh != NULL && sh->free == 0; sh = sh->next);
104 if (sh == NULL) {
111 struct block_head *bh = sh->blocks;
113 sh->blocks = bh->next;
114 sh->free--;
134 struct slab_head *sh;
136 for (sh = slabs->slabs; sh != NULL; sh = sh->next) {
138 uintptr_t slab_limit = (uintptr_t)sh + sizeof(struct slab_head)
139 + blocksize * sh->total;
140 if ((uintptr_t)bh > (uintptr_t)sh && (uintptr_t)bh < slab_limit) {
144 assert(sh != NULL);
147 bh->next = sh->blocks;
148 sh->blocks = bh;
149 sh->free++;
150 assert(sh->free <= sh->total);
164 for (struct slab_head *sh = slabs->slabs; sh != NULL; sh = sh->next) {
165 ret += sh->free;