Lines Matching full:shared
510 static struct vpu_enc_yuv_desc *get_yuv_desc(struct vpu_shared_addr *shared, in get_yuv_desc() argument
513 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_yuv_desc()
518 static struct vpu_enc_mem_pool *get_mem_pool(struct vpu_shared_addr *shared, in get_mem_pool() argument
521 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_mem_pool()
526 static struct vpu_rpc_buffer_desc *get_stream_buf_desc(struct vpu_shared_addr *shared, in get_stream_buf_desc() argument
529 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_stream_buf_desc()
534 static struct vpu_enc_expert_mode_param *get_expert_param(struct vpu_shared_addr *shared, in get_expert_param() argument
537 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_expert_param()
542 static struct vpu_enc_param *get_enc_param(struct vpu_shared_addr *shared, u32 instance) in get_enc_param() argument
544 struct vpu_enc_host_ctrls *hcs = shared->priv; in get_enc_param()
554 void vpu_windsor_init_rpc(struct vpu_shared_addr *shared, in vpu_windsor_init_rpc() argument
570 shared->iface = iface; in vpu_windsor_init_rpc()
571 shared->boot_addr = boot_addr; in vpu_windsor_init_rpc()
572 hcs = shared->priv; in vpu_windsor_init_rpc()
579 shared->cmd_desc = &iface->cmd_buffer_desc; in vpu_windsor_init_rpc()
580 shared->cmd_mem_vir = rpc->virt + offset; in vpu_windsor_init_rpc()
588 shared->msg_desc = &iface->msg_buffer_desc; in vpu_windsor_init_rpc()
589 shared->msg_mem_vir = rpc->virt + offset; in vpu_windsor_init_rpc()
635 void vpu_windsor_set_log_buf(struct vpu_shared_addr *shared, struct vpu_buffer *log) in vpu_windsor_set_log_buf() argument
637 struct windsor_iface *iface = shared->iface; in vpu_windsor_set_log_buf()
641 iface->log_buffer_desc.rptr = log->phys - shared->boot_addr; in vpu_windsor_set_log_buf()
645 void vpu_windsor_set_system_cfg(struct vpu_shared_addr *shared, in vpu_windsor_set_system_cfg() argument
648 struct windsor_iface *iface = shared->iface; in vpu_windsor_set_system_cfg()
654 int vpu_windsor_get_stream_buffer_size(struct vpu_shared_addr *shared) in vpu_windsor_get_stream_buffer_size() argument
775 static int vpu_windsor_fill_yuv_frame(struct vpu_shared_addr *shared, in vpu_windsor_fill_yuv_frame() argument
787 desc = get_yuv_desc(shared, instance); in vpu_windsor_fill_yuv_frame()
805 int vpu_windsor_input_frame(struct vpu_shared_addr *shared, in vpu_windsor_input_frame() argument
808 vpu_windsor_fill_yuv_frame(shared, inst->id, vb); in vpu_windsor_input_frame()
812 int vpu_windsor_config_memory_resource(struct vpu_shared_addr *shared, in vpu_windsor_config_memory_resource() argument
824 pool = get_mem_pool(shared, instance); in vpu_windsor_config_memory_resource()
847 res->virt = buf->phys - shared->boot_addr; in vpu_windsor_config_memory_resource()
853 int vpu_windsor_config_stream_buffer(struct vpu_shared_addr *shared, in vpu_windsor_config_stream_buffer() argument
860 desc = get_stream_buf_desc(shared, instance); in vpu_windsor_config_stream_buffer()
861 expert = get_expert_param(shared, instance); in vpu_windsor_config_stream_buffer()
877 int vpu_windsor_update_stream_buffer(struct vpu_shared_addr *shared, in vpu_windsor_update_stream_buffer() argument
882 desc = get_stream_buf_desc(shared, instance); in vpu_windsor_update_stream_buffer()
894 int vpu_windsor_get_stream_buffer_desc(struct vpu_shared_addr *shared, in vpu_windsor_get_stream_buffer_desc() argument
899 rpc_desc = get_stream_buf_desc(shared, instance); in vpu_windsor_get_stream_buffer_desc()
910 u32 vpu_windsor_get_version(struct vpu_shared_addr *shared) in vpu_windsor_get_version() argument
912 struct windsor_iface *iface = shared->iface; in vpu_windsor_get_version()
1091 static int vpu_windsor_update_bitrate(struct vpu_shared_addr *shared, in vpu_windsor_update_bitrate() argument
1097 windsor = get_enc_param(shared, instance); in vpu_windsor_update_bitrate()
1098 expert = get_expert_param(shared, instance); in vpu_windsor_update_bitrate()
1115 static int vpu_windsor_set_params(struct vpu_shared_addr *shared, in vpu_windsor_set_params() argument
1121 windsor = get_enc_param(shared, instance); in vpu_windsor_set_params()
1146 static int vpu_windsor_update_params(struct vpu_shared_addr *shared, in vpu_windsor_update_params() argument
1151 expert = get_expert_param(shared, instance); in vpu_windsor_update_params()
1157 vpu_windsor_update_bitrate(shared, instance, params); in vpu_windsor_update_params()
1163 int vpu_windsor_set_encode_params(struct vpu_shared_addr *shared, in vpu_windsor_set_encode_params() argument
1170 return vpu_windsor_set_params(shared, instance, params); in vpu_windsor_set_encode_params()
1172 return vpu_windsor_update_params(shared, instance, params); in vpu_windsor_set_encode_params()
1175 u32 vpu_windsor_get_max_instance_count(struct vpu_shared_addr *shared) in vpu_windsor_get_max_instance_count() argument
1177 struct windsor_iface *iface = shared->iface; in vpu_windsor_get_max_instance_count()