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()
696 rp->b_size = BUFF_DFL; in mon_bin_open()
698 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
704 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
758 if ((offset = rp->b_out + PKT_SIZE) >= rp->b_size) offset = 0; in mon_bin_get_event()
788 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
838 if (offset >= rp->b_size) in mon_bin_read()
839 offset -= rp->b_size; in mon_bin_read()
932 if ((cur_out += size) >= rp->b_size) in mon_bin_fetch()
933 cur_out -= rp->b_size; in mon_bin_fetch()
969 if ((cur_out += size) >= rp->b_size) in mon_bin_queued()
970 cur_out -= rp->b_size; in mon_bin_queued()
1003 ret = rp->b_size; in mon_bin_ioctl()
1035 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_ioctl()
1038 rp->b_size = size; in mon_bin_ioctl()
1231 if (offset >= rp->b_size) in mon_bin_vma_fault()