Lines Matching refs:dsb_buf

13 u32 intel_dsb_buffer_ggtt_offset(struct intel_dsb_buffer *dsb_buf)  in intel_dsb_buffer_ggtt_offset()  argument
15 return i915_ggtt_offset(dsb_buf->vma); in intel_dsb_buffer_ggtt_offset()
18 void intel_dsb_buffer_write(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val) in intel_dsb_buffer_write() argument
20 dsb_buf->cmd_buf[idx] = val; in intel_dsb_buffer_write()
23 u32 intel_dsb_buffer_read(struct intel_dsb_buffer *dsb_buf, u32 idx) in intel_dsb_buffer_read() argument
25 return dsb_buf->cmd_buf[idx]; in intel_dsb_buffer_read()
28 void intel_dsb_buffer_memset(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val, size_t size) in intel_dsb_buffer_memset() argument
30 WARN_ON(idx > (dsb_buf->buf_size - size) / sizeof(*dsb_buf->cmd_buf)); in intel_dsb_buffer_memset()
32 memset(&dsb_buf->cmd_buf[idx], val, size); in intel_dsb_buffer_memset()
35 bool intel_dsb_buffer_create(struct intel_crtc *crtc, struct intel_dsb_buffer *dsb_buf, size_t size) in intel_dsb_buffer_create() argument
67 dsb_buf->vma = vma; in intel_dsb_buffer_create()
68 dsb_buf->cmd_buf = buf; in intel_dsb_buffer_create()
69 dsb_buf->buf_size = size; in intel_dsb_buffer_create()
74 void intel_dsb_buffer_cleanup(struct intel_dsb_buffer *dsb_buf) in intel_dsb_buffer_cleanup() argument
76 i915_vma_unpin_and_release(&dsb_buf->vma, I915_VMA_RELEASE_MAP); in intel_dsb_buffer_cleanup()
79 void intel_dsb_buffer_flush_map(struct intel_dsb_buffer *dsb_buf) in intel_dsb_buffer_flush_map() argument
81 i915_gem_object_flush_map(dsb_buf->vma->obj); in intel_dsb_buffer_flush_map()