Lines Matching refs:bdh
581 bdhead_t *bdh; in bget() local
588 bdh = BDH((*thr->acqfcn)((bufsize)size)); in bget()
589 if (bdh != NULL) { in bget()
592 bdh->bh.bb.bsize = 0; in bget()
595 TCW_PTR(bdh->bh.bb.bthr, th); // don't mark buffer as allocated, in bget()
597 bdh->bh.bb.prevfree = 0; in bget()
598 bdh->tsize = size; in bget()
604 buf = (void *)(bdh + 1); in bget()
712 bdhead_t *bdh; in brel() local
714 bdh = BDH(((char *)buf) - sizeof(bdhead_t)); in brel()
717 thr->totalloc -= (size_t)bdh->tsize; in brel()
722 (void)memset((char *)buf, 0x55, (size_t)(bdh->tsize - sizeof(bdhead_t))); in brel()
725 KE_TRACE(10, ("%%%%%% FREE( %p )\n", (void *)bdh)); in brel()
728 (*thr->relfcn)((void *)bdh); /* Release it directly. */ in brel()