Lines Matching refs:shared
345 void vpu_malone_init_rpc(struct vpu_shared_addr *shared, in vpu_malone_init_rpc() argument
360 hc = shared->priv; in vpu_malone_init_rpc()
362 shared->iface = iface; in vpu_malone_init_rpc()
363 shared->boot_addr = boot_addr; in vpu_malone_init_rpc()
371 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc()
372 shared->cmd_mem_vir = rpc->virt + offset; in vpu_malone_init_rpc()
380 shared->msg_desc = &iface->msg_buffer_desc.buffer; in vpu_malone_init_rpc()
381 shared->msg_mem_vir = rpc->virt + offset; in vpu_malone_init_rpc()
444 void vpu_malone_set_log_buf(struct vpu_shared_addr *shared, in vpu_malone_set_log_buf() argument
447 struct malone_iface *iface = shared->iface; in vpu_malone_set_log_buf()
451 iface->debug_buffer_desc.buffer.rptr = log->phys - shared->boot_addr; in vpu_malone_set_log_buf()
460 void vpu_malone_set_system_cfg(struct vpu_shared_addr *shared, in vpu_malone_set_system_cfg() argument
463 struct malone_iface *iface = shared->iface; in vpu_malone_set_system_cfg()
465 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_set_system_cfg()
477 u32 vpu_malone_get_version(struct vpu_shared_addr *shared) in vpu_malone_get_version() argument
479 struct malone_iface *iface = shared->iface; in vpu_malone_get_version()
487 int vpu_malone_get_stream_buffer_size(struct vpu_shared_addr *shared) in vpu_malone_get_stream_buffer_size() argument
492 int vpu_malone_config_stream_buffer(struct vpu_shared_addr *shared, in vpu_malone_config_stream_buffer() argument
496 struct malone_iface *iface = shared->iface; in vpu_malone_config_stream_buffer()
497 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_config_stream_buffer()
511 int vpu_malone_get_stream_buffer_desc(struct vpu_shared_addr *shared, in vpu_malone_get_stream_buffer_desc() argument
515 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_get_stream_buffer_desc()
542 int vpu_malone_update_stream_buffer(struct vpu_shared_addr *shared, in vpu_malone_update_stream_buffer() argument
545 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_update_stream_buffer()
613 static void vpu_malone_set_stream_cfg(struct vpu_shared_addr *shared, in vpu_malone_set_stream_cfg() argument
617 struct malone_iface *iface = shared->iface; in vpu_malone_set_stream_cfg()
639 static int vpu_malone_set_params(struct vpu_shared_addr *shared, in vpu_malone_set_params() argument
643 struct malone_iface *iface = shared->iface; in vpu_malone_set_params()
644 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_set_params()
653 vpu_malone_set_stream_cfg(shared, instance, malone_format); in vpu_malone_set_params()
678 static bool vpu_malone_is_non_frame_mode(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_is_non_frame_mode() argument
680 struct malone_iface *iface = shared->iface; in vpu_malone_is_non_frame_mode()
688 static int vpu_malone_update_params(struct vpu_shared_addr *shared, in vpu_malone_update_params() argument
692 struct malone_iface *iface = shared->iface; in vpu_malone_update_params()
701 int vpu_malone_set_decode_params(struct vpu_shared_addr *shared, in vpu_malone_set_decode_params() argument
710 return vpu_malone_set_params(shared, instance, params); in vpu_malone_set_decode_params()
712 return vpu_malone_update_params(shared, instance, params); in vpu_malone_set_decode_params()
1092 int vpu_malone_add_scode(struct vpu_shared_addr *shared, in vpu_malone_add_scode() argument
1098 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_add_scode()
1613 int vpu_malone_input_frame(struct vpu_shared_addr *shared, in vpu_malone_input_frame() argument
1616 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_input_frame()
1623 if (vpu_malone_is_non_frame_mode(shared, inst->id)) in vpu_malone_input_frame()
1653 static bool vpu_malone_check_ready(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_check_ready() argument
1655 struct malone_iface *iface = shared->iface; in vpu_malone_check_ready()
1672 bool vpu_malone_is_ready(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_is_ready() argument
1676 while (!vpu_malone_check_ready(shared, instance)) { in vpu_malone_is_ready()
1685 int vpu_malone_pre_cmd(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_pre_cmd() argument
1687 if (!vpu_malone_is_ready(shared, instance)) in vpu_malone_pre_cmd()
1693 int vpu_malone_post_cmd(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_post_cmd() argument
1695 struct malone_iface *iface = shared->iface; in vpu_malone_post_cmd()
1705 int vpu_malone_init_instance(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_init_instance() argument
1707 struct malone_iface *iface = shared->iface; in vpu_malone_init_instance()
1717 u32 vpu_malone_get_max_instance_count(struct vpu_shared_addr *shared) in vpu_malone_get_max_instance_count() argument
1719 struct malone_iface *iface = shared->iface; in vpu_malone_get_max_instance_count()