Lines Matching refs:bo

190 	struct ttm_buffer_object *bo;  member
223 static inline void ttm_bo_get(struct ttm_buffer_object *bo) in ttm_bo_get() argument
225 kref_get(&bo->kref); in ttm_bo_get()
239 ttm_bo_get_unless_zero(struct ttm_buffer_object *bo) in ttm_bo_get_unless_zero() argument
241 if (!kref_get_unless_zero(&bo->kref)) in ttm_bo_get_unless_zero()
243 return bo; in ttm_bo_get_unless_zero()
260 int ttm_bo_wait(struct ttm_buffer_object *bo, bool interruptible, bool no_wait);
262 static inline int ttm_bo_wait_ctx(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx) in ttm_bo_wait_ctx() argument
264 return ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu); in ttm_bo_wait_ctx()
282 int ttm_bo_validate(struct ttm_buffer_object *bo,
293 void ttm_bo_put(struct ttm_buffer_object *bo);
306 void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo,
344 bool ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,
383 struct ttm_buffer_object *bo,
428 int ttm_bo_init(struct ttm_device *bdev, struct ttm_buffer_object *bo,
469 int ttm_bo_kmap(struct ttm_buffer_object *bo, unsigned long start_page,
495 int ttm_bo_vmap(struct ttm_buffer_object *bo, struct dma_buf_map *map);
505 void ttm_bo_vunmap(struct ttm_buffer_object *bo, struct dma_buf_map *map);
515 int ttm_bo_mmap_obj(struct vm_area_struct *vma, struct ttm_buffer_object *bo);
541 int ttm_bo_swapout(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx,
550 static inline void ttm_bo_pin(struct ttm_buffer_object *bo) in ttm_bo_pin() argument
552 dma_resv_assert_held(bo->base.resv); in ttm_bo_pin()
553 WARN_ON_ONCE(!kref_read(&bo->kref)); in ttm_bo_pin()
554 ++bo->pin_count; in ttm_bo_pin()
563 static inline void ttm_bo_unpin(struct ttm_buffer_object *bo) in ttm_bo_unpin() argument
565 dma_resv_assert_held(bo->base.resv); in ttm_bo_unpin()
566 WARN_ON_ONCE(!kref_read(&bo->kref)); in ttm_bo_unpin()
567 if (bo->pin_count) in ttm_bo_unpin()
568 --bo->pin_count; in ttm_bo_unpin()
582 vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo,