Lines Matching refs:mp
1512 * Free each object in magazine mp to cp's slab layer, and free mp itself.
1515 umem_magazine_destroy(umem_cache_t *cp, umem_magazine_t *mp, int nrounds)
1522 void *buf = mp->mag_round[round];
1537 ASSERT(UMEM_MAGAZINE_VALID(cp, mp));
1538 _umem_cache_free(cp->cache_magtype->mt_cache, mp);
1547 umem_magazine_t *mp;
1560 if ((mp = mlp->ml_list) != NULL) {
1561 ASSERT(UMEM_MAGAZINE_VALID(cp, mp));
1562 mlp->ml_list = mp->mag_next;
1570 return (mp);
1577 umem_depot_free(umem_cache_t *cp, umem_maglist_t *mlp, umem_magazine_t *mp)
1580 ASSERT(UMEM_MAGAZINE_VALID(cp, mp));
1581 mp->mag_next = mlp->ml_list;
1582 mlp->ml_list = mp;
1608 umem_magazine_t *mp;
1613 while (reap-- && (mp = umem_depot_alloc(cp, &cp->cache_full)) != NULL)
1614 umem_magazine_destroy(cp, mp, cp->cache_magtype->mt_magsize);
1617 while (reap-- && (mp = umem_depot_alloc(cp, &cp->cache_empty)) != NULL)
1618 umem_magazine_destroy(cp, mp, 0);
1622 umem_cpu_reload(umem_cpu_cache_t *ccp, umem_magazine_t *mp, int rounds)
1630 ccp->cc_loaded = mp;
2055 umem_magazine_t *mp, *pmp;
2064 mp = ccp->cc_loaded;
2075 if (mp)
2076 umem_magazine_destroy(cp, mp, rounds);