Searched refs:refcount (Results 1 - 13 of 13) sorted by relevance

/solaris-x11-s11/open-src/kernel/drm/src/
H A Ddrm_linux.c33 atomic_set(&kref->refcount, 1);
39 atomic_inc(&kref->refcount);
45 if (!atomic_dec_uint_nv(&kref->refcount))
H A Ddrm_stub.c107 kref_init(&master->refcount);
125 kref_get(&master->refcount);
131 struct drm_master *master = container_of(kref, struct drm_master, refcount);
172 kref_put(&(*master)->refcount, drm_master_destroy);
H A Ddrm_drv.c480 kref_get(&obj->refcount);
487 kref_put(&obj->refcount, drm_gem_object_free);
496 kref_put(&obj->refcount, drm_gem_object_free);
H A Ddrm_gem.c317 kref_init(&obj->refcount);
355 kref_init(&obj->refcount);
404 * doing the delete on it and dropping the refcount, or the user
405 * could race us to double-decrement the refcount and cause a
420 /* Release reference and decrement refcount. */
741 kref_put(&obj->refcount, drm_gem_object_ref_bug);
H A Ddrm_crtc.c363 kref_init(&fb->refcount);
386 container_of(kref, struct drm_framebuffer, refcount);
425 kref_get(&fb->refcount);
439 kref_put(&fb->refcount, drm_framebuffer_free);
448 kref_get(&fb->refcount);
460 kref_put(&fb->refcount, drm_framebuffer_free_bug);
547 * Since we're holding a reference ourselves, observing a refcount of 1
548 * means that we're the last holder and can skip it. Also, the refcount
557 if (atomic_read(&fb->refcount.refcount) >
[all...]
/solaris-x11-s11/open-src/kernel/efb/src/
H A Ddrm_linux.h164 atomic_t refcount; member in struct:kref
H A Dradeon_state.c2016 * Note that refcount can be at most 2, since during a free refcount=3
2043 if ((dev_priv->surfaces[i].refcount != 0) &&
2064 if ((dev_priv->surfaces[i].refcount == 1) &&
2073 dev_priv->surfaces[i].refcount++;
2080 if ((dev_priv->surfaces[i].refcount == 1) &&
2089 dev_priv->surfaces[i].refcount++;
2098 if (dev_priv->surfaces[i].refcount == 0) {
2105 dev_priv->surfaces[i].refcount = 1;
2139 dev_priv->surfaces[s->surface_index].refcount
[all...]
H A Dradeon_drv.h212 int refcount; member in struct:radeon_surface
/solaris-x11-s11/open-src/kernel/sys/drm/
H A Ddrm_linux.h172 atomic_t refcount; member in struct:kref
H A Ddrm_crtc.h258 struct kref refcount; member in struct:drm_framebuffer
H A DdrmP.h594 struct kref refcount; member in struct:drm_gem_object
977 struct kref refcount; /* refcount for this master */ member in struct:drm_master
/solaris-x11-s11/open-src/kernel/i915/src/
H A Dintel_display.c1408 if (pll->refcount == 0) {
1409 DRM_ERROR("pll refcount equal to 0");
1441 if (pll->refcount == 0) {
1442 DRM_ERROR("pll refcount equal to 0");
3034 if (pll->refcount == 0) {
3035 DRM_ERROR("bad PCH PLL refcount\n");
3039 if (--pll->refcount == 0) {
3043 DRM_ERROR("PCH PLL refcount is 0, but it's still active");
3076 if (pll->refcount == 0)
3081 DRM_DEBUG_KMS("CRTC:%d sharing existing %s (refcount
[all...]
H A Di915_drv.h150 int refcount; /* count of number of CRTCs sharing this PLL */ member in struct:intel_shared_dpll

Completed in 77 milliseconds