Lines Matching refs:vbo
136 void *vmw_bo_map_and_cache(struct vmw_bo *vbo);
137 void *vmw_bo_map_and_cache_size(struct vmw_bo *vbo, size_t size);
138 void vmw_bo_unmap(struct vmw_bo *vbo);
144 int vmw_bo_add_detached_resource(struct vmw_bo *vbo, struct vmw_resource *res);
145 void vmw_bo_del_detached_resource(struct vmw_bo *vbo, struct vmw_resource *res);
146 struct vmw_surface *vmw_bo_surface(struct vmw_bo *vbo);
155 * @vbo: The struct vmw_bo
157 static inline void vmw_bo_prio_adjust(struct vmw_bo *vbo)
159 int i = ARRAY_SIZE(vbo->res_prios);
162 if (vbo->res_prios[i]) {
163 vbo->tbo.priority = i;
168 vbo->tbo.priority = 3;
174 * @vbo: The struct vmw_bo
180 static inline void vmw_bo_prio_add(struct vmw_bo *vbo, int prio)
182 if (vbo->res_prios[prio]++ == 0)
183 vmw_bo_prio_adjust(vbo);
189 * @vbo: The struct vmw_bo
195 static inline void vmw_bo_prio_del(struct vmw_bo *vbo, int prio)
197 if (--vbo->res_prios[prio] == 0)
198 vmw_bo_prio_adjust(vbo);
216 static inline struct vmw_bo *vmw_user_bo_ref(struct vmw_bo *vbo)
218 drm_gem_object_get(&vbo->tbo.base);
219 return vbo;
236 s32 vmw_bo_mobid(struct vmw_bo *vbo);