Lines Matching refs:hdr_size

579 static bufsize buf_get_pos(struct bfhead *bf, bufsize align, bufsize hdr_size,  in buf_get_pos()  argument
593 hdr_size; in buf_get_pos()
595 pos = buf - (unsigned long)bf - sizeof(struct bhead) - hdr_size; in buf_get_pos()
607 void *bget(requested_align, hdr_size, requested_size, poolset) in bget() argument
609 bufsize hdr_size;
630 if (hdr_size % BGET_HDR_QUANTUM != 0)
650 if (ADD_OVERFLOW(size, hdr_size, &size))
672 pos = buf_get_pos(b, align, hdr_size, size);
685 pos = buf_get_pos(b, align, hdr_size, size);
797 tp += sizeof(*bdh) + hdr_size + align;
799 tp -= hdr_size;
827 buf = bget(align, hdr_size, requested_size, pool); /* This can't, I say, can't
845 void *bgetz(align, hdr_size, size, poolset) in bgetz() argument
847 bufsize hdr_size;
851 char *buf = (char *) bget(align, hdr_size, size, poolset);
878 void *bgetr(buf, align, hdr_size, size, poolset) in bgetr() argument
881 bufsize hdr_size;
889 if ((nbuf = bget(align, hdr_size, size, poolset)) == NULL) { /* Acquire new buffer */
1622 bufsize hdr_size = 0; in bget_main_test() local
1638 hdr_size = (rand() & 0x3) * BGET_HDR_QUANTUM; in bget_main_test()
1643 cb = (char *) bgetz(align, hdr_size, bs, &mypoolset); in bget_main_test()
1645 cb = (char *) bget(align, hdr_size, bs, &mypoolset); in bget_main_test()
1665 assert(!align || !(((unsigned long)cb + hdr_size) & (align - 1))); in bget_main_test()
1718 newb = (char *) bgetr((void *) fb, align, hdr_size, bs, &mypoolset); in bget_main_test()
1723 assert(!align || !(((unsigned long)newb + hdr_size) & in bget_main_test()