Lines Matching refs:mb
106 struct mbucket **mb; in m_get() local
121 mb = M_BUCKET(m_len); in m_get()
124 if (*mb) { in m_get()
126 bp = &(*mb)->u.m; in m_get()
127 if (--(*mb)->u.f.count == 0) in m_get()
128 *mb = (*mb)->u.f.next; in m_get()
130 ((struct mbucket *)((char *)*mb + size))->u.f.count = (*mb)->u.f.count; in m_get()
131 *mb = (struct mbucket *)((char *)*mb + size); in m_get()
132 (*mb)->u.f.next = NULL; in m_get()
139 *mb = (struct mbucket *)malloc(BUCKET_CHUNK * size); in m_get()
140 if (*mb == NULL) { in m_get()
145 bp = &(*mb)->u.m; in m_get()
146 *mb = (struct mbucket *)((char *)*mb + size); in m_get()
147 (*mb)->u.f.count = BUCKET_CHUNK - 1; in m_get()
148 (*mb)->u.f.next = NULL; in m_get()
167 struct mbucket **mb, *f; in m_free() local
175 mb = M_BUCKET(bp->m_size); in m_free()
176 f->u.f.next = *mb; in m_free()
178 *mb = f; in m_free()