Lines Matching refs:bkt
352 (void) snprintf(lck_name, sizeof (lck_name), "%s.bkt", cp->mc_name);
425 mcache_bkt_t *bkt;
499 bkt = mcache_bkt_alloc(cp, &cp->mc_full, NULL);
500 if (bkt != NULL) {
504 mcache_cpu_refill(ccp, bkt, ccp->cc_bktsize);
679 mcache_bkt_t *bkt;
740 bkt = mcache_bkt_alloc(cp, &cp->mc_empty, &btp);
741 if (bkt != NULL) {
745 mcache_cpu_refill(ccp, bkt, 0);
757 bkt = mcache_alloc(btp->bt_cache, MCR_NOSLEEP);
760 if (bkt != NULL) {
768 mcache_free(btp->bt_cache, bkt);
777 mcache_bkt_free(cp, &cp->mc_empty, bkt);
1020 * Refill the CPU's filled bucket with bkt and save the previous one.
1023 mcache_cpu_refill(mcache_cpu_t *ccp, mcache_bkt_t *bkt, int objs)
1031 ccp->cc_filled = bkt;
1041 mcache_bkt_t *bkt;
1053 if ((bkt = blp->bl_list) != NULL) {
1054 blp->bl_list = bkt->bkt_next;
1065 return (bkt);
1072 mcache_bkt_free(mcache_t *cp, mcache_bktlist_t *blp, mcache_bkt_t *bkt)
1076 bkt->bkt_next = blp->bl_list;
1077 blp->bl_list = bkt;
1153 mcache_bkt_destroy(mcache_t *cp, mcache_bkttype_t *btp, mcache_bkt_t *bkt,
1157 mcache_obj_t *top = bkt->bkt_obj[nobjs - 1];
1174 "list in bkt %p (nobjs %d actual %d)\n",
1175 cp->mc_name, (void *)cp, (void *)bkt,
1184 mcache_free(btp->bt_cache, bkt);
1210 mcache_bkt_t *bkt;
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);