Lines Matching refs:stream_buffer

236 int vpu_helper_copy_from_stream_buffer(struct vpu_buffer *stream_buffer,  in vpu_helper_copy_from_stream_buffer()  argument
244 if (!stream_buffer || !rptr || !dst) in vpu_helper_copy_from_stream_buffer()
251 start = stream_buffer->phys; in vpu_helper_copy_from_stream_buffer()
252 end = start + stream_buffer->length; in vpu_helper_copy_from_stream_buffer()
253 virt = stream_buffer->virt; in vpu_helper_copy_from_stream_buffer()
265 *rptr = vpu_helper_step_walk(stream_buffer, offset, size); in vpu_helper_copy_from_stream_buffer()
270 int vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer, in vpu_helper_copy_to_stream_buffer() argument
278 if (!stream_buffer || !wptr || !src) in vpu_helper_copy_to_stream_buffer()
285 start = stream_buffer->phys; in vpu_helper_copy_to_stream_buffer()
286 end = start + stream_buffer->length; in vpu_helper_copy_to_stream_buffer()
287 virt = stream_buffer->virt; in vpu_helper_copy_to_stream_buffer()
298 *wptr = vpu_helper_step_walk(stream_buffer, offset, size); in vpu_helper_copy_to_stream_buffer()
303 int vpu_helper_memset_stream_buffer(struct vpu_buffer *stream_buffer, in vpu_helper_memset_stream_buffer() argument
311 if (!stream_buffer || !wptr) in vpu_helper_memset_stream_buffer()
318 start = stream_buffer->phys; in vpu_helper_memset_stream_buffer()
319 end = start + stream_buffer->length; in vpu_helper_memset_stream_buffer()
320 virt = stream_buffer->virt; in vpu_helper_memset_stream_buffer()
333 offset -= stream_buffer->length; in vpu_helper_memset_stream_buffer()
388 int vpu_helper_find_startcode(struct vpu_buffer *stream_buffer, in vpu_helper_find_startcode() argument
397 if (!stream_buffer || !stream_buffer->virt) in vpu_helper_find_startcode()
410 val = (val << 8) | vpu_helper_read_byte(stream_buffer, offset + i); in vpu_helper_find_startcode()