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()
484 int vpu_malone_get_stream_buffer_size(struct vpu_shared_addr *shared) in vpu_malone_get_stream_buffer_size() argument
489 int vpu_malone_config_stream_buffer(struct vpu_shared_addr *shared, in vpu_malone_config_stream_buffer() argument
493 struct malone_iface *iface = shared->iface; in vpu_malone_config_stream_buffer()
494 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_config_stream_buffer()
508 int vpu_malone_get_stream_buffer_desc(struct vpu_shared_addr *shared, in vpu_malone_get_stream_buffer_desc() argument
512 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_get_stream_buffer_desc()
539 int vpu_malone_update_stream_buffer(struct vpu_shared_addr *shared, in vpu_malone_update_stream_buffer() argument
542 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_update_stream_buffer()
595 static void vpu_malone_set_stream_cfg(struct vpu_shared_addr *shared, in vpu_malone_set_stream_cfg() argument
599 struct malone_iface *iface = shared->iface; in vpu_malone_set_stream_cfg()
621 static int vpu_malone_set_params(struct vpu_shared_addr *shared, in vpu_malone_set_params() argument
625 struct malone_iface *iface = shared->iface; in vpu_malone_set_params()
626 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_set_params()
635 vpu_malone_set_stream_cfg(shared, instance, malone_format); in vpu_malone_set_params()
658 static bool vpu_malone_is_non_frame_mode(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_is_non_frame_mode() argument
660 struct malone_iface *iface = shared->iface; in vpu_malone_is_non_frame_mode()
668 static int vpu_malone_update_params(struct vpu_shared_addr *shared, in vpu_malone_update_params() argument
672 struct malone_iface *iface = shared->iface; in vpu_malone_update_params()
681 int vpu_malone_set_decode_params(struct vpu_shared_addr *shared, in vpu_malone_set_decode_params() argument
690 return vpu_malone_set_params(shared, instance, params); in vpu_malone_set_decode_params()
692 return vpu_malone_update_params(shared, instance, params); in vpu_malone_set_decode_params()
1065 int vpu_malone_add_scode(struct vpu_shared_addr *shared, in vpu_malone_add_scode() argument
1071 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_add_scode()
1559 int vpu_malone_input_frame(struct vpu_shared_addr *shared, in vpu_malone_input_frame() argument
1562 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_input_frame()
1569 if (vpu_malone_is_non_frame_mode(shared, inst->id)) in vpu_malone_input_frame()
1599 static bool vpu_malone_check_ready(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_check_ready() argument
1601 struct malone_iface *iface = shared->iface; in vpu_malone_check_ready()
1618 bool vpu_malone_is_ready(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_is_ready() argument
1622 while (!vpu_malone_check_ready(shared, instance)) { in vpu_malone_is_ready()
1631 int vpu_malone_pre_cmd(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_pre_cmd() argument
1633 if (!vpu_malone_is_ready(shared, instance)) in vpu_malone_pre_cmd()
1639 int vpu_malone_post_cmd(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_post_cmd() argument
1641 struct malone_iface *iface = shared->iface; in vpu_malone_post_cmd()
1651 int vpu_malone_init_instance(struct vpu_shared_addr *shared, u32 instance) in vpu_malone_init_instance() argument
1653 struct malone_iface *iface = shared->iface; in vpu_malone_init_instance()
1663 u32 vpu_malone_get_max_instance_count(struct vpu_shared_addr *shared) in vpu_malone_get_max_instance_count() argument
1665 struct malone_iface *iface = shared->iface; in vpu_malone_get_max_instance_count()