Lines Matching refs:bo

34 	struct v3d_bo *bo = to_v3d_bo(obj);  in v3d_free_object()  local
36 v3d_mmu_remove_ptes(bo); in v3d_free_object()
44 drm_mm_remove_node(&bo->node); in v3d_free_object()
48 bo->base.pages_mark_dirty_on_put = true; in v3d_free_object()
69 struct v3d_bo *bo; in v3d_create_object() local
75 bo = kzalloc(sizeof(*bo), GFP_KERNEL); in v3d_create_object()
76 if (!bo) in v3d_create_object()
78 obj = &bo->base.base; in v3d_create_object()
81 bo->base.map_wc = true; in v3d_create_object()
82 INIT_LIST_HEAD(&bo->unref_head); in v3d_create_object()
84 return &bo->base.base; in v3d_create_object()
91 struct v3d_bo *bo = to_v3d_bo(obj); in v3d_bo_create_finish() local
98 sgt = drm_gem_shmem_get_pages_sgt(&bo->base.base); in v3d_bo_create_finish()
107 ret = drm_mm_insert_node_generic(&v3d->mm, &bo->node, in v3d_bo_create_finish()
120 v3d_mmu_insert_ptes(bo); in v3d_bo_create_finish()
129 struct v3d_bo *bo; in v3d_bo_create() local
135 bo = to_v3d_bo(&shmem_obj->base); in v3d_bo_create()
141 return bo; in v3d_bo_create()
173 struct v3d_bo *bo = NULL; in v3d_create_bo_ioctl() local
181 bo = v3d_bo_create(dev, file_priv, PAGE_ALIGN(args->size)); in v3d_create_bo_ioctl()
182 if (IS_ERR(bo)) in v3d_create_bo_ioctl()
183 return PTR_ERR(bo); in v3d_create_bo_ioctl()
185 args->offset = bo->node.start << PAGE_SHIFT; in v3d_create_bo_ioctl()
187 ret = drm_gem_handle_create(file_priv, &bo->base.base, &args->handle); in v3d_create_bo_ioctl()
188 drm_gem_object_put(&bo->base.base); in v3d_create_bo_ioctl()
221 struct v3d_bo *bo; in v3d_get_bo_offset_ioctl() local
228 bo = to_v3d_bo(gem_obj); in v3d_get_bo_offset_ioctl()
230 args->offset = bo->node.start << PAGE_SHIFT; in v3d_get_bo_offset_ioctl()