Lines Matching refs:bhead

507 struct bhead {  struct
514 #define BH(p) ((struct bhead *) (p)) argument
521 struct bhead bh; /* Common header */
528 struct bhead bh; /* Common allocated/free header */
593 buf = (unsigned long)bf + bf->bh.bsize - size + sizeof(struct bhead) + in buf_get_pos()
596 pos = buf - (unsigned long)bf - sizeof(struct bhead) - hdr_size; in buf_get_pos()
600 if (pos >= SizeQ + sizeof(struct bhead)) /* room for an empty buffer */ in buf_get_pos()
693 if (ADD_OVERFLOW(size, sizeof(struct bhead), &size))
732 struct bhead *b_alloc = BH((char *)b + pos);
733 struct bhead *b_next = BH((char *)b + b->bh.bsize);
775 if (-b_alloc->bsize - size > SizeQ + sizeof(struct bhead)) {
804 buf = (char *)b_alloc + sizeof(struct bhead);
832 size += sizeof(struct bdhead) - sizeof(struct bhead);
901 struct bhead *b;
904 b = BH(buf - sizeof(struct bhead));
912 rsize -= sizeof(struct bhead);
934 struct bhead *b;
942 b = BH(((char *) buf) - sizeof(struct bhead));
953 osize -= sizeof(struct bhead);
980 b = BFH(((char *) buf) - sizeof(struct bhead));
1121 ((bufsize) b->bh.bsize) == (pool_len - sizeof(struct bhead))) {
1166 struct bhead *bn;
1188 assert(len - sizeof(struct bhead) <= -((bufsize) ESent + 1));
1213 len -= sizeof(struct bhead);
1286 b = BFH(((char *) buf) - sizeof(struct bhead));
1290 bdlen = (-b->bh.bsize) - sizeof(struct bhead);
1353 bufdump((void *) (((char *) b) + sizeof(struct bhead)));
1372 bufdump((void *) (((char *) b) + sizeof(struct bhead)));
1376 bufdump((void *) (((char *) b) + sizeof(struct bhead)));
1420 bufdump((void *) (((char *) b) + sizeof(struct bhead)));