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 xe_bo_ggtt_addr(dsb_buf->vma->bo); 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 struct xe_device *xe = dsb_buf->vma->bo->tile->xe; in intel_dsb_buffer_write()
22 iosys_map_wr(&dsb_buf->vma->bo->vmap, idx * 4, u32, val); in intel_dsb_buffer_write()
26 u32 intel_dsb_buffer_read(struct intel_dsb_buffer *dsb_buf, u32 idx) in intel_dsb_buffer_read() argument
28 return iosys_map_rd(&dsb_buf->vma->bo->vmap, idx * 4, u32); in intel_dsb_buffer_read()
31 void intel_dsb_buffer_memset(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val, size_t size) in intel_dsb_buffer_memset() argument
33 struct xe_device *xe = dsb_buf->vma->bo->tile->xe; in intel_dsb_buffer_memset()
35 WARN_ON(idx > (dsb_buf->buf_size - size) / sizeof(*dsb_buf->cmd_buf)); in intel_dsb_buffer_memset()
37 iosys_map_memset(&dsb_buf->vma->bo->vmap, idx * 4, val, size); in intel_dsb_buffer_memset()
41 bool intel_dsb_buffer_create(struct intel_crtc *crtc, struct intel_dsb_buffer *dsb_buf, size_t size) in intel_dsb_buffer_create() argument
62 dsb_buf->vma = vma; in intel_dsb_buffer_create()
63 dsb_buf->buf_size = size; in intel_dsb_buffer_create()
68 void intel_dsb_buffer_cleanup(struct intel_dsb_buffer *dsb_buf) in intel_dsb_buffer_cleanup() argument
70 xe_bo_unpin_map_no_vm(dsb_buf->vma->bo); in intel_dsb_buffer_cleanup()
71 kfree(dsb_buf->vma); in intel_dsb_buffer_cleanup()
74 void intel_dsb_buffer_flush_map(struct intel_dsb_buffer *dsb_buf) in intel_dsb_buffer_flush_map() argument