Lines Matching defs:count
57 pipe_reference_init(struct pipe_reference *dst, unsigned count)
59 dst->count = count;
65 return p_atomic_read(&src->count) != 0;
80 /* bump the src.count first */
82 ASSERTED int count = p_atomic_inc_return(&src->count);
83 assert(count != 1); /* src had to be referenced */
88 int count = p_atomic_dec_return(&dst->count);
89 assert(count != -1); /* dst had to be referenced */
91 if (!count)
173 int count = p_atomic_add_return(&dst->reference.count, -num_refs);
175 assert(count >= 0);
177 if (count <= 0)