Lines Matching refs:item
49 struct drm_global_item *item = &glob[i];
50 mutex_init(&item->mutex);
51 item->object = NULL;
52 item->refcount = 0;
60 struct drm_global_item *item = &glob[i];
61 BUG_ON(item->object != NULL);
62 BUG_ON(item->refcount != 0);
69 struct drm_global_item *item = &glob[ref->global_type];
72 mutex_lock(&item->mutex);
73 if (item->refcount == 0) {
74 item->object = kzalloc(ref->size, GFP_KERNEL);
75 if (unlikely(item->object == NULL)) {
80 ref->object = item->object;
86 ++item->refcount;
87 ref->object = item->object;
88 object = item->object;
89 mutex_unlock(&item->mutex);
92 mutex_unlock(&item->mutex);
93 item->object = NULL;
100 struct drm_global_item *item = &glob[ref->global_type];
102 mutex_lock(&item->mutex);
103 BUG_ON(item->refcount == 0);
104 BUG_ON(ref->object != item->object);
105 if (--item->refcount == 0) {
107 item->object = NULL;
109 mutex_unlock(&item->mutex);