Lines Matching refs:kref
59 struct kref kref; member
72 struct kref kref; member
89 struct kref kref; member
171 kref_get(&container->kref); in vfio_container_get()
174 static void vfio_container_release(struct kref *kref) in vfio_container_release() argument
177 container = container_of(kref, struct vfio_container, kref); in vfio_container_release()
184 kref_put(&container->kref, vfio_container_release); in vfio_container_put()
211 kref_init(&group->kref); in vfio_create_group()
272 static void vfio_group_release(struct kref *kref) in vfio_group_release() argument
274 struct vfio_group *group = container_of(kref, struct vfio_group, kref); in vfio_group_release()
295 kref_put_mutex(&group->kref, vfio_group_release, &vfio.group_lock); in vfio_group_put()
301 kref_get(&group->kref); in vfio_group_get()
374 kref_init(&device->kref); in vfio_group_create_device()
391 static void vfio_device_release(struct kref *kref) in vfio_device_release() argument
393 struct vfio_device *device = container_of(kref, in vfio_device_release()
394 struct vfio_device, kref); in vfio_device_release()
412 kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock); in vfio_device_put()
420 kref_get(&device->kref); in vfio_device_get()
979 kref_init(&container->kref); in vfio_fops_open()