Lines Matching defs:label
39 static bool is_user_label(int label)
41 return label >= VC4_BO_TYPE_COUNT;
132 static void vc4_bo_set_label(struct drm_gem_object *gem_obj, int label)
139 if (label != -1) {
140 vc4->bo_labels[label].num_allocated++;
141 vc4->bo_labels[label].size_allocated += gem_obj->size;
144 vc4->bo_labels[bo->label].num_allocated--;
145 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size;
147 if (vc4->bo_labels[bo->label].num_allocated == 0 &&
148 is_user_label(bo->label)) {
149 /* Free user BO label slots on last unreference.
154 kfree(vc4->bo_labels[bo->label].name);
155 vc4->bo_labels[bo->label].name = NULL;
158 bo->label = label;
412 bo->label = VC4_BO_TYPE_KERNEL;
1072 int ret = 0, label;
1092 label = vc4_get_user_label(vc4, name);
1093 if (label != -1)
1094 vc4_bo_set_label(gem_obj, label);