Lines Matching full:v3d
5 * DOC: V3D GEM BO management support
7 * Compared to VC4 (V3D 2.x), V3D 3.3 introduces an MMU between the
11 * Physically contiguous objects may still be imported to V3D, but the
15 * driver) for an example of how to integrate with V3D.
45 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_free_object() local
53 mutex_lock(&v3d->bo_lock); in v3d_free_object()
54 v3d->bo_stats.num_allocated--; in v3d_free_object()
55 v3d->bo_stats.pages_allocated -= obj->size >> V3D_MMU_PAGE_SHIFT; in v3d_free_object()
56 mutex_unlock(&v3d->bo_lock); in v3d_free_object()
58 spin_lock(&v3d->mm_lock); in v3d_free_object()
60 spin_unlock(&v3d->mm_lock); in v3d_free_object()
107 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_bo_create_finish() local
119 spin_lock(&v3d->mm_lock); in v3d_bo_create_finish()
124 ret = drm_mm_insert_node_generic(&v3d->mm, &bo->node, in v3d_bo_create_finish()
127 spin_unlock(&v3d->mm_lock); in v3d_bo_create_finish()
132 mutex_lock(&v3d->bo_lock); in v3d_bo_create_finish()
133 v3d->bo_stats.num_allocated++; in v3d_bo_create_finish()
134 v3d->bo_stats.pages_allocated += obj->size >> V3D_MMU_PAGE_SHIFT; in v3d_bo_create_finish()
135 mutex_unlock(&v3d->bo_lock); in v3d_bo_create_finish()