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