Lines Matching refs:refcount
50 u_int refcount; /* Tracks self and number of child buffers */ member
60 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX || in sshbuf_check_sanity()
80 if (buf->off == 0 || buf->readonly || buf->refcount > 1) in sshbuf_maybe_pack()
101 ret->refcount = 1; in sshbuf_new()
120 ret->refcount = 1; in sshbuf_from()
138 child->parent->refcount++; in sshbuf_set_parent()
177 buf->refcount--; in sshbuf_free()
178 if (buf->refcount > 0) in sshbuf_free()
200 if (buf->readonly || buf->refcount > 1) { in sshbuf_reset()
239 return buf->refcount; in sshbuf_refcount()
254 if (buf->readonly || buf->refcount > 1) in sshbuf_set_max_size()
291 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_avail()
307 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_mutable_ptr()
319 if (buf->readonly || buf->refcount > 1) in sshbuf_check_reserve()