/linux-master/drivers/media/platform/amphion/ |
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 *ins [all...] |
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 *ins [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 *ins 228 struct vpu_inst { struct [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_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) 34 static void vpu_session_handle_mem_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 58 static void vpu_session_handle_stop_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 65 static void vpu_session_handle_seq_hdr(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 77 static void vpu_session_handle_resolution_change(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 82 static void vpu_session_handle_enc_frame_done(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 92 static void vpu_session_handle_frame_request(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 100 static void vpu_session_handle_frame_release(struct vpu_inst *inst, struct vpu_rpc_event *pkt) 118 static void vpu_session_handle_input_done(struct vpu_inst *ins [all...] |
H A D | vpu_cmds.c | 81 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) 125 static int vpu_session_process_cmd(struct vpu_inst *inst, struct vpu_cmd_t *cmd) 142 static void vpu_process_cmd_request(struct vpu_inst *inst) 163 static int vpu_request_cmd(struct vpu_inst *inst, u32 id, void *data, 191 static void vpu_clear_pending(struct vpu_inst *inst) 217 int vpu_response_cmd(struct vpu_inst *inst, u32 response, u32 handled) 235 void vpu_clear_request(struct vpu_inst *inst) 251 static bool check_is_responsed(struct vpu_inst *inst, unsigned long key) 261 static int sync_session_response(struct vpu_inst *inst, unsigned long key, long timeout, int try) 302 static int vpu_session_send_cmd(struct vpu_inst *ins [all...] |
H A D | vpu_core.h | 13 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index);
|
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) 248 static inline int vpu_iface_config_stream(struct vpu_inst *inst) 311 static inline int vpu_iface_input_frame(struct vpu_inst *inst, 327 static inline int vpu_iface_config_memory_resource(struct vpu_inst *inst, 342 static inline int vpu_iface_config_stream_buffer(struct vpu_inst *inst, 358 static inline int vpu_iface_update_stream_buffer(struct vpu_inst *inst, 369 static inline int vpu_iface_get_stream_buffer_desc(struct vpu_inst *inst, 403 static inline int vpu_iface_set_encode_params(struct vpu_inst *ins [all...] |
H A D | vdec.c | 194 struct vpu_inst *inst = ctrl_to_inst(ctrl); 220 static int vdec_ctrl_init(struct vpu_inst *inst) 263 static void vdec_handle_resolution_change(struct vpu_inst *inst) 285 static int vdec_update_state(struct vpu_inst *inst, enum vpu_codec_state state, u32 force) 311 static void vdec_set_last_buffer_dequeued(struct vpu_inst *inst) 337 struct vpu_inst *inst = to_inst(file); 366 struct vpu_inst *inst = to_inst(file); 397 struct vpu_inst *inst = to_inst(file); 428 static int vdec_s_fmt_common(struct vpu_inst *inst, struct v4l2_format *f) 503 struct vpu_inst *ins [all...] |
H A D | vpu_v4l2.c | 27 void vpu_inst_lock(struct vpu_inst *inst) 32 void vpu_inst_unlock(struct vpu_inst *inst) 66 void vpu_v4l2_set_error(struct vpu_inst *inst) 77 int vpu_notify_eos(struct vpu_inst *inst) 90 int vpu_notify_source_change(struct vpu_inst *inst) 103 int vpu_set_last_buffer_dequeued(struct vpu_inst *inst, bool eos) 124 bool vpu_is_source_empty(struct vpu_inst *inst) 137 static int vpu_init_format(struct vpu_inst *inst, struct vpu_format *fmt) 179 static int vpu_calc_fmt_sizeimage(struct vpu_inst *inst, struct vpu_format *fmt) 229 int vpu_try_fmt_common(struct vpu_inst *ins [all...] |
H A D | vpu_helpers.c | 31 bool vpu_helper_check_type(struct vpu_inst *inst, u32 type) 45 const struct vpu_format *vpu_helper_find_format(struct vpu_inst *inst, u32 type, u32 pixelfmt) 63 const struct vpu_format *vpu_helper_find_sibling(struct vpu_inst *inst, u32 type, u32 pixelfmt) 80 bool vpu_helper_match_format(struct vpu_inst *inst, u32 type, u32 fmta, u32 fmtb) 93 const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index) 115 u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width) 133 u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height) 340 u32 vpu_helper_get_free_space(struct vpu_inst *inst) 355 u32 vpu_helper_get_used_space(struct vpu_inst *inst) 372 struct vpu_inst *ins [all...] |
H A D | venc.c | 105 struct vpu_inst *inst = to_inst(file); 121 struct vpu_inst *inst = to_inst(file); 146 struct vpu_inst *inst = to_inst(file); 178 struct vpu_inst *inst = to_inst(file); 207 struct vpu_inst *inst = to_inst(file); 217 struct vpu_inst *inst = to_inst(file); 269 struct vpu_inst *inst = to_inst(file); 293 struct vpu_inst *inst = to_inst(file); 332 struct vpu_inst *inst = to_inst(file); 386 struct vpu_inst *ins [all...] |
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_core.c | 344 struct vpu_inst *vpu_inst_get(struct vpu_inst *inst) 354 void vpu_inst_put(struct vpu_inst *inst) 412 int vpu_inst_register(struct vpu_inst *inst) 463 int vpu_inst_unregister(struct vpu_inst *inst) 497 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index) 499 struct vpu_inst *inst = NULL; 500 struct vpu_inst *tmp; 517 const struct vpu_core_resources *vpu_get_resource(struct vpu_inst *inst) 752 struct vpu_inst *ins [all...] |
H A D | vpu_dbg.c | 62 struct vpu_inst *inst = s->private; 360 struct vpu_inst *inst = s->private; 421 int vpu_inst_create_dbgfs_file(struct vpu_inst *inst) 446 int vpu_inst_remove_dbgfs_file(struct vpu_inst *inst) 501 void vpu_inst_record_flow(struct vpu_inst *inst, u32 flow)
|
H A D | vpu_rpc.c | 251 struct vpu_iface_ops *vpu_inst_get_iface(struct vpu_inst *inst)
|
H A D | vpu_malone.c | 316 struct vpu_inst *inst; 1528 struct vpu_inst *inst, struct vb2_buffer *vb, 1585 struct vpu_inst *inst, struct vb2_buffer *vb) 1602 static int vpu_malone_input_ts(struct vpu_inst *inst, s64 timestamp, u32 size) 1614 struct vpu_inst *inst, struct vb2_buffer *vb)
|
H A D | vpu_windsor.c | 777 struct vpu_inst *inst = vb2_get_drv_priv(vb->vb2_queue); 804 struct vpu_inst *inst, struct vb2_buffer *vb)
|
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
H A D | venc_vp8_if.c | 118 * @vpu_inst: VPU instance to exchange information between AP and VPU 129 struct venc_vpu_inst vpu_inst; member in struct:venc_vp8_inst 187 handler = inst->vpu_inst.ctx->dev->fw_handler; 240 not_key = !inst->vpu_inst.is_key_frm; 293 ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, NULL); 309 mtk_venc_debug(inst->ctx, "<-size=%d key_frm=%d", *bs_size, inst->vpu_inst.is_key_frm); 324 inst->vpu_inst.ctx = ctx; 325 inst->vpu_inst.id = IPI_VENC_VP8; 328 ret = vpu_enc_init(&inst->vpu_inst); 330 inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst [all...] |
H A D | venc_h264_if.c | 205 * @vpu_inst: VPU instance to exchange information between AP and VPU 220 struct venc_vpu_inst vpu_inst; member in struct:venc_h264_inst 354 handler = inst->vpu_inst.ctx->dev->fw_handler; 375 handler = inst->vpu_inst.ctx->dev->fw_handler; 444 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, bs_buf, NULL); 467 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, bs_buf, NULL); 534 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, 543 if (inst->vpu_inst.state == VEN_IPI_MSG_ENC_STATE_SKIP) { 544 *bs_size = inst->vpu_inst.bs_size; 563 inst->frm_cnt, *bs_size, inst->vpu_inst [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.h | 126 * @vpu_inst: vpu instance pointer. 160 void *vpu_inst; member in struct:mtk_vcodec_enc_ctx
|
H A D | venc_vpu_if.c | 52 if (!IS_ERR_OR_NULL(ctx) && ctx->vpu_inst == vpu) { 140 vpu->ctx->vpu_inst = vpu;
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_drv.h | 174 * @vpu_inst: vpu instance pointer. 219 void *vpu_inst; member in struct:mtk_vcodec_dec_ctx
|
H A D | vdec_vpu_if.c | 82 if (!IS_ERR_OR_NULL(ctx) && ctx->vpu_inst == vpu) { 209 vpu->ctx->vpu_inst = vpu;
|