Lines Matching defs:label
35 static bool is_user_label(int label)
37 return label >= VC4_BO_TYPE_COUNT;
128 static void vc4_bo_set_label(struct drm_gem_object *gem_obj, int label)
135 if (label != -1) {
136 vc4->bo_labels[label].num_allocated++;
137 vc4->bo_labels[label].size_allocated += gem_obj->size;
140 vc4->bo_labels[bo->label].num_allocated--;
141 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size;
143 if (vc4->bo_labels[bo->label].num_allocated == 0 &&
144 is_user_label(bo->label)) {
145 /* Free user BO label slots on last unreference.
150 kfree(vc4->bo_labels[bo->label].name);
151 vc4->bo_labels[bo->label].name = NULL;
154 bo->label = label;
398 bo->label = VC4_BO_TYPE_KERNEL;
1071 int ret = 0, label;
1088 label = vc4_get_user_label(vc4, name);
1089 if (label != -1)
1090 vc4_bo_set_label(gem_obj, label);