Lines Matching refs:v3d
33 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_free_object() local
38 mutex_lock(&v3d->bo_lock); in v3d_free_object()
39 v3d->bo_stats.num_allocated--; in v3d_free_object()
40 v3d->bo_stats.pages_allocated -= obj->size >> PAGE_SHIFT; in v3d_free_object()
41 mutex_unlock(&v3d->bo_lock); in v3d_free_object()
43 spin_lock(&v3d->mm_lock); in v3d_free_object()
45 spin_unlock(&v3d->mm_lock); in v3d_free_object()
90 struct v3d_dev *v3d = to_v3d_dev(obj->dev); in v3d_bo_create_finish() local
102 spin_lock(&v3d->mm_lock); in v3d_bo_create_finish()
107 ret = drm_mm_insert_node_generic(&v3d->mm, &bo->node, in v3d_bo_create_finish()
110 spin_unlock(&v3d->mm_lock); in v3d_bo_create_finish()
115 mutex_lock(&v3d->bo_lock); in v3d_bo_create_finish()
116 v3d->bo_stats.num_allocated++; in v3d_bo_create_finish()
117 v3d->bo_stats.pages_allocated += obj->size >> PAGE_SHIFT; in v3d_bo_create_finish()
118 mutex_unlock(&v3d->bo_lock); in v3d_bo_create_finish()