Lines Matching defs:reference
55 pipe_reference_init(struct pipe_reference *reference, unsigned count)
57 p_atomic_set(&reference->count, count);
61 pipe_is_referenced(struct pipe_reference *reference)
63 return p_atomic_read(&reference->count) != 0;
67 * Update reference counting.
69 * Both 'ptr' and 'reference' may be NULL.
74 struct pipe_reference *reference,
79 if(ptr != reference) {
80 /* bump the reference.count first */
81 if (reference) {
82 assert(pipe_is_referenced(reference));
83 p_atomic_inc(&reference->count);
84 debug_reference(reference, get_desc, 1);
100 pipe_reference(struct pipe_reference *ptr, struct pipe_reference *reference)
102 return pipe_reference_described(ptr, reference,
111 if (pipe_reference_described(&(*ptr)->reference, &surf->reference,
126 if (pipe_reference_described(&(*ptr)->reference, NULL,
138 if (pipe_reference_described(&(*ptr)->reference, &tex->reference,
149 if (pipe_reference_described(&(*ptr)->reference, &view->reference,
169 if (pipe_reference_described(&(*ptr)->reference, NULL,
183 if (pipe_reference_described(&(*ptr)->reference, &target->reference,
210 pipe_reference_init(&ps->reference, 1);