Lines Matching defs:refcount
48 u_int refcount; /* Tracks self and number of child buffers */
59 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX ||
79 if (buf->off == 0 || buf->readonly || buf->refcount > 1)
100 ret->refcount = 1;
119 ret->refcount = 1;
138 child->parent->refcount++;
175 * refcount to 0 and trigger the actual free.
177 buf->refcount--;
178 if (buf->refcount > 0)
198 if (buf->readonly || buf->refcount > 1) {
237 return buf->refcount;
252 if (buf->readonly || buf->refcount > 1)
289 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1)
305 if (sshbuf_check_sanity(buf) != 0 || buf->readonly || buf->refcount > 1)
317 if (buf->readonly || buf->refcount > 1)