/linux-6.1.9/drivers/media/platform/amphion/ |
D | vpu_v4l2.h | 11 void vpu_inst_lock(struct vpu_inst *inst); 12 void vpu_inst_unlock(struct vpu_inst *inst); 16 int vpu_v4l2_open(struct file *file, struct vpu_inst *inst); 19 const struct vpu_format *vpu_try_fmt_common(struct vpu_inst *inst, struct v4l2_format *f); 20 int vpu_process_output_buffer(struct vpu_inst *inst); 21 int vpu_process_capture_buffer(struct vpu_inst *inst); 22 struct vb2_v4l2_buffer *vpu_next_src_buf(struct vpu_inst *inst); 23 void vpu_skip_frame(struct vpu_inst *inst, int count); 24 struct vb2_v4l2_buffer *vpu_find_buf_by_sequence(struct vpu_inst *inst, u32 type, u32 sequence); 25 struct vb2_v4l2_buffer *vpu_find_buf_by_idx(struct vpu_inst *inst, u32 type, u32 idx); [all …]
|
D | vpu_cmds.h | 9 int vpu_session_configure_codec(struct vpu_inst *inst); 10 int vpu_session_start(struct vpu_inst *inst); 11 int vpu_session_stop(struct vpu_inst *inst); 12 int vpu_session_abort(struct vpu_inst *inst); 13 int vpu_session_rst_buf(struct vpu_inst *inst); 14 int vpu_session_encode_frame(struct vpu_inst *inst, s64 timestamp); 15 int vpu_session_alloc_fs(struct vpu_inst *inst, struct vpu_fs_info *fs); 16 int vpu_session_release_fs(struct vpu_inst *inst, struct vpu_fs_info *fs); 17 int vpu_session_fill_timestamp(struct vpu_inst *inst, struct vpu_ts_info *info); 18 int vpu_session_update_parameters(struct vpu_inst *inst, void *arg); [all …]
|
D | vpu.h | 198 struct vpu_inst; 200 int (*ctrl_init)(struct vpu_inst *inst); 201 int (*start)(struct vpu_inst *inst, u32 type); 202 int (*stop)(struct vpu_inst *inst, u32 type); 203 int (*abort)(struct vpu_inst *inst); 204 bool (*check_ready)(struct vpu_inst *inst, unsigned int type); 205 void (*buf_done)(struct vpu_inst *inst, struct vpu_frame_info *frame); 206 void (*event_notify)(struct vpu_inst *inst, u32 event, void *data); 207 void (*release)(struct vpu_inst *inst); 208 void (*cleanup)(struct vpu_inst *inst); [all …]
|
D | vpu_cmds.c | 82 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() 124 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) in vpu_session_process_cmd() 141 static void vpu_process_cmd_request(struct vpu_inst *inst) in vpu_process_cmd_request() 161 static int vpu_request_cmd(struct vpu_inst *inst, u32 id, void *data, in vpu_request_cmd() 188 static void vpu_clear_pending(struct vpu_inst *inst) in vpu_clear_pending() 214 int vpu_response_cmd(struct vpu_inst *inst, u32 response, u32 handled) in vpu_response_cmd() 232 void vpu_clear_request(struct vpu_inst *inst) in vpu_clear_request() 248 static bool check_is_responsed(struct vpu_inst *inst, unsigned long key) in check_is_responsed() 272 static int sync_session_response(struct vpu_inst *inst, unsigned long key, long timeout, int try) in sync_session_response() 312 static int vpu_session_send_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_session_send_cmd() [all …]
|
D | vpu_msgs.c | 25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt); 28 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_start_done() 33 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_mem_request() 57 static void vpu_session_handle_stop_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_stop_done() 64 static void vpu_session_handle_seq_hdr(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_seq_hdr() 76 static void vpu_session_handle_resolution_change(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_resolution_change() 81 static void vpu_session_handle_enc_frame_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_enc_frame_done() 91 static void vpu_session_handle_frame_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_frame_request() 99 static void vpu_session_handle_frame_release(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_frame_release() 117 static void vpu_session_handle_input_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_input_done() [all …]
|
D | vpu_v4l2.c | 27 void vpu_inst_lock(struct vpu_inst *inst) in vpu_inst_lock() 32 void vpu_inst_unlock(struct vpu_inst *inst) in vpu_inst_unlock() 66 void vpu_v4l2_set_error(struct vpu_inst *inst) in vpu_v4l2_set_error() 77 int vpu_notify_eos(struct vpu_inst *inst) in vpu_notify_eos() 90 int vpu_notify_source_change(struct vpu_inst *inst) in vpu_notify_source_change() 103 int vpu_set_last_buffer_dequeued(struct vpu_inst *inst) in vpu_set_last_buffer_dequeued() 123 bool vpu_is_source_empty(struct vpu_inst *inst) in vpu_is_source_empty() 136 const struct vpu_format *vpu_try_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) in vpu_try_fmt_common() 183 static bool vpu_check_ready(struct vpu_inst *inst, u32 type) in vpu_check_ready() 194 int vpu_process_output_buffer(struct vpu_inst *inst) in vpu_process_output_buffer() [all …]
|
D | vdec.c | 146 static int vdec_ctrl_init(struct vpu_inst *inst) in vdec_ctrl_init() 181 static void vdec_handle_resolution_change(struct vpu_inst *inst) in vdec_handle_resolution_change() 202 static int vdec_update_state(struct vpu_inst *inst, enum vpu_codec_state state, u32 force) in vdec_update_state() 227 static void vdec_set_last_buffer_dequeued(struct vpu_inst *inst) in vdec_set_last_buffer_dequeued() 253 struct vpu_inst *inst = to_inst(file); in vdec_enum_fmt() 283 struct vpu_inst *inst = to_inst(file); in vdec_g_fmt() 314 struct vpu_inst *inst = to_inst(file); in vdec_try_fmt() 336 static int vdec_s_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) in vdec_s_fmt_common() 417 struct vpu_inst *inst = to_inst(file); in vdec_s_fmt() 450 struct vpu_inst *inst = to_inst(file); in vdec_g_selection() [all …]
|
D | vpu_helpers.h | 15 bool vpu_helper_check_type(struct vpu_inst *inst, u32 type); 16 const struct vpu_format *vpu_helper_find_format(struct vpu_inst *inst, u32 type, u32 pixelfmt); 17 const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index); 18 u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width); 19 u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height); 28 u32 vpu_helper_get_free_space(struct vpu_inst *inst); 29 u32 vpu_helper_get_used_space(struct vpu_inst *inst);
|
D | vpu_rpc.h | 70 struct vpu_inst *inst, struct vb2_buffer *vb); 115 struct vpu_iface_ops *vpu_inst_get_iface(struct vpu_inst *inst); 128 static inline bool vpu_iface_check_format(struct vpu_inst *inst, u32 pixelfmt) in vpu_iface_check_format() 248 static inline int vpu_iface_config_stream(struct vpu_inst *inst) in vpu_iface_config_stream() 311 static inline int vpu_iface_input_frame(struct vpu_inst *inst, in vpu_iface_input_frame() 327 static inline int vpu_iface_config_memory_resource(struct vpu_inst *inst, in vpu_iface_config_memory_resource() 342 static inline int vpu_iface_config_stream_buffer(struct vpu_inst *inst, in vpu_iface_config_stream_buffer() 358 static inline int vpu_iface_update_stream_buffer(struct vpu_inst *inst, in vpu_iface_update_stream_buffer() 369 static inline int vpu_iface_get_stream_buffer_desc(struct vpu_inst *inst, in vpu_iface_get_stream_buffer_desc() 403 static inline int vpu_iface_set_encode_params(struct vpu_inst *inst, in vpu_iface_set_encode_params() [all …]
|
D | venc.c | 94 struct vpu_inst *inst = to_inst(file); in venc_enum_fmt() 110 struct vpu_inst *inst = to_inst(file); in venc_enum_framesizes() 135 struct vpu_inst *inst = to_inst(file); in venc_enum_frameintervals() 167 struct vpu_inst *inst = to_inst(file); in venc_g_fmt() 196 struct vpu_inst *inst = to_inst(file); in venc_try_fmt() 205 struct vpu_inst *inst = to_inst(file); in venc_s_fmt() 279 struct vpu_inst *inst = to_inst(file); in venc_g_parm() 302 struct vpu_inst *inst = to_inst(file); in venc_s_parm() 340 struct vpu_inst *inst = to_inst(file); in venc_g_selection() 394 struct vpu_inst *inst = to_inst(file); in venc_s_selection() [all …]
|
D | vpu_helpers.c | 30 bool vpu_helper_check_type(struct vpu_inst *inst, u32 type) in vpu_helper_check_type() 44 const struct vpu_format *vpu_helper_find_format(struct vpu_inst *inst, u32 type, u32 pixelfmt) in vpu_helper_find_format() 62 const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index) in vpu_helper_enum_format() 84 u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width) in vpu_helper_valid_frame_width() 102 u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height) in vpu_helper_valid_frame_height() 304 u32 vpu_helper_get_free_space(struct vpu_inst *inst) in vpu_helper_get_free_space() 319 u32 vpu_helper_get_used_space(struct vpu_inst *inst) in vpu_helper_get_used_space() 336 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vpu_helper_g_volatile_ctrl()
|
D | vpu_core.c | 342 struct vpu_inst *vpu_inst_get(struct vpu_inst *inst) in vpu_inst_get() 352 void vpu_inst_put(struct vpu_inst *inst) in vpu_inst_put() 410 int vpu_inst_register(struct vpu_inst *inst) in vpu_inst_register() 461 int vpu_inst_unregister(struct vpu_inst *inst) in vpu_inst_unregister() 495 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index) in vpu_core_find_instance() 497 struct vpu_inst *inst = NULL; in vpu_core_find_instance() 498 struct vpu_inst *tmp; in vpu_core_find_instance() 515 const struct vpu_core_resources *vpu_get_resource(struct vpu_inst *inst) in vpu_get_resource() 752 struct vpu_inst *inst = NULL; in vpu_core_cancel_work() 765 struct vpu_inst *inst = NULL; in vpu_core_resume_work()
|
D | vpu_dbg.c | 55 struct vpu_inst *inst = s->private; in vpu_dbg_instance() 339 struct vpu_inst *inst = s->private; in vpu_dbg_inst_write() 400 int vpu_inst_create_dbgfs_file(struct vpu_inst *inst) in vpu_inst_create_dbgfs_file() 425 int vpu_inst_remove_dbgfs_file(struct vpu_inst *inst) in vpu_inst_remove_dbgfs_file() 480 void vpu_inst_record_flow(struct vpu_inst *inst, u32 flow) in vpu_inst_record_flow()
|
D | vpu_core.h | 13 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index);
|
D | vpu_windsor.h | 34 struct vpu_inst *inst, struct vb2_buffer *vb);
|
D | vpu_malone.h | 37 struct vpu_inst *inst, struct vb2_buffer *vb);
|
D | vpu_malone.c | 316 struct vpu_inst *inst; 1473 struct vpu_inst *inst, struct vb2_buffer *vb, in vpu_malone_input_frame_data() 1530 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_malone_input_stream_data() 1547 static int vpu_malone_input_ts(struct vpu_inst *inst, s64 timestamp, u32 size) in vpu_malone_input_ts() 1559 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_malone_input_frame()
|
D | vpu_rpc.c | 253 struct vpu_iface_ops *vpu_inst_get_iface(struct vpu_inst *inst) in vpu_inst_get_iface()
|
D | vpu_windsor.c | 800 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_windsor_input_frame()
|
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/venc/ |
D | venc_vp8_if.c | 130 struct venc_vpu_inst vpu_inst; member 195 handler = inst->vpu_inst.ctx->dev->fw_handler; in vp8_enc_alloc_work_buf() 251 not_key = !inst->vpu_inst.is_key_frm; in vp8_enc_compose_one_frame() 305 ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, NULL); in vp8_enc_encode_frame() 322 inst->vpu_inst.is_key_frm); in vp8_enc_encode_frame() 337 inst->vpu_inst.ctx = ctx; in vp8_enc_init() 338 inst->vpu_inst.id = IPI_VENC_VP8; in vp8_enc_init() 343 ret = vpu_enc_init(&inst->vpu_inst); in vp8_enc_init() 345 inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst.vsi; in vp8_enc_init() 377 result->is_key_frm = inst->vpu_inst.is_key_frm; in vp8_enc_encode() [all …]
|
D | venc_h264_if.c | 221 struct venc_vpu_inst vpu_inst; member 361 handler = inst->vpu_inst.ctx->dev->fw_handler; in h264_enc_alloc_work_buf() 383 handler = inst->vpu_inst.ctx->dev->fw_handler; in h264_enc_alloc_work_buf() 457 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, bs_buf, NULL); in h264_encode_sps() 483 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, bs_buf, NULL); in h264_encode_pps() 552 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, in h264_encode_frame() 561 if (inst->vpu_inst.state == VEN_IPI_MSG_ENC_STATE_SKIP) { in h264_encode_frame() 562 *bs_size = inst->vpu_inst.bs_size; in h264_encode_frame() 581 inst->frm_cnt, *bs_size, inst->vpu_inst.is_key_frm); in h264_encode_frame() 613 inst->vpu_inst.ctx = ctx; in h264_enc_init() [all …]
|