Lines Matching refs:iface
343 struct malone_iface *iface; in vpu_malone_init_rpc() local
353 iface = rpc->virt; in vpu_malone_init_rpc()
357 shared->iface = iface; in vpu_malone_init_rpc()
360 iface->exec_base_addr = base_phy_addr; in vpu_malone_init_rpc()
361 iface->exec_area_size = rpc->length; in vpu_malone_init_rpc()
366 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc()
368 iface->cmd_buffer_desc.buffer.start = in vpu_malone_init_rpc()
369 iface->cmd_buffer_desc.buffer.rptr = in vpu_malone_init_rpc()
370 iface->cmd_buffer_desc.buffer.wptr = phy_addr; in vpu_malone_init_rpc()
371 iface->cmd_buffer_desc.buffer.end = iface->cmd_buffer_desc.buffer.start + CMD_SIZE; in vpu_malone_init_rpc()
375 shared->msg_desc = &iface->msg_buffer_desc.buffer; in vpu_malone_init_rpc()
377 iface->msg_buffer_desc.buffer.start = in vpu_malone_init_rpc()
378 iface->msg_buffer_desc.buffer.wptr = in vpu_malone_init_rpc()
379 iface->msg_buffer_desc.buffer.rptr = phy_addr; in vpu_malone_init_rpc()
380 iface->msg_buffer_desc.buffer.end = iface->msg_buffer_desc.buffer.start + MSG_SIZE; in vpu_malone_init_rpc()
384 iface->codec_param_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
389 iface->jpeg_param_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
394 iface->seq_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
399 iface->pic_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
404 iface->gop_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
409 iface->qmeter_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
414 iface->dbglog_desc.addr = phy_addr; in vpu_malone_init_rpc()
415 iface->dbglog_desc.size = DBGLOG_SIZE; in vpu_malone_init_rpc()
421 iface->eng_access_buff_desc[i].buffer.start = in vpu_malone_init_rpc()
422 iface->eng_access_buff_desc[i].buffer.wptr = in vpu_malone_init_rpc()
423 iface->eng_access_buff_desc[i].buffer.rptr = phy_addr; in vpu_malone_init_rpc()
424 iface->eng_access_buff_desc[i].buffer.end = in vpu_malone_init_rpc()
425 iface->eng_access_buff_desc[i].buffer.start + ENG_SIZE; in vpu_malone_init_rpc()
431 iface->encrypt_info[i] = phy_addr; in vpu_malone_init_rpc()
442 struct malone_iface *iface = shared->iface; in vpu_malone_set_log_buf() local
444 iface->debug_buffer_desc.buffer.start = in vpu_malone_set_log_buf()
445 iface->debug_buffer_desc.buffer.wptr = in vpu_malone_set_log_buf()
446 iface->debug_buffer_desc.buffer.rptr = log->phys - shared->boot_addr; in vpu_malone_set_log_buf()
447 iface->debug_buffer_desc.buffer.end = iface->debug_buffer_desc.buffer.start + log->length; in vpu_malone_set_log_buf()
458 struct malone_iface *iface = shared->iface; in vpu_malone_set_system_cfg() local
459 struct vpu_rpc_system_config *config = &iface->system_cfg; in vpu_malone_set_system_cfg()
474 struct malone_iface *iface = shared->iface; in vpu_malone_get_version() local
476 vpu_malone_enable_format(V4L2_PIX_FMT_RV30, iface->fw_version & MALONE_DEC_FMT_RV_MASK); in vpu_malone_get_version()
477 vpu_malone_enable_format(V4L2_PIX_FMT_RV40, iface->fw_version & MALONE_DEC_FMT_RV_MASK); in vpu_malone_get_version()
479 return iface->fw_version; in vpu_malone_get_version()
491 struct malone_iface *iface = shared->iface; in vpu_malone_config_stream_buffer() local
501 iface->stream_buffer_desc[instance][0] = hc->buf_addr[instance]; in vpu_malone_config_stream_buffer()
612 struct malone_iface *iface = shared->iface; in vpu_malone_set_stream_cfg() local
613 u32 *curr_str_cfg = &iface->stream_config[instance]; in vpu_malone_set_stream_cfg()
638 struct malone_iface *iface = shared->iface; in vpu_malone_set_params() local
645 iface->udata_buffer[instance].base = params->udata.base; in vpu_malone_set_params()
646 iface->udata_buffer[instance].slot_size = params->udata.size; in vpu_malone_set_params()
661 iface->dbglog_desc.level = 0; in vpu_malone_set_params()
664 iface->stream_buff_info[instance].stream_input_mode = NON_FRAME_LVL; in vpu_malone_set_params()
666 iface->stream_buff_info[instance].stream_input_mode = FRAME_LVL; in vpu_malone_set_params()
667 iface->stream_buff_info[instance].stream_buffer_threshold = 0; in vpu_malone_set_params()
668 iface->stream_buff_info[instance].stream_pic_input_count = 0; in vpu_malone_set_params()
675 struct malone_iface *iface = shared->iface; in vpu_malone_is_non_frame_mode() local
677 if (iface->stream_buff_info[instance].stream_input_mode == NON_FRAME_LVL) in vpu_malone_is_non_frame_mode()
687 struct malone_iface *iface = shared->iface; in vpu_malone_update_params() local
690 iface->stream_buff_info[instance].stream_pic_end_flag = params->end_flag; in vpu_malone_update_params()
1566 ret = vpu_malone_add_scode(inst->core->iface, in vpu_malone_input_frame_data()
1650 struct malone_iface *iface = shared->iface; in vpu_malone_check_ready() local
1651 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_check_ready()
1690 struct malone_iface *iface = shared->iface; in vpu_malone_post_cmd() local
1691 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_post_cmd()
1702 struct malone_iface *iface = shared->iface; in vpu_malone_init_instance() local
1703 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_init_instance()
1714 struct malone_iface *iface = shared->iface; in vpu_malone_get_max_instance_count() local
1716 return iface->max_streams; in vpu_malone_get_max_instance_count()