Lines Matching refs:pos
584 bufsize pos = 0; in buf_get_pos() local
596 pos = buf - (unsigned long)bf - sizeof(struct bhead) - hdr_size; in buf_get_pos()
598 if (pos == 0) /* exact match */ in buf_get_pos()
599 return pos; in buf_get_pos()
600 if (pos >= SizeQ + sizeof(struct bhead)) /* room for an empty buffer */ in buf_get_pos()
601 return pos; in buf_get_pos()
660 bufsize pos; local
717 pos = buf_get_pos(b, align, hdr_size, size);
718 if (pos >= 0) {
730 pos = buf_get_pos(b, align, hdr_size, size);
731 if (pos >= 0) {
732 struct bhead *b_alloc = BH((char *)b + pos);
735 bufsize add_sz = pos;
748 if (pos == 0) {
763 b_alloc->bsize = -(b->bh.bsize - pos);
764 b_alloc->prevfree = pos;
765 b->bh.bsize = pos;