Lines Matching refs:iface
348 struct malone_iface *iface; in vpu_malone_init_rpc() local
358 iface = rpc->virt; in vpu_malone_init_rpc()
362 shared->iface = iface; in vpu_malone_init_rpc()
365 iface->exec_base_addr = base_phy_addr; in vpu_malone_init_rpc()
366 iface->exec_area_size = rpc->length; in vpu_malone_init_rpc()
371 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc()
373 iface->cmd_buffer_desc.buffer.start = in vpu_malone_init_rpc()
374 iface->cmd_buffer_desc.buffer.rptr = in vpu_malone_init_rpc()
375 iface->cmd_buffer_desc.buffer.wptr = phy_addr; in vpu_malone_init_rpc()
376 iface->cmd_buffer_desc.buffer.end = iface->cmd_buffer_desc.buffer.start + CMD_SIZE; in vpu_malone_init_rpc()
380 shared->msg_desc = &iface->msg_buffer_desc.buffer; in vpu_malone_init_rpc()
382 iface->msg_buffer_desc.buffer.start = in vpu_malone_init_rpc()
383 iface->msg_buffer_desc.buffer.wptr = in vpu_malone_init_rpc()
384 iface->msg_buffer_desc.buffer.rptr = phy_addr; in vpu_malone_init_rpc()
385 iface->msg_buffer_desc.buffer.end = iface->msg_buffer_desc.buffer.start + MSG_SIZE; in vpu_malone_init_rpc()
389 iface->codec_param_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
394 iface->jpeg_param_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
399 iface->seq_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
404 iface->pic_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
409 iface->gop_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
414 iface->qmeter_info_tab_desc.array_base = phy_addr; in vpu_malone_init_rpc()
419 iface->dbglog_desc.addr = phy_addr; in vpu_malone_init_rpc()
420 iface->dbglog_desc.size = DBGLOG_SIZE; in vpu_malone_init_rpc()
426 iface->eng_access_buff_desc[i].buffer.start = in vpu_malone_init_rpc()
427 iface->eng_access_buff_desc[i].buffer.wptr = in vpu_malone_init_rpc()
428 iface->eng_access_buff_desc[i].buffer.rptr = phy_addr; in vpu_malone_init_rpc()
429 iface->eng_access_buff_desc[i].buffer.end = in vpu_malone_init_rpc()
430 iface->eng_access_buff_desc[i].buffer.start + ENG_SIZE; in vpu_malone_init_rpc()
436 iface->encrypt_info[i] = phy_addr; in vpu_malone_init_rpc()
447 struct malone_iface *iface = shared->iface; in vpu_malone_set_log_buf() local
449 iface->debug_buffer_desc.buffer.start = in vpu_malone_set_log_buf()
450 iface->debug_buffer_desc.buffer.wptr = in vpu_malone_set_log_buf()
451 iface->debug_buffer_desc.buffer.rptr = log->phys - shared->boot_addr; in vpu_malone_set_log_buf()
452 iface->debug_buffer_desc.buffer.end = iface->debug_buffer_desc.buffer.start + log->length; in vpu_malone_set_log_buf()
463 struct malone_iface *iface = shared->iface; in vpu_malone_set_system_cfg() local
464 struct vpu_rpc_system_config *config = &iface->system_cfg; in vpu_malone_set_system_cfg()
479 struct malone_iface *iface = shared->iface; in vpu_malone_get_version() local
481 vpu_malone_enable_format(V4L2_PIX_FMT_RV30, iface->fw_version & MALONE_DEC_FMT_RV_MASK); in vpu_malone_get_version()
482 vpu_malone_enable_format(V4L2_PIX_FMT_RV40, iface->fw_version & MALONE_DEC_FMT_RV_MASK); in vpu_malone_get_version()
484 return iface->fw_version; in vpu_malone_get_version()
496 struct malone_iface *iface = shared->iface; in vpu_malone_config_stream_buffer() local
506 iface->stream_buffer_desc[instance][0] = hc->buf_addr[instance]; in vpu_malone_config_stream_buffer()
617 struct malone_iface *iface = shared->iface; in vpu_malone_set_stream_cfg() local
618 u32 *curr_str_cfg = &iface->stream_config[instance]; in vpu_malone_set_stream_cfg()
643 struct malone_iface *iface = shared->iface; in vpu_malone_set_params() local
650 iface->udata_buffer[instance].base = params->udata.base; in vpu_malone_set_params()
651 iface->udata_buffer[instance].slot_size = params->udata.size; in vpu_malone_set_params()
666 iface->dbglog_desc.level = 0; in vpu_malone_set_params()
669 iface->stream_buff_info[instance].stream_input_mode = NON_FRAME_LVL; in vpu_malone_set_params()
671 iface->stream_buff_info[instance].stream_input_mode = FRAME_LVL; in vpu_malone_set_params()
672 iface->stream_buff_info[instance].stream_buffer_threshold = 0; in vpu_malone_set_params()
673 iface->stream_buff_info[instance].stream_pic_input_count = 0; in vpu_malone_set_params()
680 struct malone_iface *iface = shared->iface; in vpu_malone_is_non_frame_mode() local
682 if (iface->stream_buff_info[instance].stream_input_mode == NON_FRAME_LVL) in vpu_malone_is_non_frame_mode()
692 struct malone_iface *iface = shared->iface; in vpu_malone_update_params() local
695 iface->stream_buff_info[instance].stream_pic_end_flag = params->end_flag; in vpu_malone_update_params()
1571 ret = vpu_malone_add_scode(inst->core->iface, in vpu_malone_input_frame_data()
1655 struct malone_iface *iface = shared->iface; in vpu_malone_check_ready() local
1656 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_check_ready()
1695 struct malone_iface *iface = shared->iface; in vpu_malone_post_cmd() local
1696 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_post_cmd()
1707 struct malone_iface *iface = shared->iface; in vpu_malone_init_instance() local
1708 struct vpu_rpc_buffer_desc *desc = &iface->api_cmd_buffer_desc[instance]; in vpu_malone_init_instance()
1719 struct malone_iface *iface = shared->iface; in vpu_malone_get_max_instance_count() local
1721 return iface->max_streams; in vpu_malone_get_max_instance_count()