Lines Matching refs:bo_labels

49 		if (!vc4->bo_labels[i].num_allocated)  in vc4_bo_stats_print()
53 vc4->bo_labels[i].name, in vc4_bo_stats_print()
54 vc4->bo_labels[i].size_allocated / 1024, in vc4_bo_stats_print()
55 vc4->bo_labels[i].num_allocated); in vc4_bo_stats_print()
96 if (!vc4->bo_labels[i].name) { in vc4_get_user_label()
98 } else if (strcmp(vc4->bo_labels[i].name, name) == 0) { in vc4_get_user_label()
105 WARN_ON(vc4->bo_labels[free_slot].num_allocated != 0); in vc4_get_user_label()
106 vc4->bo_labels[free_slot].name = name; in vc4_get_user_label()
111 krealloc(vc4->bo_labels, in vc4_get_user_label()
121 vc4->bo_labels = new_labels; in vc4_get_user_label()
124 vc4->bo_labels[free_slot].name = name; in vc4_get_user_label()
125 vc4->bo_labels[free_slot].num_allocated = 0; in vc4_get_user_label()
126 vc4->bo_labels[free_slot].size_allocated = 0; in vc4_get_user_label()
140 vc4->bo_labels[label].num_allocated++; in vc4_bo_set_label()
141 vc4->bo_labels[label].size_allocated += gem_obj->size; in vc4_bo_set_label()
144 vc4->bo_labels[bo->label].num_allocated--; in vc4_bo_set_label()
145 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size; in vc4_bo_set_label()
147 if (vc4->bo_labels[bo->label].num_allocated == 0 && in vc4_bo_set_label()
154 kfree(vc4->bo_labels[bo->label].name); in vc4_bo_set_label()
155 vc4->bo_labels[bo->label].name = NULL; in vc4_bo_set_label()
413 vc4->bo_labels[VC4_BO_TYPE_KERNEL].num_allocated++; in vc4_create_object()
414 vc4->bo_labels[VC4_BO_TYPE_KERNEL].size_allocated += size; in vc4_create_object()
1017 vc4->bo_labels = kcalloc(VC4_BO_TYPE_COUNT, sizeof(*vc4->bo_labels), in vc4_bo_cache_init()
1019 if (!vc4->bo_labels) in vc4_bo_cache_init()
1025 vc4->bo_labels[i].name = bo_type_names[i]; in vc4_bo_cache_init()
1029 kfree(vc4->bo_labels); in vc4_bo_cache_init()
1052 if (vc4->bo_labels[i].num_allocated) { in vc4_bo_cache_destroy()
1055 vc4->bo_labels[i].num_allocated, in vc4_bo_cache_destroy()
1056 vc4->bo_labels[i].name); in vc4_bo_cache_destroy()
1060 kfree(vc4->bo_labels[i].name); in vc4_bo_cache_destroy()
1062 kfree(vc4->bo_labels); in vc4_bo_cache_destroy()