Lines Matching refs:b_size

183 	unsigned int b_size;		/* Current size of the buffer - bytes */  member
247 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
280 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
298 if (rp->b_cnt + size > rp->b_size) 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()
324 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
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()
333 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
340 } else if (rp->b_in + size == rp->b_size) { in mon_buff_area_alloc_contiguous()
362 rp->b_in += rp->b_size; in mon_buff_area_shrink()
375 if ((rp->b_out += size) >= rp->b_size) in mon_buff_area_free()
376 rp->b_out -= rp->b_size; in mon_buff_area_free()
476 if ((offset += sizeof(struct mon_bin_isodesc)) >= rp->b_size) in mon_bin_get_isodesc()
527 if (length >= rp->b_size/5) in mon_bin_event()
528 length = rp->b_size/5; in mon_bin_event()
558 if ((offset += PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_event()
595 if ((offset += lendesc) >= rp->b_size) in mon_bin_event()
596 offset -= rp->b_size; in mon_bin_event()
697 rp->b_size = BUFF_DFL; in mon_bin_open()
699 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
705 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
759 if ((offset = rp->b_out + PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_get_event()
789 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
839 if (offset >= rp->b_size) in mon_bin_read()
840 offset -= rp->b_size; in mon_bin_read()
933 if ((cur_out += size) >= rp->b_size) in mon_bin_fetch()
934 cur_out -= rp->b_size; in mon_bin_fetch()
970 if ((cur_out += size) >= rp->b_size) in mon_bin_queued()
971 cur_out -= rp->b_size; in mon_bin_queued()
1004 ret = rp->b_size; in mon_bin_ioctl()
1036 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_ioctl()
1039 rp->b_size = size; in mon_bin_ioctl()
1232 if (offset >= rp->b_size) in mon_bin_vma_fault()