Lines Matching refs:refcount
37 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX || in sshbuf_check_sanity()
57 if (buf->off == 0 || buf->readonly || buf->refcount > 1) in sshbuf_maybe_pack()
78 ret->refcount = 1; in sshbuf_new()
97 ret->refcount = 1; in sshbuf_from()
113 child->parent->refcount++; in sshbuf_set_parent()
152 buf->refcount--; in sshbuf_free()
153 if (buf->refcount > 0) in sshbuf_free()
175 if (buf->readonly || buf->refcount > 1) { in sshbuf_reset()
213 return buf->refcount; in sshbuf_refcount()
228 if (buf->readonly || buf->refcount > 1) in sshbuf_set_max_size()
265 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_avail()
281 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_mutable_ptr()
293 if (buf->readonly || buf->refcount > 1) in sshbuf_check_reserve()