Lines Matching refs:ofs
32 unsigned int ofs;
46 static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve)
50 pp->ofs = ofs;
56 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) {
61 pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs &7)));
64 pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs &7)));
66 pp->ofs++;
73 return pp->ofs;
80 bit = (pp->buf[pp->ofs >> 3] >> (7-(pp->ofs & 7))) & 1;
82 pp->ofs++;
88 return pp->ofs;