Lines Matching refs:b_size
151 unsigned int b_size; /* Current size of the buffer - bytes */ member
216 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
249 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
267 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc()
271 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
272 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
293 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
295 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
301 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
302 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
309 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
331 rp->b_in += rp->b_size; in mon_buff_area_shrink()
344 if ((rp->b_out += size) >= rp->b_size) in mon_buff_area_free()
345 rp->b_out -= rp->b_size; in mon_buff_area_free()
414 if (length >= rp->b_size/5) in mon_bin_event()
415 length = rp->b_size/5; in mon_bin_event()
443 if ((offset += PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_event()
555 rp->b_size = BUFF_DFL; in mon_bin_open()
557 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
563 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
618 if ((offset = rp->b_out + PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_get_event()
648 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
697 if (offset >= rp->b_size) in mon_bin_read()
698 offset -= rp->b_size; in mon_bin_read()
791 if ((cur_out += size) >= rp->b_size) in mon_bin_fetch()
792 cur_out -= rp->b_size; in mon_bin_fetch()
828 if ((cur_out += size) >= rp->b_size) in mon_bin_queued()
829 cur_out -= rp->b_size; in mon_bin_queued()
863 ret = rp->b_size; in mon_bin_ioctl()
898 rp->b_size = size; in mon_bin_ioctl()
1088 if (offset >= rp->b_size) in mon_bin_vma_fault()