Lines Matching refs:bufmgr
53 drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc() argument
56 return bufmgr->bo_alloc(bufmgr, name, size, alignment); in drm_intel_bo_alloc()
60 drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc_for_render() argument
63 return bufmgr->bo_alloc_for_render(bufmgr, name, size, alignment); in drm_intel_bo_alloc_for_render()
67 drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, in drm_intel_bo_alloc_userptr() argument
74 if (bufmgr->bo_alloc_userptr) in drm_intel_bo_alloc_userptr()
75 return bufmgr->bo_alloc_userptr(bufmgr, name, addr, tiling_mode, in drm_intel_bo_alloc_userptr()
81 drm_intel_bo_alloc_tiled(drm_intel_bufmgr *bufmgr, const char *name, in drm_intel_bo_alloc_tiled() argument
85 return bufmgr->bo_alloc_tiled(bufmgr, name, x, y, cpp, in drm_intel_bo_alloc_tiled()
92 bo->bufmgr->bo_reference(bo); in drm_intel_bo_reference()
101 bo->bufmgr->bo_unreference(bo); in drm_intel_bo_unreference()
107 return buf->bufmgr->bo_map(buf, write_enable); in drm_intel_bo_map()
113 return buf->bufmgr->bo_unmap(buf); in drm_intel_bo_unmap()
120 return bo->bufmgr->bo_subdata(bo, offset, size, data); in drm_intel_bo_subdata()
128 if (bo->bufmgr->bo_get_subdata) in drm_intel_bo_get_subdata()
129 return bo->bufmgr->bo_get_subdata(bo, offset, size, data); in drm_intel_bo_get_subdata()
145 bo->bufmgr->bo_wait_rendering(bo); in drm_intel_bo_wait_rendering()
149 drm_intel_bufmgr_destroy(drm_intel_bufmgr *bufmgr) in drm_intel_bufmgr_destroy() argument
151 bufmgr->destroy(bufmgr); in drm_intel_bufmgr_destroy()
158 return bo->bufmgr->bo_exec(bo, used, cliprects, num_cliprects, DR4); in drm_intel_bo_exec()
166 if (bo->bufmgr->bo_mrb_exec) in drm_intel_bo_mrb_exec()
167 return bo->bufmgr->bo_mrb_exec(bo, used, in drm_intel_bo_mrb_exec()
174 return bo->bufmgr->bo_exec(bo, used, in drm_intel_bo_mrb_exec()
182 drm_intel_bufmgr_set_debug(drm_intel_bufmgr *bufmgr, int enable_debug) in drm_intel_bufmgr_set_debug() argument
184 bufmgr->debug = enable_debug; in drm_intel_bufmgr_set_debug()
190 return bo_array[0]->bufmgr->check_aperture_space(bo_array, count); in drm_intel_bufmgr_check_aperture_space()
196 if (bo->bufmgr->bo_flink) in drm_intel_bo_flink()
197 return bo->bufmgr->bo_flink(bo, name); in drm_intel_bo_flink()
207 return bo->bufmgr->bo_emit_reloc(bo, offset, in drm_intel_bo_emit_reloc()
218 return bo->bufmgr->bo_emit_reloc_fence(bo, offset, in drm_intel_bo_emit_reloc_fence()
227 if (bo->bufmgr->bo_pin) in drm_intel_bo_pin()
228 return bo->bufmgr->bo_pin(bo, alignment); in drm_intel_bo_pin()
236 if (bo->bufmgr->bo_unpin) in drm_intel_bo_unpin()
237 return bo->bufmgr->bo_unpin(bo); in drm_intel_bo_unpin()
246 if (bo->bufmgr->bo_set_tiling) in drm_intel_bo_set_tiling()
247 return bo->bufmgr->bo_set_tiling(bo, tiling_mode, stride); in drm_intel_bo_set_tiling()
257 if (bo->bufmgr->bo_get_tiling) in drm_intel_bo_get_tiling()
258 return bo->bufmgr->bo_get_tiling(bo, tiling_mode, swizzle_mode); in drm_intel_bo_get_tiling()
268 if (bo->bufmgr->bo_set_softpin_offset) in drm_intel_bo_set_softpin_offset()
269 return bo->bufmgr->bo_set_softpin_offset(bo, offset); in drm_intel_bo_set_softpin_offset()
277 if (bo->bufmgr->bo_disable_reuse) in drm_intel_bo_disable_reuse()
278 return bo->bufmgr->bo_disable_reuse(bo); in drm_intel_bo_disable_reuse()
285 if (bo->bufmgr->bo_is_reusable) in drm_intel_bo_is_reusable()
286 return bo->bufmgr->bo_is_reusable(bo); in drm_intel_bo_is_reusable()
293 if (bo->bufmgr->bo_busy) in drm_intel_bo_busy()
294 return bo->bufmgr->bo_busy(bo); in drm_intel_bo_busy()
301 if (bo->bufmgr->bo_madvise) in drm_intel_bo_madvise()
302 return bo->bufmgr->bo_madvise(bo, madv); in drm_intel_bo_madvise()
309 if (bo->bufmgr->bo_use_48b_address_range) { in drm_intel_bo_use_48b_address_range()
310 bo->bufmgr->bo_use_48b_address_range(bo, enable); in drm_intel_bo_use_48b_address_range()
320 return bo->bufmgr->bo_references(bo, target_bo); in drm_intel_bo_references()
324 drm_intel_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, int crtc_id) in drm_intel_get_pipe_from_crtc_id() argument
326 if (bufmgr->get_pipe_from_crtc_id) in drm_intel_get_pipe_from_crtc_id()
327 return bufmgr->get_pipe_from_crtc_id(bufmgr, crtc_id); in drm_intel_get_pipe_from_crtc_id()