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)
304 if (rp->b_cnt + size > rp->b_size)
307 rp->b_cnt += size;
330 if (rp->b_cnt + size > rp->b_size)
339 if (rp->b_cnt + size + fill_size > rp->b_size)
345 rp->b_cnt += size + fill_size;
349 rp->b_cnt += size;
353 rp->b_cnt += size;
366 rp->b_cnt -= size;
374 * it accesses both b_cnt and b_out.
380 rp->b_cnt -= size;
920 avail = rp->b_cnt;
964 avail = rp->b_cnt;
1054 rp->b_read = rp->b_in = rp->b_out = rp->b_cnt = 0;