Home
last modified time | relevance | path

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

/xnu-12377.41.6/bsd/skywalk/mem/
H A Dskmem_slab.c101 sl->sl_chunks = chunks = (uint32_t)(slabsize / objsize); in skmem_slab_create()
123 bc->bc_idx = (sl->sl_chunks - chunks); in skmem_slab_create()
311 if ((skm->skm_sl_bufinuse += sl->sl_chunks) > in skmem_slab_alloc_locked()
322 ASSERT(sl->sl_refcnt <= sl->sl_chunks); in skmem_slab_alloc_locked()
372 ((sl->sl_seg->sg_index * sl->sl_chunks) + bc->bc_idx); in skmem_slab_alloc_locked()
403 ASSERT(sl->sl_refcnt == sl->sl_chunks); in skmem_slab_alloc_locked()
405 ASSERT(sl->sl_chunks == 1); in skmem_slab_alloc_locked()
407 ASSERT(sl->sl_chunks > 1); in skmem_slab_alloc_locked()
669 if (sl->sl_chunks == 1) { in skmem_slab_free_locked()
678 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.c950 (sl->sl_seg->sg_index * sl->sl_chunks) + bc->bc_idx; in skmem_cache_get_obj_info()
/xnu-12377.41.6/tools/lldbmacros/
H A Dmbufs.py377 …sl_next, obj, mca, int(ts), int(sl.sl_class), int(sl.sl_refcnt), int(sl.sl_chunks), int(sl.sl_len)…
390 if sl.sl_chunks > 1:
392 c = sl.sl_len // sl.sl_chunks
394 while z < sl.sl_chunks:
519 if sl.sl_chunks > 1:
521 c = sl.sl_len // sl.sl_chunks
523 while z < sl.sl_chunks:
/xnu-12377.41.6/bsd/kern/
H A Duipc_mbuf_mcache.c432 int8_t sl_chunks; /* chunks (bufs) in this slab */ member
1285 VERIFY(sp->sl_head != NULL || sp->sl_refcnt == sp->sl_chunks); in slab_alloc()
1309 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_alloc()
1317 VERIFY(sp->sl_refcnt >= 1 && sp->sl_chunks == NBCLPG && in slab_alloc()
1325 VERIFY(sp->sl_refcnt == 1 && sp->sl_chunks == 1 && in slab_alloc()
1340 nsp->sl_refcnt == 1 && nsp->sl_chunks == 0 && in slab_alloc()
1361 sp->sl_chunks == NMBPG && in slab_alloc()
1419 sp->sl_chunks == NCLPG && sp->sl_len == PAGE_SIZE); in slab_free()
1426 VERIFY(sp->sl_refcnt >= 0 && sp->sl_chunks == NBCLPG); in slab_free()
1437 VERIFY(sp->sl_refcnt == 0 && sp->sl_chunks == 1 && in slab_free()
[all …]