Lines Matching refs:b_in
188 unsigned int b_in, b_out; /* Offsets into buffer - bytes */ member
303 offset = rp->b_in; in mon_buff_area_alloc()
305 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
306 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
329 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
335 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
338 mon_buff_area_fill(rp, rp->b_in, fill_size); in mon_buff_area_alloc_contiguous()
341 rp->b_in = size; in mon_buff_area_alloc_contiguous()
343 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
344 offset = rp->b_in; in mon_buff_area_alloc_contiguous()
345 rp->b_in = 0; in mon_buff_area_alloc_contiguous()
348 offset = rp->b_in; in mon_buff_area_alloc_contiguous()
349 rp->b_in += size; in mon_buff_area_alloc_contiguous()
364 if (rp->b_in < size) in mon_buff_area_shrink()
365 rp->b_in += rp->b_size; in mon_buff_area_shrink()
366 rp->b_in -= size; in mon_buff_area_shrink()
1051 rp->b_read = rp->b_in = rp->b_out = rp->b_cnt = 0; in mon_bin_ioctl()