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()
157 buf->refcount--; in sshbuf_free()
158 if (buf->refcount > 0) in sshbuf_free()
173 if (buf->readonly || buf->refcount > 1) { in sshbuf_reset()
211 return buf->refcount; in sshbuf_refcount()
226 if (buf->readonly || buf->refcount > 1) in sshbuf_set_max_size()
263 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_avail()
279 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1) in sshbuf_mutable_ptr()
291 if (buf->readonly || buf->refcount > 1) in sshbuf_check_reserve()