Lines Matching refs:gem_obj

130 static void vc4_bo_set_label(struct drm_gem_object *gem_obj, int label)  in vc4_bo_set_label()  argument
132 struct vc4_bo *bo = to_vc4_bo(gem_obj); in vc4_bo_set_label()
133 struct vc4_dev *vc4 = to_vc4_dev(gem_obj->dev); in vc4_bo_set_label()
139 vc4->bo_labels[label].size_allocated += gem_obj->size; in vc4_bo_set_label()
143 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size; in vc4_bo_set_label()
809 struct drm_gem_object *gem_obj; in vc4_mmap_bo_ioctl() local
814 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_mmap_bo_ioctl()
815 if (!gem_obj) { in vc4_mmap_bo_ioctl()
821 args->offset = drm_vma_node_offset_addr(&gem_obj->vma_node); in vc4_mmap_bo_ioctl()
823 drm_gem_object_put(gem_obj); in vc4_mmap_bo_ioctl()
912 struct drm_gem_object *gem_obj; in vc4_set_tiling_ioctl() local
933 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_set_tiling_ioctl()
934 if (!gem_obj) { in vc4_set_tiling_ioctl()
938 bo = to_vc4_bo(gem_obj); in vc4_set_tiling_ioctl()
941 drm_gem_object_put(gem_obj); in vc4_set_tiling_ioctl()
959 struct drm_gem_object *gem_obj; in vc4_get_tiling_ioctl() local
968 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_get_tiling_ioctl()
969 if (!gem_obj) { in vc4_get_tiling_ioctl()
973 bo = to_vc4_bo(gem_obj); in vc4_get_tiling_ioctl()
980 drm_gem_object_put(gem_obj); in vc4_get_tiling_ioctl()
1050 struct drm_gem_object *gem_obj; in vc4_label_bo_ioctl() local
1063 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_label_bo_ioctl()
1064 if (!gem_obj) { in vc4_label_bo_ioctl()
1073 vc4_bo_set_label(gem_obj, label); in vc4_label_bo_ioctl()
1078 drm_gem_object_put(gem_obj); in vc4_label_bo_ioctl()