Lines Matching refs:kref
60 struct kref kref; member
74 struct kref kref; member
92 struct kref kref; member
291 kref_get(&container->kref); in vfio_container_get()
294 static void vfio_container_release(struct kref *kref) in vfio_container_release() argument
297 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
304 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
331 kref_init(&group->kref); in vfio_create_group()
396 static void vfio_group_release(struct kref *kref) in vfio_group_release() argument
398 struct vfio_group *group = container_of(kref, struct vfio_group, kref); in vfio_group_release()
419 kref_put_mutex(&group->kref, vfio_group_release, &vfio.group_lock); in vfio_group_put()
453 kref_get(&group->kref); in vfio_group_get()
526 kref_init(&device->kref); in vfio_group_create_device()
543 static void vfio_device_release(struct kref *kref) in vfio_device_release() argument
545 struct vfio_device *device = container_of(kref, in vfio_device_release()
546 struct vfio_device, kref); in vfio_device_release()
564 kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock); in vfio_device_put()
572 kref_get(&device->kref); in vfio_device_get()
1198 kref_init(&container->kref); in vfio_fops_open()