Lines Matching defs:g_tui_ctl
124 static struct tui_ctl_shm *g_tui_ctl = NULL;
826 /* If the name is "tp", assign pos->pdata to g_tui_ctl */
827 g_tui_ctl->n2s.tp_info = (int)virt_to_phys(pos->pdata);
828 g_tui_ctl->n2s.tp_info_h_addr = virt_to_phys(pos->pdata) >> HIGH_VALUES;
1245 if (DSS_CONFIG_INDEX == g_tui_ctl->s2n.value) {
1251 g_tui_ctl->n2s.addr = (unsigned int)tui_addr_t;
1252 g_tui_ctl->n2s.addr_h = tui_addr_t >> HIGH_VALUES;
1253 g_tui_ctl->n2s.npages = g_tui_display_mem.npages;
1254 g_tui_ctl->n2s.info_length = g_tui_display_mem.info_length;
1255 g_tui_ctl->n2s.phy_size = g_tui_display_mem.len;
1256 if (g_tui_ctl->n2s.addr == 0)
1351 if (g_tui_ctl->s2n.value == DSS_CONFIG_INDEX)
1353 else if (g_tui_ctl->s2n.value == TP_CONFIG_INDEX)
1360 g_tui_ctl->n2s.event_type = type;
1361 g_tui_ctl->n2s.value = val;
1363 if (!valid_msg(g_tui_ctl->n2s.event_type)) {
1373 ret = tc_ns_register_agent(NULL, TEE_TUI_AGENT_ID, SZ_4K, (void **)(&g_tui_ctl), false);
1376 g_tui_ctl = NULL;
1388 g_tui_ctl = NULL;
1448 g_tui_ctl->s2n.command = TUI_CMD_EXIT;
1449 g_tui_ctl->s2n.ret = -1;
1459 switch (g_tui_ctl->s2n.command) {
1464 g_tui_ctl->n2s.event_type = TUI_POLL_CFG_OK;
1467 g_tui_ctl->n2s.event_type = TUI_POLL_CFG_FAIL;
1487 tloge("get error ttf tui command(0x%x)\n", g_tui_ctl->s2n.command);
1502 g_tui_ctl->s2n.ret = -1;
1539 switch (g_tui_ctl->s2n.command) {
1556 tlogi("tui set state %d\n", g_tui_ctl->s2n.value);
1557 set_tui_state(g_tui_ctl->s2n.value);
1567 tloge("get error config tui command(0x%x)\n", g_tui_ctl->s2n.command);
1578 g_tui_ctl->s2n.ret = 0;
1579 switch (g_tui_ctl->s2n.command) {
1784 g_tui_ctl->n2s.status = (int)value;
1793 g_tui_ctl->n2s.x = (int)value;
1802 g_tui_ctl->n2s.y = (int)value;
1854 tlogd("status=%d x=%d y=%d\n", g_tui_ctl->n2s.status, g_tui_ctl->n2s.x, g_tui_ctl->n2s.y);