Lines Matching defs:slabs
90 * slabs of *n_buffers_per_slab*. Initially, there are *n_slabs* slabs in the
91 * pool that are completely filled with buffer pointers (full slabs).
94 * free, with both of these slabs initially empty. When the cache's allocation
95 * slab goes empty, it is swapped with one of the available full slabs from the
97 * swapped for one of the empty slabs from the pool, which is guaranteed to
100 * Partially filled slabs never get traded between the cache and the pool
109 u64 **slabs;
170 bp->slabs = (u64 **)&p[sizeof(struct bpool)];
183 bp->slabs[i] = &bp->buffers[i * params->n_buffers_per_slab];
348 slab_full = bp->slabs[n_slabs_available];
349 bp->slabs[n_slabs_available] = bc->slab_cons;
396 slab_empty = bp->slabs[n_slabs_available];
397 bp->slabs[n_slabs_available] = bc->slab_prod;