• Home
  • Raw
  • Download

Lines Matching refs:cur_buf

62       const struct vn_cs_encoder_buffer *cur_buf =  in vn_cs_encoder_sanity_check()  local
64 assert(cur_buf->base <= enc->cur && enc->cur <= enc->end && in vn_cs_encoder_sanity_check()
65 enc->end <= cur_buf->base + enc->current_buffer_size); in vn_cs_encoder_sanity_check()
66 if (cur_buf->committed_size) in vn_cs_encoder_sanity_check()
83 struct vn_cs_encoder_buffer *cur_buf = &enc->buffers[enc->buffer_count++]; in vn_cs_encoder_add_buffer() local
85 cur_buf->shmem = shmem; in vn_cs_encoder_add_buffer()
86 cur_buf->offset = offset; in vn_cs_encoder_add_buffer()
87 cur_buf->base = base; in vn_cs_encoder_add_buffer()
88 cur_buf->committed_size = 0; in vn_cs_encoder_add_buffer()
99 struct vn_cs_encoder_buffer *cur_buf = in vn_cs_encoder_commit_buffer() local
101 const size_t written_size = enc->cur - cur_buf->base; in vn_cs_encoder_commit_buffer()
102 if (cur_buf->committed_size) { in vn_cs_encoder_commit_buffer()
103 assert(cur_buf->committed_size == written_size); in vn_cs_encoder_commit_buffer()
105 cur_buf->committed_size = written_size; in vn_cs_encoder_commit_buffer()
132 struct vn_cs_encoder_buffer *cur_buf = in vn_cs_encoder_gc_buffers() local
138 const size_t used = cur_buf->offset + cur_buf->committed_size; in vn_cs_encoder_gc_buffers()
140 vn_cs_encoder_add_buffer(enc, cur_buf->shmem, used, in vn_cs_encoder_gc_buffers()
141 cur_buf->base + cur_buf->committed_size, in vn_cs_encoder_gc_buffers()
247 const struct vn_cs_encoder_buffer *cur_buf = in vn_cs_encoder_reserve_internal() local
249 if (cur_buf->offset) in vn_cs_encoder_reserve_internal()