Searched refs:stream_buffer (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/media/platform/amphion/ |
D | vpu_helpers.h | 22 int vpu_helper_copy_from_stream_buffer(struct vpu_buffer *stream_buffer, 24 int vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer, 26 int vpu_helper_memset_stream_buffer(struct vpu_buffer *stream_buffer, 33 int vpu_helper_kmp_search_in_stream_buffer(struct vpu_buffer *stream_buffer, 36 int vpu_helper_find_startcode(struct vpu_buffer *stream_buffer, 39 static inline u32 vpu_helper_step_walk(struct vpu_buffer *stream_buffer, u32 pos, u32 step) in vpu_helper_step_walk() argument 42 if (pos > stream_buffer->phys + stream_buffer->length) in vpu_helper_step_walk() 43 pos -= stream_buffer->length; in vpu_helper_step_walk() 48 static inline u8 vpu_helper_read_byte(struct vpu_buffer *stream_buffer, u32 pos) in vpu_helper_read_byte() argument 50 u8 *pdata = (u8 *)stream_buffer->virt; in vpu_helper_read_byte() [all …]
|
D | vpu_helpers.c | 200 int vpu_helper_copy_from_stream_buffer(struct vpu_buffer *stream_buffer, in vpu_helper_copy_from_stream_buffer() argument 208 if (!stream_buffer || !rptr || !dst) in vpu_helper_copy_from_stream_buffer() 215 start = stream_buffer->phys; in vpu_helper_copy_from_stream_buffer() 216 end = start + stream_buffer->length; in vpu_helper_copy_from_stream_buffer() 217 virt = stream_buffer->virt; in vpu_helper_copy_from_stream_buffer() 229 *rptr = vpu_helper_step_walk(stream_buffer, offset, size); in vpu_helper_copy_from_stream_buffer() 234 int vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer, in vpu_helper_copy_to_stream_buffer() argument 242 if (!stream_buffer || !wptr || !src) in vpu_helper_copy_to_stream_buffer() 249 start = stream_buffer->phys; in vpu_helper_copy_to_stream_buffer() 250 end = start + stream_buffer->length; in vpu_helper_copy_to_stream_buffer() [all …]
|
D | vpu_malone.c | 1025 static int vpu_malone_add_padding_scode(struct vpu_buffer *stream_buffer, in vpu_malone_add_padding_scode() argument 1041 if (wptr < stream_buffer->phys || wptr > stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode() 1043 if (wptr == stream_buffer->phys + stream_buffer->length) in vpu_malone_add_padding_scode() 1044 wptr = stream_buffer->phys; in vpu_malone_add_padding_scode() 1047 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode() 1051 ret = vpu_helper_copy_to_stream_buffer(stream_buffer, &wptr, size, (void *)ps->data); in vpu_malone_add_padding_scode() 1057 vpu_helper_memset_stream_buffer(stream_buffer, &wptr, 0, size); in vpu_malone_add_padding_scode() 1066 struct vpu_buffer *stream_buffer, in vpu_malone_add_scode() argument 1078 ret = vpu_malone_add_padding_scode(stream_buffer, str_buf, pixelformat, scode_type); in vpu_malone_add_scode() 1258 ret = vpu_helper_copy_to_stream_buffer(&scode->inst->stream_buffer, in vpu_malone_insert_scode_seq() [all …]
|
D | venc.c | 772 skipped = vpu_helper_find_startcode(&inst->stream_buffer, in venc_precheck_encoded_frame() 774 frame->info.wptr - inst->stream_buffer.phys, in venc_precheck_encoded_frame() 778 frame->info.wptr = vpu_helper_step_walk(&inst->stream_buffer, in venc_precheck_encoded_frame() 821 vpu_helper_copy_from_stream_buffer(&inst->stream_buffer, in venc_get_one_encoded_frame() 940 inst->stream_buffer.length = max_t(u32, stream_buffer_size, venc->cpb_size * 3); in venc_start_session() 941 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in venc_start_session() 946 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in venc_start_session() 984 vpu_free_dma(&inst->stream_buffer); in venc_start_session() 1093 vpu_free_dma(&inst->stream_buffer); in venc_stop_session()
|
D | vpu_malone.h | 33 struct vpu_buffer *stream_buffer,
|
D | vpu_dbg.c | 171 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()
|
D | vpu_rpc.h | 94 struct vpu_buffer *stream_buffer, 433 &inst->stream_buffer, in vpu_iface_add_scode()
|
D | vdec.c | 1367 vpu_free_dma(&inst->stream_buffer); in vdec_stop() 1420 if (!inst->stream_buffer.virt) { in vdec_start() 1423 inst->stream_buffer.length = stream_buffer_size; in vdec_start() 1424 ret = vpu_alloc_dma(inst->core, &inst->stream_buffer); in vdec_start() 1434 vpu_iface_config_stream_buffer(inst, &inst->stream_buffer); in vdec_start() 1456 vpu_free_dma(&inst->stream_buffer); in vdec_start()
|
D | vpu.h | 248 struct vpu_buffer stream_buffer; member
|