Lines Matching refs:pos
583 bufsize pos = 0; in buf_get_pos() local
595 pos = buf - (unsigned long)bf - sizeof(struct bhead) - hdr_size; in buf_get_pos()
597 if (pos == 0) /* exact match */ in buf_get_pos()
598 return pos; in buf_get_pos()
599 if (pos >= SizeQ + sizeof(struct bhead)) /* room for an empty buffer */ in buf_get_pos()
600 return pos; in buf_get_pos()
615 bufsize pos; local
672 pos = buf_get_pos(b, align, hdr_size, size);
673 if (pos >= 0) {
685 pos = buf_get_pos(b, align, hdr_size, size);
686 if (pos >= 0) {
687 struct bhead *b_alloc = BH((char *)b + pos);
701 if (pos == 0) {
716 b_alloc->bsize = -(b->bh.bsize - pos);
717 b_alloc->prevfree = pos;
718 b->bh.bsize = pos;