Home
last modified time | relevance | path

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

/xnu-10002.1.13/bsd/skywalk/mem/
H A Dskmem_cache.c947 sl->sl_chunks = chunks = (uint32_t)(slabsize / objsize); in skmem_slab_create()
969 bc->bc_idx = (sl->sl_chunks - chunks); in skmem_slab_create()
1147 if ((skm->skm_sl_bufinuse += sl->sl_chunks) > in skmem_slab_alloc_locked()
1158 ASSERT(sl->sl_refcnt <= sl->sl_chunks); in skmem_slab_alloc_locked()
1205 ((sl->sl_seg->sg_index * sl->sl_chunks) + bc->bc_idx); in skmem_slab_alloc_locked()
1235 ASSERT(sl->sl_refcnt == sl->sl_chunks); in skmem_slab_alloc_locked()
1237 ASSERT(sl->sl_chunks == 1); in skmem_slab_alloc_locked()
1239 ASSERT(sl->sl_chunks > 1); in skmem_slab_alloc_locked()
1529 if (sl->sl_chunks == 1) { in skmem_slab_free_locked()
1538 ASSERT((int64_t)(skm->skm_sl_bufinuse - sl->sl_chunks) >= 0); in skmem_slab_free_locked()
[all …]
H A Dskmem_cache_var.h93 uint32_t sl_chunks; /* # of buffers in slab */ member
97 ((sl)->sl_refcnt > 0 && (sl)->sl_refcnt < (sl)->sl_chunks)
/xnu-10002.1.13/tools/lldbmacros/
H A Dmbufs.py374 …sl_next, obj, mca, int(ts), int(sl.sl_class), int(sl.sl_refcnt), int(sl.sl_chunks), int(sl.sl_len)…
387 if sl.sl_chunks > 1:
389 c = sl.sl_len // sl.sl_chunks
391 while z < sl.sl_chunks:
516 if sl.sl_chunks > 1:
518 c = sl.sl_len // sl.sl_chunks
520 while z < sl.sl_chunks:
/xnu-10002.1.13/bsd/kern/
H A Duipc_mbuf.c594 int8_t sl_chunks; /* chunks (bufs) in this slab */ member
2581 VERIFY(sp->sl_head != NULL || sp->sl_refcnt == sp->sl_chunks); in slab_alloc()
2605 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_alloc()
2613 VERIFY(sp->sl_refcnt >= 1 && sp->sl_chunks == NBCLPG && in slab_alloc()
2621 VERIFY(sp->sl_refcnt == 1 && sp->sl_chunks == 1 && in slab_alloc()
2636 nsp->sl_refcnt == 1 && nsp->sl_chunks == 0 && in slab_alloc()
2657 sp->sl_chunks == NMBPG && in slab_alloc()
2716 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_free()
2723 VERIFY(sp->sl_refcnt >= 0 && sp->sl_chunks == NBCLPG); in slab_free()
2734 VERIFY(sp->sl_refcnt == 0 && sp->sl_chunks == 1 && in slab_free()
[all …]