Lines Matching refs:count
27 size_t count; /* number of bytes currently pushed */ member
42 r->idx[0] = r->idx[1] = r->count = 0; in ring_buf_init()
51 r->count = 0; in ring_buf_destroy()
66 if (idx == 0 && max_len > r->len - r->count) in ring_buf_head_tail()
67 max_len = r->len - r->count; in ring_buf_head_tail()
68 if (idx == 1 && max_len > r->count) in ring_buf_head_tail()
69 max_len = r->count; in ring_buf_head_tail()
96 if (!ossl_assert(idx != 0 ? num_bytes <= r->count in ring_buf_push_pop()
97 : num_bytes + r->count <= r->len)) in ring_buf_push_pop()
107 r->count -= num_bytes; in ring_buf_push_pop()
109 r->count += num_bytes; in ring_buf_push_pop()
117 r->idx[0] = r->idx[1] = r->count = 0; in ring_buf_clear()
130 if (r->count > 0 && nbytes < r->len) in ring_buf_resize()
139 if (r->count > 0) { in ring_buf_resize()
508 saved_count = readb->rbuf.count; in dgram_pair_ctrl_pending()
513 readb->rbuf.count = saved_count; in dgram_pair_ctrl_pending()
532 l = b->rbuf.len - b->rbuf.count; in dgram_pair_ctrl_get_write_guarantee()
907 saved_count = readb->rbuf.count; in dgram_pair_read_actual()
931 readb->rbuf.count = saved_count; in dgram_pair_read_actual()
1236 saved_count = b->rbuf.count; in dgram_pair_write_actual()
1244 b->rbuf.count = saved_count; in dgram_pair_write_actual()