• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/gpu/drm/radeon/

Lines Matching refs:bo

56  * radeon_bo_reserve - reserve bo
57 * @bo: bo structure
65 static inline int radeon_bo_reserve(struct radeon_bo *bo, bool no_wait)
69 r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, 0);
72 dev_err(bo->rdev->dev, "%p reserve failed\n", bo);
78 static inline void radeon_bo_unreserve(struct radeon_bo *bo)
80 ttm_bo_unreserve(&bo->tbo);
84 * radeon_bo_gpu_offset - return GPU offset of bo
85 * @bo: radeon object for which we query the offset
92 static inline u64 radeon_bo_gpu_offset(struct radeon_bo *bo)
94 return bo->tbo.offset;
97 static inline unsigned long radeon_bo_size(struct radeon_bo *bo)
99 return bo->tbo.num_pages << PAGE_SHIFT;
102 static inline bool radeon_bo_is_reserved(struct radeon_bo *bo)
104 return !!atomic_read(&bo->tbo.reserved);
108 * radeon_bo_mmap_offset - return mmap offset of bo
109 * @bo: radeon object for which we query the offset
113 * Note: addr_space_offset is constant after ttm bo init thus isn't protected
116 static inline u64 radeon_bo_mmap_offset(struct radeon_bo *bo)
118 return bo->tbo.addr_space_offset;
121 static inline int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type,
126 r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, 0);
129 spin_lock(&bo->tbo.lock);
131 *mem_type = bo->tbo.mem.mem_type;
132 if (bo->tbo.sync_obj)
133 r = ttm_bo_wait(&bo->tbo, true, true, no_wait);
134 spin_unlock(&bo->tbo.lock);
135 ttm_bo_unreserve(&bo->tbo);
143 extern int radeon_bo_kmap(struct radeon_bo *bo, void **ptr);
144 extern void radeon_bo_kunmap(struct radeon_bo *bo);
145 extern void radeon_bo_unref(struct radeon_bo **bo);
146 extern int radeon_bo_pin(struct radeon_bo *bo, u32 domain, u64 *gpu_addr);
147 extern int radeon_bo_unpin(struct radeon_bo *bo);
158 extern int radeon_bo_fbdev_mmap(struct radeon_bo *bo,
160 extern int radeon_bo_set_tiling_flags(struct radeon_bo *bo,
162 extern void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
164 extern int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved,
166 extern void radeon_bo_move_notify(struct ttm_buffer_object *bo,
168 extern int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
169 extern int radeon_bo_get_surface_reg(struct radeon_bo *bo);