Lines Matching defs:ref
534 * The initial ref-count of the object is 1. Use drm_dev_ref() and
535 * drm_dev_unref() to take and drop further ref-counts.
550 kref_init(&dev->ref);
624 static void drm_dev_release(struct kref *ref)
626 struct drm_device *dev = container_of(ref, struct drm_device, ref);
648 * This increases the ref-count of @dev by one. You *must* already own a
659 kref_get(&dev->ref);
667 * This decreases the ref-count of @dev by one. The device is destroyed if the
668 * ref-count drops to zero.
673 kref_put(&dev->ref, drm_dev_release);