Lines Matching refs:b_size

186 	unsigned int b_size;		/* Current size of the buffer - bytes */  member
253 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
286 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
304 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc()
308 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
309 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
330 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
332 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
338 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
339 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
346 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
368 rp->b_in += rp->b_size; in mon_buff_area_shrink()
381 if ((rp->b_out += size) >= rp->b_size) in mon_buff_area_free()
382 rp->b_out -= rp->b_size; in mon_buff_area_free()
482 if ((offset += sizeof(struct mon_bin_isodesc)) >= rp->b_size) in mon_bin_get_isodesc()
533 if (length >= rp->b_size/5) in mon_bin_event()
534 length = rp->b_size/5; in mon_bin_event()
564 if ((offset += PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_event()
601 if ((offset += lendesc) >= rp->b_size) in mon_bin_event()
602 offset -= rp->b_size; in mon_bin_event()
703 rp->b_size = BUFF_DFL; in mon_bin_open()
705 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
711 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
765 if ((offset = rp->b_out + PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_get_event()
795 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
845 if (offset >= rp->b_size) in mon_bin_read()
846 offset -= rp->b_size; in mon_bin_read()
939 if ((cur_out += size) >= rp->b_size) in mon_bin_fetch()
940 cur_out -= rp->b_size; in mon_bin_fetch()
976 if ((cur_out += size) >= rp->b_size) in mon_bin_queued()
977 cur_out -= rp->b_size; in mon_bin_queued()
1011 ret = rp->b_size; in mon_bin_ioctl()
1050 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_ioctl()
1053 rp->b_size = size; in mon_bin_ioctl()
1257 if (offset >= rp->b_size) { in mon_bin_vma_fault()