Lines Matching refs:ref
71 for (i = 0; i < host->info->nb_pts && kref_read(&sp->ref); i++, sp++) in host1x_syncpt_alloc()
94 kref_init(&sp->ref); in host1x_syncpt_alloc()
314 kref_init(&host->syncpt[26].ref); in host1x_syncpt_init()
315 kref_init(&host->syncpt[27].ref); in host1x_syncpt_init()
340 static void syncpt_release(struct kref *ref) in syncpt_release() argument
342 struct host1x_syncpt *sp = container_of(ref, struct host1x_syncpt, ref); in syncpt_release()
372 kref_put(&sp->ref, syncpt_release); in host1x_syncpt_put()
451 if (kref_get_unless_zero(&host->syncpt[id].ref)) in host1x_syncpt_get_by_id()
480 kref_get(&sp->ref); in host1x_syncpt_get()
506 static void do_nothing(struct kref *ref) in do_nothing() argument
530 kref_put(&host->syncpt[syncpt_id].ref, do_nothing); in host1x_syncpt_release_vblank_reservation()