Lines Matching refs:b_size
186 unsigned int b_size; /* Current size of the buffer - bytes */ member
250 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
283 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
301 if (rp->b_cnt + size > rp->b_size) 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()
327 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
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()
336 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
343 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
365 rp->b_in += rp->b_size; in mon_buff_area_shrink()
378 if ((rp->b_out += size) >= rp->b_size) in mon_buff_area_free()
379 rp->b_out -= rp->b_size; in mon_buff_area_free()
479 if ((offset += sizeof(struct mon_bin_isodesc)) >= rp->b_size) in mon_bin_get_isodesc()
530 if (length >= rp->b_size/5) in mon_bin_event()
531 length = rp->b_size/5; in mon_bin_event()
561 if ((offset += PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_event()
598 if ((offset += lendesc) >= rp->b_size) in mon_bin_event()
599 offset -= rp->b_size; in mon_bin_event()
700 rp->b_size = BUFF_DFL; in mon_bin_open()
702 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
708 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
762 if ((offset = rp->b_out + PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_get_event()
792 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
842 if (offset >= rp->b_size) in mon_bin_read()
843 offset -= rp->b_size; in mon_bin_read()
936 if ((cur_out += size) >= rp->b_size) in mon_bin_fetch()
937 cur_out -= rp->b_size; in mon_bin_fetch()
973 if ((cur_out += size) >= rp->b_size) in mon_bin_queued()
974 cur_out -= rp->b_size; in mon_bin_queued()
1008 ret = rp->b_size; in mon_bin_ioctl()
1042 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_ioctl()
1045 rp->b_size = size; in mon_bin_ioctl()
1239 if (offset >= rp->b_size) { in mon_bin_vma_fault()