Lines Matching refs:b_in
185 unsigned int b_in, b_out; /* Offsets into buffer - bytes */ member
300 offset = rp->b_in; in mon_buff_area_alloc()
302 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
303 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
326 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
332 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
335 mon_buff_area_fill(rp, rp->b_in, fill_size); in mon_buff_area_alloc_contiguous()
338 rp->b_in = size; in mon_buff_area_alloc_contiguous()
340 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
341 offset = rp->b_in; in mon_buff_area_alloc_contiguous()
342 rp->b_in = 0; in mon_buff_area_alloc_contiguous()
345 offset = rp->b_in; in mon_buff_area_alloc_contiguous()
346 rp->b_in += size; in mon_buff_area_alloc_contiguous()
361 if (rp->b_in < size) in mon_buff_area_shrink()
362 rp->b_in += rp->b_size; in mon_buff_area_shrink()
363 rp->b_in -= size; in mon_buff_area_shrink()
1039 rp->b_read = rp->b_in = rp->b_out = rp->b_cnt = 0; in mon_bin_ioctl()