Lines Matching defs:btp
179 mcache_bkttype_t *btp;
198 for (i = 0; i < sizeof (mcache_bkttype) / sizeof (*btp); i++) {
199 btp = &mcache_bkttype[i];
201 btp->bt_bktsize);
202 btp->bt_cache = mcache_create(name,
203 (btp->bt_bktsize + 1) * sizeof (void *), 0, 0, MCR_SLEEP);
262 mcache_bkttype_t *btp;
368 for (btp = mcache_bkttype; chunksize <= btp->bt_minbuf; btp++)
371 cp->cache_bkttype = btp;
407 arg, bufsize, cp->mc_align, chunksize, btp->bt_bktsize);
677 mcache_bkttype_t *btp;
740 bkt = mcache_bkt_alloc(cp, &cp->mc_empty, &btp);
757 bkt = mcache_alloc(btp->bt_cache, MCR_NOSLEEP);
766 if (ccp->cc_bktsize != btp->bt_bktsize) {
768 mcache_free(btp->bt_cache, bkt);
1039 mcache_bkt_alloc(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkttype_t **btp)
1060 if (btp != NULL)
1061 *btp = cp->cache_bkttype;
1111 mcache_bkttype_t *btp;
1119 btp = cp->cache_bkttype;
1133 mcache_bkt_destroy(cp, btp, bp, objs);
1135 mcache_bkt_destroy(cp, btp, pbp, pobjs);
1153 mcache_bkt_destroy(mcache_t *cp, mcache_bkttype_t *btp, mcache_bkt_t *bkt,
1184 mcache_free(btp->bt_cache, bkt);
1211 mcache_bkttype_t *btp;
1215 (bkt = mcache_bkt_alloc(cp, &cp->mc_full, &btp)) != NULL)
1216 mcache_bkt_destroy(cp, btp, bkt, btp->bt_bktsize);
1220 (bkt = mcache_bkt_alloc(cp, &cp->mc_empty, &btp)) != NULL)
1221 mcache_bkt_destroy(cp, btp, bkt, 0);
1324 mcache_bkttype_t *btp = cp->cache_bkttype;
1326 if ((unsigned int)cp->mc_chunksize < btp->bt_maxbuf) {
1335 cp->cache_bkttype = ++btp;