Lines Matching refs:kref
60 struct kref kref; member
73 struct kref kref; member
90 struct kref kref; member
172 kref_get(&container->kref); in vfio_container_get()
175 static void vfio_container_release(struct kref *kref) in vfio_container_release() argument
178 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
185 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
212 kref_init(&group->kref); in vfio_create_group()
273 static void vfio_group_release(struct kref *kref) in vfio_group_release() argument
275 struct vfio_group *group = container_of(kref, struct vfio_group, kref); in vfio_group_release()
296 kref_put_mutex(&group->kref, vfio_group_release, &vfio.group_lock); in vfio_group_put()
302 kref_get(&group->kref); in vfio_group_get()
375 kref_init(&device->kref); in vfio_group_create_device()
392 static void vfio_device_release(struct kref *kref) in vfio_device_release() argument
394 struct vfio_device *device = container_of(kref, in vfio_device_release()
395 struct vfio_device, kref); in vfio_device_release()
413 kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock); in vfio_device_put()
421 kref_get(&device->kref); in vfio_device_get()
1027 kref_init(&container->kref); in vfio_fops_open()