Home
last modified time | relevance | path

Searched refs:sl_chunks (Results 1 – 5 of 5) sorted by relevance

/xnu-11417.121.6/bsd/skywalk/mem/
H A Dskmem_slab.c100 sl->sl_chunks = chunks = (uint32_t)(slabsize / objsize); in skmem_slab_create()
122 bc->bc_idx = (sl->sl_chunks - chunks); in skmem_slab_create()
310 if ((skm->skm_sl_bufinuse += sl->sl_chunks) > in skmem_slab_alloc_locked()
321 ASSERT(sl->sl_refcnt <= sl->sl_chunks); in skmem_slab_alloc_locked()
371 ((sl->sl_seg->sg_index * sl->sl_chunks) + bc->bc_idx); in skmem_slab_alloc_locked()
402 ASSERT(sl->sl_refcnt == sl->sl_chunks); in skmem_slab_alloc_locked()
404 ASSERT(sl->sl_chunks == 1); in skmem_slab_alloc_locked()
406 ASSERT(sl->sl_chunks > 1); in skmem_slab_alloc_locked()
668 if (sl->sl_chunks == 1) { in skmem_slab_free_locked()
677 ASSERT((int64_t)(skm->skm_sl_bufinuse - sl->sl_chunks) >= 0); in skmem_slab_free_locked()
[all …]
H A Dskmem_cache_var.h102 uint32_t sl_chunks; /* # of buffers in slab */ member
106 ((sl)->sl_refcnt > 0 && (sl)->sl_refcnt < (sl)->sl_chunks)
H A Dskmem_cache.c949 (sl->sl_seg->sg_index * sl->sl_chunks) + bc->bc_idx; in skmem_cache_get_obj_info()
/xnu-11417.121.6/tools/lldbmacros/
H A Dmbufs.py378 …sl_next, obj, mca, int(ts), int(sl.sl_class), int(sl.sl_refcnt), int(sl.sl_chunks), int(sl.sl_len)…
391 if sl.sl_chunks > 1:
393 c = sl.sl_len // sl.sl_chunks
395 while z < sl.sl_chunks:
520 if sl.sl_chunks > 1:
522 c = sl.sl_len // sl.sl_chunks
524 while z < sl.sl_chunks:
/xnu-11417.121.6/bsd/kern/
H A Duipc_mbuf.c601 int8_t sl_chunks; /* chunks (bufs) in this slab */ member
2589 VERIFY(sp->sl_head != NULL || sp->sl_refcnt == sp->sl_chunks); in slab_alloc()
2613 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_alloc()
2621 VERIFY(sp->sl_refcnt >= 1 && sp->sl_chunks == NBCLPG && in slab_alloc()
2629 VERIFY(sp->sl_refcnt == 1 && sp->sl_chunks == 1 && in slab_alloc()
2644 nsp->sl_refcnt == 1 && nsp->sl_chunks == 0 && in slab_alloc()
2665 sp->sl_chunks == NMBPG && in slab_alloc()
2724 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_free()
2731 VERIFY(sp->sl_refcnt >= 0 && sp->sl_chunks == NBCLPG); in slab_free()
2742 VERIFY(sp->sl_refcnt == 0 && sp->sl_chunks == 1 && in slab_free()
[all …]