/openbmc/linux/drivers/media/platform/amphion/ |
H A 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); 20 int vpu_try_fmt_common(struct vpu_inst *inst, struct v4l2_format *f, struct vpu_format *fmt); 21 int vpu_process_output_buffer(struct vpu_inst *inst); 22 int vpu_process_capture_buffer(struct vpu_inst *inst); 23 struct vb2_v4l2_buffer *vpu_next_src_buf(struct vpu_inst *inst); 24 void vpu_skip_frame(struct vpu_inst *inst, int count); 25 struct vb2_v4l2_buffer *vpu_find_buf_by_sequence(struct vpu_inst *inst, u32 type, u32 sequence); 26 struct vb2_v4l2_buffer *vpu_find_buf_by_idx(struct vpu_inst *inst, u32 type, u32 idx); [all …]
|
H A 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 …]
|
H A D | vpu.h | 199 struct vpu_inst; 201 int (*ctrl_init)(struct vpu_inst *inst); 202 int (*start)(struct vpu_inst *inst, u32 type); 203 int (*stop)(struct vpu_inst *inst, u32 type); 204 int (*abort)(struct vpu_inst *inst); 205 bool (*check_ready)(struct vpu_inst *inst, unsigned int type); 206 void (*buf_done)(struct vpu_inst *inst, struct vpu_frame_info *frame); 207 void (*event_notify)(struct vpu_inst *inst, u32 event, void *data); 208 void (*release)(struct vpu_inst *inst); 209 void (*cleanup)(struct vpu_inst *inst); [all …]
|
H A D | vpu_cmds.c | 81 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() 125 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) in vpu_session_process_cmd() 142 static void vpu_process_cmd_request(struct vpu_inst *inst) in vpu_process_cmd_request() 163 static int vpu_request_cmd(struct vpu_inst *inst, u32 id, void *data, in vpu_request_cmd() 191 static void vpu_clear_pending(struct vpu_inst *inst) in vpu_clear_pending() 217 int vpu_response_cmd(struct vpu_inst *inst, u32 response, u32 handled) in vpu_response_cmd() 235 void vpu_clear_request(struct vpu_inst *inst) in vpu_clear_request() 251 static bool check_is_responsed(struct vpu_inst *inst, unsigned long key) in check_is_responsed() 261 static int sync_session_response(struct vpu_inst *inst, unsigned long key, long timeout, int try) in sync_session_response() 302 static int vpu_session_send_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_session_send_cmd() [all …]
|
H A D | vpu_msgs.c | 25 void (*done)(struct vpu_inst *inst, struct vpu_rpc_event *pkt); 29 static void vpu_session_handle_start_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_start_done() 34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_mem_request() 58 static void vpu_session_handle_stop_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_stop_done() 65 static void vpu_session_handle_seq_hdr(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_seq_hdr() 77 static void vpu_session_handle_resolution_change(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_resolution_change() 82 static void vpu_session_handle_enc_frame_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_enc_frame_done() 92 static void vpu_session_handle_frame_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_frame_request() 100 static void vpu_session_handle_frame_release(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_frame_release() 118 static void vpu_session_handle_input_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) in vpu_session_handle_input_done() [all …]
|
H A 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_find_sibling(struct vpu_inst *inst, u32 type, u32 pixelfmt); 18 bool vpu_helper_match_format(struct vpu_inst *inst, u32 type, u32 fmta, u32 fmtb); 19 const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index); 20 u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width); 21 u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height); 30 u32 vpu_helper_get_free_space(struct vpu_inst *inst); 31 u32 vpu_helper_get_used_space(struct vpu_inst *inst);
|
H A 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, bool eos) in vpu_set_last_buffer_dequeued() 124 bool vpu_is_source_empty(struct vpu_inst *inst) in vpu_is_source_empty() 137 static int vpu_init_format(struct vpu_inst *inst, struct vpu_format *fmt) in vpu_init_format() 179 static int vpu_calc_fmt_sizeimage(struct vpu_inst *inst, struct vpu_format *fmt) in vpu_calc_fmt_sizeimage() 229 int vpu_try_fmt_common(struct vpu_inst *inst, struct v4l2_format *f, struct vpu_format *fmt) in vpu_try_fmt_common() [all …]
|
H A D | vdec.c | 194 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl() 218 static int vdec_ctrl_init(struct vpu_inst *inst) in vdec_ctrl_init() 261 static void vdec_handle_resolution_change(struct vpu_inst *inst) in vdec_handle_resolution_change() 283 static int vdec_update_state(struct vpu_inst *inst, enum vpu_codec_state state, u32 force) in vdec_update_state() 309 static void vdec_set_last_buffer_dequeued(struct vpu_inst *inst) in vdec_set_last_buffer_dequeued() 335 struct vpu_inst *inst = to_inst(file); in vdec_enum_fmt() 364 struct vpu_inst *inst = to_inst(file); in vdec_g_fmt() 395 struct vpu_inst *inst = to_inst(file); in vdec_try_fmt() 426 static int vdec_s_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) in vdec_s_fmt_common() 501 struct vpu_inst *inst = to_inst(file); in vdec_s_fmt() [all …]
|
H A 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 …]
|
H A D | venc.c | 105 struct vpu_inst *inst = to_inst(file); in venc_enum_fmt() 121 struct vpu_inst *inst = to_inst(file); in venc_enum_framesizes() 146 struct vpu_inst *inst = to_inst(file); in venc_enum_frameintervals() 178 struct vpu_inst *inst = to_inst(file); in venc_g_fmt() 207 struct vpu_inst *inst = to_inst(file); in venc_try_fmt() 217 struct vpu_inst *inst = to_inst(file); in venc_s_fmt() 269 struct vpu_inst *inst = to_inst(file); in venc_g_parm() 293 struct vpu_inst *inst = to_inst(file); in venc_s_parm() 332 struct vpu_inst *inst = to_inst(file); in venc_g_selection() 386 struct vpu_inst *inst = to_inst(file); in venc_s_selection() [all …]
|
H A D | vpu_helpers.c | 31 bool vpu_helper_check_type(struct vpu_inst *inst, u32 type) in vpu_helper_check_type() 45 const struct vpu_format *vpu_helper_find_format(struct vpu_inst *inst, u32 type, u32 pixelfmt) in vpu_helper_find_format() 63 const struct vpu_format *vpu_helper_find_sibling(struct vpu_inst *inst, u32 type, u32 pixelfmt) in vpu_helper_find_sibling() 80 bool vpu_helper_match_format(struct vpu_inst *inst, u32 type, u32 fmta, u32 fmtb) in vpu_helper_match_format() 93 const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index) in vpu_helper_enum_format() 115 u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width) in vpu_helper_valid_frame_width() 133 u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height) in vpu_helper_valid_frame_height() 340 u32 vpu_helper_get_free_space(struct vpu_inst *inst) in vpu_helper_get_free_space() 355 u32 vpu_helper_get_used_space(struct vpu_inst *inst) in vpu_helper_get_used_space() 372 struct vpu_inst *inst = ctrl_to_inst(ctrl); in vpu_helper_g_volatile_ctrl()
|
H A D | vpu_core.c | 344 struct vpu_inst *vpu_inst_get(struct vpu_inst *inst) in vpu_inst_get() 354 void vpu_inst_put(struct vpu_inst *inst) in vpu_inst_put() 412 int vpu_inst_register(struct vpu_inst *inst) in vpu_inst_register() 463 int vpu_inst_unregister(struct vpu_inst *inst) in vpu_inst_unregister() 497 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index) in vpu_core_find_instance() 499 struct vpu_inst *inst = NULL; in vpu_core_find_instance() 500 struct vpu_inst *tmp; in vpu_core_find_instance() 517 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()
|
H A D | vpu_dbg.c | 62 struct vpu_inst *inst = s->private; in vpu_dbg_instance() 346 struct vpu_inst *inst = s->private; in vpu_dbg_inst_write() 407 int vpu_inst_create_dbgfs_file(struct vpu_inst *inst) in vpu_inst_create_dbgfs_file() 432 int vpu_inst_remove_dbgfs_file(struct vpu_inst *inst) in vpu_inst_remove_dbgfs_file() 487 void vpu_inst_record_flow(struct vpu_inst *inst, u32 flow) in vpu_inst_record_flow()
|
H A D | vpu_core.h | 13 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index);
|
H A D | vpu_windsor.h | 34 struct vpu_inst *inst, struct vb2_buffer *vb);
|
H A D | vpu_malone.h | 37 struct vpu_inst *inst, struct vb2_buffer *vb);
|
H A D | vpu_malone.c | 316 struct vpu_inst *inst; 1528 struct vpu_inst *inst, struct vb2_buffer *vb, in vpu_malone_input_frame_data() 1585 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_malone_input_stream_data() 1602 static int vpu_malone_input_ts(struct vpu_inst *inst, s64 timestamp, u32 size) in vpu_malone_input_ts() 1614 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_malone_input_frame()
|
H A D | vpu_rpc.c | 251 struct vpu_iface_ops *vpu_inst_get_iface(struct vpu_inst *inst) in vpu_inst_get_iface()
|
H A D | vpu_windsor.c | 777 struct vpu_inst *inst = vb2_get_drv_priv(vb->vb2_queue); in vpu_windsor_fill_yuv_frame() 804 struct vpu_inst *inst, struct vb2_buffer *vb) in vpu_windsor_input_frame()
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
H A D | venc_vp8_if.c | 129 struct venc_vpu_inst vpu_inst; member 187 handler = inst->vpu_inst.ctx->dev->fw_handler; in vp8_enc_alloc_work_buf() 240 not_key = !inst->vpu_inst.is_key_frm; in vp8_enc_compose_one_frame() 293 ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, NULL); in vp8_enc_encode_frame() 309 mtk_venc_debug(inst->ctx, "<-size=%d key_frm=%d", *bs_size, inst->vpu_inst.is_key_frm); in vp8_enc_encode_frame() 324 inst->vpu_inst.ctx = ctx; in vp8_enc_init() 325 inst->vpu_inst.id = IPI_VENC_VP8; in vp8_enc_init() 328 ret = vpu_enc_init(&inst->vpu_inst); in vp8_enc_init() 330 inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst.vsi; in vp8_enc_init() 358 result->is_key_frm = inst->vpu_inst.is_key_frm; in vp8_enc_encode() [all …]
|
H A D | venc_h264_if.c | 220 struct venc_vpu_inst vpu_inst; member 355 handler = inst->vpu_inst.ctx->dev->fw_handler; in h264_enc_alloc_work_buf() 376 handler = inst->vpu_inst.ctx->dev->fw_handler; in h264_enc_alloc_work_buf() 445 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, bs_buf, NULL); in h264_encode_sps() 468 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, bs_buf, NULL); in h264_encode_pps() 535 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, in h264_encode_frame() 544 if (inst->vpu_inst.state == VEN_IPI_MSG_ENC_STATE_SKIP) { in h264_encode_frame() 545 *bs_size = inst->vpu_inst.bs_size; in h264_encode_frame() 564 inst->frm_cnt, *bs_size, inst->vpu_inst.is_key_frm); in h264_encode_frame() 596 inst->vpu_inst.ctx = ctx; in h264_enc_init() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_vpu_if.c | 82 if (!IS_ERR_OR_NULL(ctx) && ctx->vpu_inst == vpu) { in vpu_dec_check_ap_inst() 209 vpu->ctx->vpu_inst = vpu; in vpu_dec_init()
|
H A D | mtk_vcodec_dec_drv.h | 209 void *vpu_inst; member
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | venc_vpu_if.c | 52 if (!IS_ERR_OR_NULL(ctx) && ctx->vpu_inst == vpu) { in vpu_enc_check_ap_inst() 140 vpu->ctx->vpu_inst = vpu; in vpu_enc_init()
|
H A D | mtk_vcodec_enc_drv.h | 160 void *vpu_inst; member
|