Lines Matching defs:mb_pack
448 struct mb_cmd_pack *mb_pack = NULL;
450 mb_pack = mailbox_alloc_cmd_pack();
451 if (!mb_pack) {
459 mb_pack->operation.paramtypes = teec_param_types(
466 mb_pack->operation.params[0].memref.size = (uint32_t)(tui_font_mem->size);
467 mb_pack->operation.params[0].memref.buffer = (uint32_t)(tui_font_mem->tui_ion_phys_addr & 0xFFFFFFFF);
468 mb_pack->operation.buffer_h_addr[0] = tui_font_mem->tui_ion_phys_addr >> HIGH_VALUES;
469 mb_pack->operation.params[1].value.a = font_file_size;
471 smc_cmd.operation_phys = (unsigned int)mailbox_virt_to_phys((uintptr_t)&mb_pack->operation);
472 smc_cmd.operation_h_phys = mailbox_virt_to_phys((uintptr_t)&mb_pack->operation) >> HIGH_VALUES;
477 mailbox_free(mb_pack);
978 static bool package_notch_msg(struct mb_cmd_pack *mb_pack, uint8_t **buf_to_tee,
993 mb_pack->operation.paramtypes =
996 mb_pack->operation.params[0].value.a =
998 mb_pack->operation.params[0].value.b =
1000 mb_pack->operation.params[1].value.a = buf_len;
1004 static void package_fold_msg(struct mb_cmd_pack *mb_pack,
1007 mb_pack->operation.paramtypes = teec_param_types(TEE_PARAM_TYPE_VALUE_INPUT,
1011 mb_pack->operation.params[0].value.a = tui_param->notch;
1013 mb_pack->operation.params[0].value.b = make32(g_dss_fd->comp.base.xres, g_dss_fd->comp.base.yres);
1015 mb_pack->operation.params[0].value.b = make32(g_dss_fd->panel_info.xres, g_dss_fd->panel_info.yres);
1017 mb_pack->operation.params[1].value.a = tui_param->phy_width;
1018 mb_pack->operation.params[1].value.b = tui_param->phy_height;
1019 mb_pack->operation.params[2].value.a = tui_param->width;
1020 mb_pack->operation.params[2].value.b = tui_param->height;
1021 mb_pack->operation.params[3].value.a = tui_param->fold_state;
1022 mb_pack->operation.params[3].value.b = tui_param->display_state;
1034 static int32_t tui_send_smc_cmd(int32_t event, struct mb_cmd_pack *mb_pack, struct tc_ns_smc_cmd smc_cmd)
1053 smc_cmd.operation_phys = mailbox_virt_to_phys((uintptr_t)&mb_pack->operation);
1054 smc_cmd.operation_h_phys = mailbox_virt_to_phys((uintptr_t)&mb_pack->operation) >> HIGH_VALUES;
1094 struct mb_cmd_pack *mb_pack = NULL;
1097 mb_pack = mailbox_alloc_cmd_pack();
1098 if (mb_pack == NULL) {
1108 if (!package_notch_msg(mb_pack, &buf_to_tee,
1110 mailbox_free(mb_pack);
1117 package_fold_msg(mb_pack, tui_param);
1125 ret = tui_send_smc_cmd(event, mb_pack, smc_cmd);
1129 mailbox_free(mb_pack);