Lines Matching refs:vmw_bo

35 static void vmw_bo_release(struct vmw_bo *vbo)
44 * vmw_bo_free - vmw_bo destructor
50 struct vmw_bo *vbo = to_vmw_bo(&bo->base);
69 struct vmw_bo *buf,
106 struct vmw_bo *buf,
154 struct vmw_bo *buf,
175 struct vmw_bo *buf,
234 struct vmw_bo *buf,
279 void vmw_bo_pin_reserved(struct vmw_bo *vbo, bool pin)
327 void *vmw_bo_map_and_cache(struct vmw_bo *vbo)
354 void vmw_bo_unmap(struct vmw_bo *vbo)
368 * @vmw_bo: Buffer object to initialize
375 struct vmw_bo *vmw_bo,
388 memset(vmw_bo, 0, sizeof(*vmw_bo));
391 vmw_bo->tbo.priority = 3;
392 vmw_bo->res_tree = RB_ROOT;
395 drm_gem_private_object_init(vdev, &vmw_bo->tbo.base, params->size);
397 vmw_bo_placement_set(vmw_bo, params->domain, params->busy_domain);
398 ret = ttm_bo_init_reserved(bdev, &vmw_bo->tbo, params->bo_type,
399 &vmw_bo->placement, 0, &ctx,
405 ttm_bo_pin(&vmw_bo->tbo);
406 ttm_bo_unreserve(&vmw_bo->tbo);
413 struct vmw_bo **p_bo)
437 * vmw_user_bo_synccpu_grab - Grab a struct vmw_bo for cpu
441 * @vmw_bo: Pointer to the buffer object being grabbed for CPU access
450 static int vmw_user_bo_synccpu_grab(struct vmw_bo *vmw_bo,
454 struct ttm_buffer_object *bo = &vmw_bo->tbo;
476 atomic_inc(&vmw_bo->cpu_writers);
497 struct vmw_bo *vmw_bo;
498 int ret = vmw_user_bo_lookup(filp, handle, &vmw_bo);
502 atomic_dec(&vmw_bo->cpu_writers);
504 vmw_user_bo_unref(&vmw_bo);
528 struct vmw_bo *vbo;
600 * struct vmw_bo should be placed.
607 struct vmw_bo **out)
675 struct vmw_bo *vbo;
728 struct vmw_bo *vbo = to_vmw_bo(&bo->base);
819 void vmw_bo_placement_set(struct vmw_bo *bo, u32 domain, u32 busy_domain)
845 void vmw_bo_placement_set_default_accelerated(struct vmw_bo *bo)