Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/amphion/
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 …]
Dvpu_helpers.c236 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()
[all …]
Dvpu_malone.c1048 static int vpu_malone_add_padding_scode(struct vpu_buffer *stream_buffer, in vpu_malone_add_padding_scode() argument
1064 if (wptr < stream_buffer->phys || wptr > stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode()
1066 if (wptr == stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode()
1067 wptr = stream_buffer->phys; in vpu_malone_add_padding_scode()
1070 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode()
1074 ret = vpu_helper_copy_to_stream_buffer(stream_buffer, &wptr, size, (void *)ps->data); in vpu_malone_add_padding_scode()
1080 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode()
1089 struct vpu_buffer *stream_buffer, in vpu_malone_add_scode() argument
1101 ret = vpu_malone_add_padding_scode(stream_buffer, str_buf, pixelformat, scode_type); in vpu_malone_add_scode()
1281 ret = vpu_helper_copy_to_stream_buffer(&scode->inst->stream_buffer, in vpu_malone_insert_scode_seq()
[all …]
Dvenc.c765 skipped = vpu_helper_find_startcode(&inst->stream_buffer, in venc_precheck_encoded_frame()
767 frame->info.wptr - inst->stream_buffer.phys, in venc_precheck_encoded_frame()
771 frame->info.wptr = vpu_helper_step_walk(&inst->stream_buffer, in venc_precheck_encoded_frame()
814 vpu_helper_copy_from_stream_buffer(&inst->stream_buffer, in venc_get_one_encoded_frame()
934 inst->stream_buffer.length = max_t(u32, stream_buffer_size, venc->cpb_size * 3); in venc_start_session()
935 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in venc_start_session()
940 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in venc_start_session()
978 vpu_free_dma(&inst->stream_buffer); in venc_start_session()
1087 vpu_free_dma(&inst->stream_buffer); in venc_stop_session()
Dvpu_malone.h33 struct vpu_buffer *stream_buffer,
Dvpu_dbg.c192 inst->stream_buffer.length, in vpu_dbg_instance()
193 &inst->stream_buffer.phys, in vpu_dbg_instance()
194 inst->stream_buffer.length); in vpu_dbg_instance()
Dvpu_rpc.h94 struct vpu_buffer *stream_buffer,
433 &inst->stream_buffer, in vpu_iface_add_scode()
Dvdec.c1467 vpu_free_dma(&inst->stream_buffer); in vdec_stop()
1518 if (!inst->stream_buffer.virt) { in vdec_start()
1521 inst->stream_buffer.length = stream_buffer_size; in vdec_start()
1522 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in vdec_start()
1532 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in vdec_start()
1554 vpu_free_dma(&inst->stream_buffer); in vdec_start()
Dvpu.h249 struct vpu_buffer stream_buffer; member