Lines Matching refs:reference
55 pipe_reference_init(struct pipe_reference *reference, unsigned count) in pipe_reference_init() argument
57 p_atomic_set(&reference->count, count); in pipe_reference_init()
61 pipe_is_referenced(struct pipe_reference *reference) in pipe_is_referenced() argument
63 return p_atomic_read(&reference->count) != 0; in pipe_is_referenced()
74 struct pipe_reference *reference, in pipe_reference_described() argument
79 if(ptr != reference) { in pipe_reference_described()
81 if (reference) { in pipe_reference_described()
82 assert(pipe_is_referenced(reference)); in pipe_reference_described()
83 p_atomic_inc(&reference->count); in pipe_reference_described()
84 debug_reference(reference, get_desc, 1); in pipe_reference_described()
100 pipe_reference(struct pipe_reference *ptr, struct pipe_reference *reference) in pipe_reference() argument
102 return pipe_reference_described(ptr, reference, in pipe_reference()
111 if (pipe_reference_described(&(*ptr)->reference, &surf->reference, in pipe_surface_reference()
126 if (pipe_reference_described(&(*ptr)->reference, NULL, in pipe_surface_release()
138 if (pipe_reference_described(&(*ptr)->reference, &tex->reference, in pipe_resource_reference()
149 if (pipe_reference_described(&(*ptr)->reference, &view->reference, in pipe_sampler_view_reference()
169 if (pipe_reference_described(&(*ptr)->reference, NULL, in pipe_sampler_view_release()
183 if (pipe_reference_described(&(*ptr)->reference, &target->reference, in pipe_so_target_reference()
210 pipe_reference_init(&ps->reference, 1); in pipe_surface_init()