Lines Matching refs:b_cnt
185 spinlock_t b_lock; /* Protect b_cnt, b_in */
187 unsigned int b_cnt; /* Bytes used */
210 #define MON_RING_EMPTY(rp) ((rp)->b_cnt == 0)
301 if (rp->b_cnt + size > rp->b_size)
304 rp->b_cnt += size;
327 if (rp->b_cnt + size > rp->b_size)
336 if (rp->b_cnt + size + fill_size > rp->b_size)
342 rp->b_cnt += size + fill_size;
346 rp->b_cnt += size;
350 rp->b_cnt += size;
363 rp->b_cnt -= size;
371 * it accesses both b_cnt and b_out.
377 rp->b_cnt -= size;
917 avail = rp->b_cnt;
961 avail = rp->b_cnt;
1051 rp->b_read = rp->b_in = rp->b_out = rp->b_cnt = 0;