Home
last modified time | relevance | path

Searched refs:stream_buffer (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/drivers/media/platform/amphion/
A Dvpu_helpers.h24 int vpu_helper_copy_from_stream_buffer(struct vpu_buffer *stream_buffer,
26 int vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer,
28 int vpu_helper_memset_stream_buffer(struct vpu_buffer *stream_buffer,
35 int vpu_helper_kmp_search_in_stream_buffer(struct vpu_buffer *stream_buffer,
38 int vpu_helper_find_startcode(struct vpu_buffer *stream_buffer,
41 static inline u32 vpu_helper_step_walk(struct vpu_buffer *stream_buffer, u32 pos, u32 step) in vpu_helper_step_walk() argument
44 if (pos > stream_buffer->phys + stream_buffer->length) in vpu_helper_step_walk()
45 pos -= stream_buffer->length; in vpu_helper_step_walk()
50 static inline u8 vpu_helper_read_byte(struct vpu_buffer *stream_buffer, u32 pos) in vpu_helper_read_byte() argument
52 u8 *pdata = (u8 *)stream_buffer->virt; in vpu_helper_read_byte()
[all …]
A Dvpu_helpers.c243 if (!stream_buffer || !rptr || !dst) in vpu_helper_copy_from_stream_buffer()
250 start = stream_buffer->phys; in vpu_helper_copy_from_stream_buffer()
251 end = start + stream_buffer->length; in vpu_helper_copy_from_stream_buffer()
252 virt = stream_buffer->virt; in vpu_helper_copy_from_stream_buffer()
284 start = stream_buffer->phys; in vpu_helper_copy_to_stream_buffer()
286 virt = stream_buffer->virt; in vpu_helper_copy_to_stream_buffer()
310 if (!stream_buffer || !wptr) in vpu_helper_memset_stream_buffer()
317 start = stream_buffer->phys; in vpu_helper_memset_stream_buffer()
319 virt = stream_buffer->virt; in vpu_helper_memset_stream_buffer()
332 offset -= stream_buffer->length; in vpu_helper_memset_stream_buffer()
[all …]
A Dvpu_malone.c1042 if (wptr < stream_buffer->phys || wptr > stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode()
1044 if (wptr == stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode()
1045 wptr = stream_buffer->phys; in vpu_malone_add_padding_scode()
1048 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode()
1058 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode()
1067 struct vpu_buffer *stream_buffer, in vpu_malone_add_scode() argument
1259 ret = vpu_helper_copy_to_stream_buffer(&scode->inst->stream_buffer, in vpu_malone_insert_scode_seq()
1279 ret = vpu_helper_copy_to_stream_buffer(&scode->inst->stream_buffer, in vpu_malone_insert_scode_pic()
1506 ret = vpu_helper_copy_to_stream_buffer(&inst->stream_buffer, in vpu_malone_input_frame_data()
1519 &inst->stream_buffer, in vpu_malone_input_frame_data()
[all …]
A Dvenc.c762 skipped = vpu_helper_find_startcode(&inst->stream_buffer, in venc_precheck_encoded_frame()
764 frame->info.wptr - inst->stream_buffer.phys, in venc_precheck_encoded_frame()
768 frame->info.wptr = vpu_helper_step_walk(&inst->stream_buffer, in venc_precheck_encoded_frame()
811 vpu_helper_copy_from_stream_buffer(&inst->stream_buffer, in venc_get_one_encoded_frame()
930 inst->stream_buffer.length = max_t(u32, stream_buffer_size, venc->cpb_size * 3); in venc_start_session()
931 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in venc_start_session()
936 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in venc_start_session()
974 vpu_free_dma(&inst->stream_buffer); in venc_start_session()
1083 vpu_free_dma(&inst->stream_buffer); in venc_stop_session()
A Dvpu_malone.h33 struct vpu_buffer *stream_buffer,
A Dvpu_dbg.c171 inst->stream_buffer.length, in vpu_dbg_instance()
172 &inst->stream_buffer.phys, in vpu_dbg_instance()
173 inst->stream_buffer.length); in vpu_dbg_instance()
A Dvpu_rpc.h94 struct vpu_buffer *stream_buffer,
433 &inst->stream_buffer, in vpu_iface_add_scode()
A Dvdec.c1392 vpu_free_dma(&inst->stream_buffer); in vdec_stop()
1445 if (!inst->stream_buffer.virt) { in vdec_start()
1448 inst->stream_buffer.length = stream_buffer_size; in vdec_start()
1449 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in vdec_start()
1459 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in vdec_start()
1481 vpu_free_dma(&inst->stream_buffer); in vdec_start()
A Dvpu.h250 struct vpu_buffer stream_buffer; member

Completed in 22 milliseconds