Lines Matching defs:ref
120 static void ib_uverbs_release_dev(struct kref *ref)
123 container_of(ref, struct ib_uverbs_device, ref);
142 kref_put(&ev_file->ref, ib_uverbs_release_event_file);
251 static void ib_uverbs_release_file(struct kref *ref)
254 container_of(ref, struct ib_uverbs_file, ref);
257 kref_put(&file->device->ref, ib_uverbs_release_dev);
333 void ib_uverbs_release_event_file(struct kref *ref)
336 container_of(ref, struct ib_uverbs_event_file, ref);
366 kref_put(&file->uverbs_file->ref, ib_uverbs_release_file);
368 kref_put(&file->ref, ib_uverbs_release_event_file);
504 kref_init(&ev_file->ref);
551 * takes a ref to the event file struct that it returns; if
572 kref_get(&ev_file->ref);
627 kref_get(&dev->ref);
647 kref_init(&file->ref);
658 kref_put(&dev->ref, ib_uverbs_release_dev);
670 kref_put(&file->async_file->ref, ib_uverbs_release_event_file);
672 kref_put(&file->ref, ib_uverbs_release_file);
737 kref_init(&uverbs_dev->ref);
791 kref_put(&uverbs_dev->ref, ib_uverbs_release_dev);
814 kref_put(&uverbs_dev->ref, ib_uverbs_release_dev);