usr/src/boot/common/tem.c
1006
tem_input_partial(tem);
usr/src/boot/common/tem.c
1007
tem_parse(tem, c);
usr/src/boot/common/tem.c
1012
tem_input_partial(tem);
usr/src/boot/common/tem.c
1013
tem->tvs_utf8_left = 1;
usr/src/boot/common/tem.c
1014
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1019
tem_input_partial(tem);
usr/src/boot/common/tem.c
1020
tem->tvs_utf8_left = 2;
usr/src/boot/common/tem.c
1021
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1026
tem_input_partial(tem);
usr/src/boot/common/tem.c
1027
tem->tvs_utf8_left = 3;
usr/src/boot/common/tem.c
1028
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1033
if (tem->tvs_utf8_left == 0) {
usr/src/boot/common/tem.c
1034
tem_parse(tem, c);
usr/src/boot/common/tem.c
1037
tem->tvs_utf8_left--;
usr/src/boot/common/tem.c
1038
tem->tvs_utf8_partial = (tem->tvs_utf8_partial << 8) | c;
usr/src/boot/common/tem.c
1039
if (tem->tvs_utf8_left == 0) {
usr/src/boot/common/tem.c
1048
u = tem->tvs_utf8_partial;
usr/src/boot/common/tem.c
1070
tem_parse(tem, v);
usr/src/boot/common/tem.c
1071
tem->tvs_utf8_partial = 0;
usr/src/boot/common/tem.c
1076
tem_input_partial(tem);
usr/src/boot/common/tem.c
1077
tem_parse(tem, c);
usr/src/boot/common/tem.c
1089
tem_terminal_emulate(struct tem_vt_state *tem, uint8_t *buf, int len)
usr/src/boot/common/tem.c
1091
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/boot/common/tem.c
1092
tem_callback_cursor(tem, VIS_HIDE_CURSOR);
usr/src/boot/common/tem.c
1095
tem_input_byte(tem, *buf);
usr/src/boot/common/tem.c
1100
tem_send_data(tem);
usr/src/boot/common/tem.c
1102
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/boot/common/tem.c
1103
tem_callback_cursor(tem, VIS_DISPLAY_CURSOR);
usr/src/boot/common/tem.c
1112
tem_control(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1114
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1117
tem_bell(tem);
usr/src/boot/common/tem.c
1121
tem_mv_cursor(tem,
usr/src/boot/common/tem.c
1122
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1123
tem->tvs_c_cursor.col - 1);
usr/src/boot/common/tem.c
1127
tem_tab(tem);
usr/src/boot/common/tem.c
1138
tem_send_data(tem);
usr/src/boot/common/tem.c
1139
tem_lf(tem);
usr/src/boot/common/tem.c
1143
tem_send_data(tem);
usr/src/boot/common/tem.c
1144
tem_cls(tem);
usr/src/boot/common/tem.c
1148
tem_send_data(tem);
usr/src/boot/common/tem.c
1149
tem_cr(tem);
usr/src/boot/common/tem.c
1153
tem->tvs_state = A_STATE_ESC;
usr/src/boot/common/tem.c
1157
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
1158
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
1159
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1162
tem->tvs_params[i] = -1;
usr/src/boot/common/tem.c
1163
tem->tvs_state = A_STATE_CSI;
usr/src/boot/common/tem.c
1167
tem_back_tab(tem);
usr/src/boot/common/tem.c
118
static void tem_clear_chars(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
1182
tem_setparam(struct tem_vt_state *tem, int count, int newparam)
usr/src/boot/common/tem.c
1187
if (tem->tvs_params[i] == -1)
usr/src/boot/common/tem.c
1188
tem->tvs_params[i] = newparam;
usr/src/boot/common/tem.c
1198
tem_select_color(struct tem_vt_state *tem, int color, bool fg)
usr/src/boot/common/tem.c
120
static void tem_copy_area(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
1209
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1210
tem->tvs_fg_color.n = color;
usr/src/boot/common/tem.c
1212
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1213
tem->tvs_bg_color.n = color;
usr/src/boot/common/tem.c
1221
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1223
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1232
tem->tvs_fg_color.n -= 8;
usr/src/boot/common/tem.c
1233
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1235
tem->tvs_bg_color.n -= 8;
usr/src/boot/common/tem.c
1236
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
124
static void tem_bell(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1245
tem_selgraph(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
125
static void tem_pix_clear_prom_output(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1252
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1254
curparam = tem->tvs_curparam;
usr/src/boot/common/tem.c
1256
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
1262
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
1263
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
1264
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/boot/common/tem.c
1268
tem->tvs_flags |= TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1272
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1276
tem->tvs_flags |= TEM_ATTR_UNDERLINE;
usr/src/boot/common/tem.c
1280
tem->tvs_flags |= TEM_ATTR_BLINK;
usr/src/boot/common/tem.c
1284
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
1285
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1287
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1292
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1296
tem->tvs_flags &= ~TEM_ATTR_UNDERLINE;
usr/src/boot/common/tem.c
1300
tem->tvs_flags &= ~TEM_ATTR_BLINK;
usr/src/boot/common/tem.c
1304
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
1305
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1307
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
131
static void tem_align_cursor(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1319
tem->tvs_fg_color.n = param - 30;
usr/src/boot/common/tem.c
1320
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1321
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
133
static void tem_check_first_time(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1340
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
1347
r = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1348
g = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1349
b = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1357
tem->tvs_flags |= TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1358
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1359
tem->tvs_fg_color.rgb.a =
usr/src/boot/common/tem.c
1360
tem->tvs_alpha;
usr/src/boot/common/tem.c
1361
tem->tvs_fg_color.rgb.r = r;
usr/src/boot/common/tem.c
1362
tem->tvs_fg_color.rgb.g = g;
usr/src/boot/common/tem.c
1363
tem->tvs_fg_color.rgb.b = b;
usr/src/boot/common/tem.c
1369
tem_select_color(tem, tem->tvs_params[count],
usr/src/boot/common/tem.c
1382
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
1383
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1385
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1387
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1398
tem->tvs_bg_color.n = param - 40;
usr/src/boot/common/tem.c
1399
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1400
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1420
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
1427
r = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1428
g = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1429
b = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1437
tem->tvs_flags |= TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1438
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1439
tem->tvs_bg_color.rgb.a =
usr/src/boot/common/tem.c
1440
tem->tvs_alpha;
usr/src/boot/common/tem.c
1441
tem->tvs_bg_color.rgb.r = r;
usr/src/boot/common/tem.c
1442
tem->tvs_bg_color.rgb.g = g;
usr/src/boot/common/tem.c
1443
tem->tvs_bg_color.rgb.b = b;
usr/src/boot/common/tem.c
1449
tem_select_color(tem, tem->tvs_params[count],
usr/src/boot/common/tem.c
1462
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
1463
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1465
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1467
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1478
tem->tvs_fg_color.n = param - 90;
usr/src/boot/common/tem.c
1479
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1480
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1491
tem->tvs_bg_color.n = param - 100;
usr/src/boot/common/tem.c
1492
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1493
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1512
tem_chkparam(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1518
row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1519
col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
1524
tem_send_data(tem);
usr/src/boot/common/tem.c
1525
tem_selgraph(tem);
usr/src/boot/common/tem.c
1529
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1530
tem_shift(tem, tem->tvs_params[0], TEM_SHIFT_RIGHT);
usr/src/boot/common/tem.c
1534
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1535
tem_mv_cursor(tem, row - tem->tvs_params[0], col);
usr/src/boot/common/tem.c
1539
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1540
tem_mv_cursor(tem, tem->tvs_params[0] - 1, col);
usr/src/boot/common/tem.c
1545
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1546
tem_mv_cursor(tem, row + tem->tvs_params[0], col);
usr/src/boot/common/tem.c
1551
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1552
tem_mv_cursor(tem, row, col + tem->tvs_params[0]);
usr/src/boot/common/tem.c
1556
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1557
tem_mv_cursor(tem, row, tem->tvs_params[0] - 1);
usr/src/boot/common/tem.c
1561
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1562
tem_mv_cursor(tem, row, col - tem->tvs_params[0]);
usr/src/boot/common/tem.c
1566
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1567
tem_mv_cursor(tem, row + tem->tvs_params[0], 0);
usr/src/boot/common/tem.c
1571
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1572
tem_mv_cursor(tem, row - tem->tvs_params[0], 0);
usr/src/boot/common/tem.c
1576
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1577
tem_mv_cursor(tem, row, tem->tvs_params[0] - 1);
usr/src/boot/common/tem.c
1581
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1582
tem_clear_tabs(tem, tem->tvs_params[0]);
usr/src/boot/common/tem.c
1587
tem_setparam(tem, 2, 1);
usr/src/boot/common/tem.c
1588
tem_mv_cursor(tem,
usr/src/boot/common/tem.c
1589
tem->tvs_params[0] - 1, tem->tvs_params[1] - 1);
usr/src/boot/common/tem.c
1597
tem_send_data(tem);
usr/src/boot/common/tem.c
1598
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1599
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1603
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1605
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
1606
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1607
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1610
for (row = tem->tvs_c_cursor.row + 1;
usr/src/boot/common/tem.c
1613
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1622
row < tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1624
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1628
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1629
tem->tvs_c_cursor.col + 1,
usr/src/boot/common/tem.c
163
static void bit_to_pix32(struct tem_vt_state *tem, tem_char_t c,
usr/src/boot/common/tem.c
1630
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
1638
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1646
tem_send_data(tem);
usr/src/boot/common/tem.c
1647
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1648
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1651
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1653
tem->tvs_c_cursor.col),
usr/src/boot/common/tem.c
1654
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1655
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1660
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1661
tem->tvs_c_cursor.col + 1,
usr/src/boot/common/tem.c
1662
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
1667
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1669
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
1675
tem_send_data(tem);
usr/src/boot/common/tem.c
1676
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1677
tem_scroll(tem,
usr/src/boot/common/tem.c
1678
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1680
tem->tvs_params[0], TEM_SCROLL_DOWN);
usr/src/boot/common/tem.c
1684
tem_send_data(tem);
usr/src/boot/common/tem.c
1685
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1686
tem_scroll(tem,
usr/src/boot/common/tem.c
1687
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1689
tem->tvs_params[0], TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1693
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1694
tem_shift(tem, tem->tvs_params[0], TEM_SHIFT_LEFT);
usr/src/boot/common/tem.c
1698
tem_send_data(tem);
usr/src/boot/common/tem.c
1699
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1700
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1702
tem->tvs_params[0], TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1706
tem_send_data(tem);
usr/src/boot/common/tem.c
1707
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1708
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1710
tem->tvs_params[0], TEM_SCROLL_DOWN);
usr/src/boot/common/tem.c
1714
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1715
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1716
tem->tvs_params[0],
usr/src/boot/common/tem.c
1717
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1718
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1722
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1731
if (tem->tvs_params[0] > tems.ts_c_dimension.width)
usr/src/boot/common/tem.c
1732
tem->tvs_params[0] = tems.ts_c_dimension.width;
usr/src/boot/common/tem.c
1734
for (i = 0; i < tem->tvs_params[0]; i++)
usr/src/boot/common/tem.c
1735
tem_back_tab(tem);
usr/src/boot/common/tem.c
1738
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1742
tem_chkparam_qmark(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1746
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1747
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1749
tem->tvs_stateflags |= TVS_AUTOWRAP;
usr/src/boot/common/tem.c
1759
tem_send_data(tem);
usr/src/boot/common/tem.c
1760
tem->tvs_cursor_hidden = false;
usr/src/boot/common/tem.c
1766
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1767
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1769
tem->tvs_stateflags &= ~TVS_AUTOWRAP;
usr/src/boot/common/tem.c
1779
tem_send_data(tem);
usr/src/boot/common/tem.c
1780
tem->tvs_cursor_hidden = true;
usr/src/boot/common/tem.c
1785
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1792
tem_getparams(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1795
tem->tvs_paramval = ((tem->tvs_paramval * 10) + (ch - '0'));
usr/src/boot/common/tem.c
1796
tem->tvs_gotparam = true; /* Remember got parameter */
usr/src/boot/common/tem.c
1798
} else if (tem->tvs_state == A_STATE_CSI_EQUAL) {
usr/src/boot/common/tem.c
1799
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1800
} else if (tem->tvs_state == A_STATE_CSI_QMARK) {
usr/src/boot/common/tem.c
1801
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/boot/common/tem.c
1802
if (tem->tvs_gotparam) {
usr/src/boot/common/tem.c
1804
tem->tvs_params[tem->tvs_curparam] =
usr/src/boot/common/tem.c
1805
tem->tvs_paramval;
usr/src/boot/common/tem.c
1807
tem->tvs_curparam++;
usr/src/boot/common/tem.c
1811
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1812
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/boot/common/tem.c
1815
tem_chkparam_qmark(tem, ch);
usr/src/boot/common/tem.c
1818
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/boot/common/tem.c
1819
if (tem->tvs_gotparam) {
usr/src/boot/common/tem.c
1821
tem->tvs_params[tem->tvs_curparam] =
usr/src/boot/common/tem.c
1822
tem->tvs_paramval;
usr/src/boot/common/tem.c
1824
tem->tvs_curparam++;
usr/src/boot/common/tem.c
1829
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1830
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/boot/common/tem.c
1833
tem_chkparam(tem, ch);
usr/src/boot/common/tem.c
1843
tem_outch(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1850
if ((tem->tvs_stateflags & (TVS_AUTOWRAP | TVS_WRAPPED)) ==
usr/src/boot/common/tem.c
1852
tem_new_line(tem);
usr/src/boot/common/tem.c
1856
tem_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE);
usr/src/boot/common/tem.c
1857
tem->tvs_outbuf[tem->tvs_outindex].tc_char = ch | TEM_ATTR(attr);
usr/src/boot/common/tem.c
1858
tem->tvs_outbuf[tem->tvs_outindex].tc_fg_color = fg;
usr/src/boot/common/tem.c
1859
tem->tvs_outbuf[tem->tvs_outindex].tc_bg_color = bg;
usr/src/boot/common/tem.c
1860
tem->tvs_outindex++;
usr/src/boot/common/tem.c
1861
tem->tvs_c_cursor.col++;
usr/src/boot/common/tem.c
1862
if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) {
usr/src/boot/common/tem.c
1863
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/boot/common/tem.c
1864
tem->tvs_c_cursor.col--;
usr/src/boot/common/tem.c
1865
tem_send_data(tem);
usr/src/boot/common/tem.c
1867
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1872
tem_new_line(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1874
tem_cr(tem);
usr/src/boot/common/tem.c
1875
tem_lf(tem);
usr/src/boot/common/tem.c
1879
tem_cr(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1881
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
1882
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1883
tem_align_cursor(tem);
usr/src/boot/common/tem.c
1887
tem_lf(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1891
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1898
row = tem->tvs_c_cursor.row + 1;
usr/src/boot/common/tem.c
1901
if (tem->tvs_nscroll != 0) {
usr/src/boot/common/tem.c
1902
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1904
tem->tvs_nscroll, TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1906
tem->tvs_nscroll;
usr/src/boot/common/tem.c
1917
tem_mv_cursor(tem, row, tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1919
if (tem->tvs_nscroll == 0) {
usr/src/boot/common/tem.c
1921
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1923
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
1924
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1925
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1929
tem_align_cursor(tem);
usr/src/boot/common/tem.c
193
tem_add(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1933
tem_send_data(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1935
if (tem->tvs_outindex == 0) {
usr/src/boot/common/tem.c
1936
tem_align_cursor(tem);
usr/src/boot/common/tem.c
1940
tem_virtual_display(tem, tem->tvs_outbuf, tem->tvs_outindex,
usr/src/boot/common/tem.c
1941
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/boot/common/tem.c
1943
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
1947
tem_callback_display(tem,
usr/src/boot/common/tem.c
1948
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/boot/common/tem.c
1949
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/boot/common/tem.c
195
list_insert_head(&tems.ts_list, tem);
usr/src/boot/common/tem.c
1952
tem->tvs_outindex = 0;
usr/src/boot/common/tem.c
1954
tem_align_cursor(tem);
usr/src/boot/common/tem.c
1964
tem_align_cursor(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1966
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1967
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
1976
tem_parse(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1980
if (tem->tvs_state == A_STATE_START) { /* Normal state? */
usr/src/boot/common/tem.c
1983
tem_control(tem, ch);
usr/src/boot/common/tem.c
1986
tem_outch(tem, ch);
usr/src/boot/common/tem.c
1992
if (tem->tvs_state != A_STATE_ESC) { /* Need to get parameters? */
usr/src/boot/common/tem.c
1993
if (tem->tvs_state != A_STATE_CSI) {
usr/src/boot/common/tem.c
1994
tem_getparams(tem, ch);
usr/src/boot/common/tem.c
2000
tem->tvs_state = A_STATE_CSI_QMARK;
usr/src/boot/common/tem.c
2003
tem->tvs_state = A_STATE_CSI_EQUAL;
usr/src/boot/common/tem.c
2027
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2030
tem_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/boot/common/tem.c
2031
tem->tvs_r_cursor.col);
usr/src/boot/common/tem.c
2032
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2035
tem_send_data(tem);
usr/src/boot/common/tem.c
2040
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
2041
tem->tvs_flags &= ~TEM_ATTR_SCREEN_REVERSE;
usr/src/boot/common/tem.c
2047
if (tem->tvs_flags & TEM_ATTR_REVERSE)
usr/src/boot/common/tem.c
2048
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
205
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
2050
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2052
tem_cls(tem);
usr/src/boot/common/tem.c
2053
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2056
tem_send_data(tem);
usr/src/boot/common/tem.c
2061
if (!(tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE)) {
usr/src/boot/common/tem.c
2062
tem->tvs_flags |= TEM_ATTR_SCREEN_REVERSE;
usr/src/boot/common/tem.c
2068
if (!(tem->tvs_flags & TEM_ATTR_REVERSE))
usr/src/boot/common/tem.c
2069
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
207
if (tems.ts_initialized == 0 || tem->tvs_initialized == 0) {
usr/src/boot/common/tem.c
2071
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2074
tem_cls(tem);
usr/src/boot/common/tem.c
2075
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2081
tem->tvs_nscroll = tem->tvs_paramval;
usr/src/boot/common/tem.c
2082
if (tem->tvs_nscroll > tems.ts_c_dimension.height)
usr/src/boot/common/tem.c
2083
tem->tvs_nscroll = tems.ts_c_dimension.height;
usr/src/boot/common/tem.c
2084
if (tem->tvs_nscroll < 0)
usr/src/boot/common/tem.c
2085
tem->tvs_nscroll = 1;
usr/src/boot/common/tem.c
2086
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2089
tem_getparams(tem, ch);
usr/src/boot/common/tem.c
2096
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
2097
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
2098
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
2101
tem->tvs_params[i] = -1;
usr/src/boot/common/tem.c
2102
tem->tvs_state = A_STATE_CSI;
usr/src/boot/common/tem.c
2104
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2106
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2108
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
211
tem_check_first_time(tem);
usr/src/boot/common/tem.c
2111
tem_reset_display(tem, true, true);
usr/src/boot/common/tem.c
2114
tem_set_tab(tem);
usr/src/boot/common/tem.c
2117
tem->tvs_r_cursor.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
2118
tem->tvs_r_cursor.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
212
tem_terminal_emulate(tem, buf, len);
usr/src/boot/common/tem.c
2121
tem_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/boot/common/tem.c
2122
tem->tvs_r_cursor.col);
usr/src/boot/common/tem.c
2125
tem_control(tem, ch);
usr/src/boot/common/tem.c
2127
tem_outch(tem, ch);
usr/src/boot/common/tem.c
2134
tem_bell(struct tem_vt_state *tem __unused)
usr/src/boot/common/tem.c
2141
tem_scroll(struct tem_vt_state *tem, int start, int end, int count,
usr/src/boot/common/tem.c
2156
tem_copy_area(tem, 0, start + count,
usr/src/boot/common/tem.c
2160
tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2166
tem_copy_area(tem, 0, start,
usr/src/boot/common/tem.c
2171
tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2203
tem_copy_area(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2233
if (tem->tvs_screen_buf == NULL) {
usr/src/boot/common/tem.c
2234
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2235
tem_callback_copy(tem, s_col, s_row,
usr/src/boot/common/tem.c
2243
src = tem->tvs_screen_buf + soffset;
usr/src/boot/common/tem.c
2244
dst = tem->tvs_screen_buf + toffset;
usr/src/boot/common/tem.c
2259
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2260
tem_callback_copy(tem, s_col, s_row + i,
usr/src/boot/common/tem.c
2274
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2275
tem_callback_copy(tem, s_col, s_row + i,
usr/src/boot/common/tem.c
2284
tem_clear_chars(struct tem_vt_state *tem, int count, screen_pos_t row,
usr/src/boot/common/tem.c
2300
tem_virtual_cls(tem, count, row, col);
usr/src/boot/common/tem.c
2302
if (!tem->tvs_isactive)
usr/src/boot/common/tem.c
2305
tem_callback_cls(tem, count, row, col);
usr/src/boot/common/tem.c
2309
tem_text_display(struct tem_vt_state *tem __unused, term_char_t *string,
usr/src/boot/common/tem.c
2326
tem_get_color(tem, &fg, &bg, &string[i]);
usr/src/boot/common/tem.c
2340
tem_image_display(struct tem_vt_state *tem, screen_pos_t s_row,
usr/src/boot/common/tem.c
2350
tem_virtual_display(tem, &c, 1, i, j);
usr/src/boot/common/tem.c
2357
tem_text_copy(struct tem_vt_state *tem __unused,
usr/src/boot/common/tem.c
2374
tem_text_cls(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2381
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2390
tem_text_display(tem, &c, 1, row, col++);
usr/src/boot/common/tem.c
2395
tem_pix_display(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2402
da.data = (uint8_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
2409
tem_callback_bit2pix(tem, &string[i]);
usr/src/boot/common/tem.c
2416
tem_pix_copy(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2424
if (need_clear && tem->tvs_first_line > 0) {
usr/src/boot/common/tem.c
2433
tem_pix_clear_prom_output(tem);
usr/src/boot/common/tem.c
2446
if (tem->tvs_first_line > 0 && t_row < s_row && t_col == 0 &&
usr/src/boot/common/tem.c
2465
if (tem->tvs_first_line > 0 && t_row < s_row) {
usr/src/boot/common/tem.c
2467
tem->tvs_first_line -= (s_row - t_row);
usr/src/boot/common/tem.c
2468
if (tem->tvs_first_line <= 0) {
usr/src/boot/common/tem.c
2470
tem->tvs_first_line = 0;
usr/src/boot/common/tem.c
2476
tem_pix_bit2pix(struct tem_vt_state *tem, term_char_t *c)
usr/src/boot/common/tem.c
2480
tem_get_color(tem, &fg, &bg, c);
usr/src/boot/common/tem.c
2481
bit_to_pix32(tem, c->tc_char, fg, bg);
usr/src/boot/common/tem.c
2489
tem_pix_cls(struct tem_vt_state *tem, int count,
usr/src/boot/common/tem.c
2492
tem_pix_cls_range(tem, row, 1, tems.ts_p_offset.y,
usr/src/boot/common/tem.c
2520
tem_pix_clear_prom_output(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2532
tem_pix_cls_range(tem, 0, nrows, offset, 0, ncols, 0, false);
usr/src/boot/common/tem.c
2539
tem_cls(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2549
tem_virtual_cls(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2552
if (!tem->tvs_isactive)
usr/src/boot/common/tem.c
2555
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2559
tem_get_color(tem, &fg_color, &bg_color, &c);
usr/src/boot/common/tem.c
2563
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2564
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2565
tem_align_cursor(tem);
usr/src/boot/common/tem.c
2569
tem_back_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2576
for (i = tem->tvs_ntabs - 1; i >= 0; i--) {
usr/src/boot/common/tem.c
2577
if (tem->tvs_tabs[i] < tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2578
tabstop = tem->tvs_tabs[i];
usr/src/boot/common/tem.c
2583
tem_mv_cursor(tem, tem->tvs_c_cursor.row, tabstop);
usr/src/boot/common/tem.c
2587
tem_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2594
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2595
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2596
tabstop = tem->tvs_tabs[i];
usr/src/boot/common/tem.c
2601
tem_mv_cursor(tem, tem->tvs_c_cursor.row, tabstop);
usr/src/boot/common/tem.c
2605
tem_set_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2609
if (tem->tvs_ntabs == tem->tvs_maxtab)
usr/src/boot/common/tem.c
2611
if (tem->tvs_ntabs == 0 ||
usr/src/boot/common/tem.c
2612
tem->tvs_tabs[tem->tvs_ntabs] < tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2613
tem->tvs_tabs[tem->tvs_ntabs++] = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2616
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2617
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col)
usr/src/boot/common/tem.c
2619
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2620
for (j = tem->tvs_ntabs - 1; j >= i; j--)
usr/src/boot/common/tem.c
2621
tem->tvs_tabs[j+ 1] = tem->tvs_tabs[j];
usr/src/boot/common/tem.c
2622
tem->tvs_tabs[i] = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2623
tem->tvs_ntabs++;
usr/src/boot/common/tem.c
2630
tem_clear_tabs(struct tem_vt_state *tem, int action)
usr/src/boot/common/tem.c
2636
tem->tvs_ntabs = 0;
usr/src/boot/common/tem.c
2640
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2641
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2642
tem->tvs_ntabs--;
usr/src/boot/common/tem.c
2643
for (j = i; j < tem->tvs_ntabs; j++)
usr/src/boot/common/tem.c
2644
tem->tvs_tabs[j] = tem->tvs_tabs[j + 1];
usr/src/boot/common/tem.c
2653
tem_mv_cursor(struct tem_vt_state *tem, int row, int col)
usr/src/boot/common/tem.c
2667
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/boot/common/tem.c
2670
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
2673
tem_send_data(tem);
usr/src/boot/common/tem.c
2674
tem->tvs_c_cursor.row = (screen_pos_t)row;
usr/src/boot/common/tem.c
2675
tem->tvs_c_cursor.col = (screen_pos_t)col;
usr/src/boot/common/tem.c
2676
tem_align_cursor(tem);
usr/src/boot/common/tem.c
2681
tem_reset_emulator(struct tem_vt_state *tem, bool init_color)
usr/src/boot/common/tem.c
2685
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2686
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2687
tem->tvs_r_cursor.row = 0;
usr/src/boot/common/tem.c
2688
tem->tvs_r_cursor.col = 0;
usr/src/boot/common/tem.c
2689
tem->tvs_s_cursor.row = 0;
usr/src/boot/common/tem.c
2690
tem->tvs_s_cursor.col = 0;
usr/src/boot/common/tem.c
2691
tem->tvs_outindex = 0;
usr/src/boot/common/tem.c
2692
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2693
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
2694
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
2695
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
2696
tem->tvs_nscroll = 1;
usr/src/boot/common/tem.c
2700
tem->tvs_alpha = 0xff;
usr/src/boot/common/tem.c
2701
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
2702
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
2703
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/boot/common/tem.c
2709
tem->tvs_ntabs = 0;
usr/src/boot/common/tem.c
2711
tem->tvs_tabs[tem->tvs_ntabs++] = (screen_pos_t)j;
usr/src/boot/common/tem.c
2714
tem->tvs_params[j] = 0;
usr/src/boot/common/tem.c
2718
tem_reset_display(struct tem_vt_state *tem, bool clear_txt, bool init_color)
usr/src/boot/common/tem.c
2720
tem_reset_emulator(tem, init_color);
usr/src/boot/common/tem.c
2723
if (tem->tvs_isactive)
usr/src/boot/common/tem.c
2724
tem_callback_cursor(tem, VIS_HIDE_CURSOR);
usr/src/boot/common/tem.c
2726
tem_cls(tem);
usr/src/boot/common/tem.c
2728
if (tem->tvs_isactive)
usr/src/boot/common/tem.c
2729
tem_callback_cursor(tem, VIS_DISPLAY_CURSOR);
usr/src/boot/common/tem.c
2734
tem_shift(struct tem_vt_state *tem, int count, int direction)
usr/src/boot/common/tem.c
2738
rest_of_line = tems.ts_c_dimension.width - tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2748
tem_copy_area(tem,
usr/src/boot/common/tem.c
2749
tem->tvs_c_cursor.col + count,
usr/src/boot/common/tem.c
2750
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2752
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2753
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
2754
tem->tvs_c_cursor.row);
usr/src/boot/common/tem.c
2757
tem_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2762
tem_copy_area(tem,
usr/src/boot/common/tem.c
2763
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
2764
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2766
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2767
tem->tvs_c_cursor.col + count,
usr/src/boot/common/tem.c
2768
tem->tvs_c_cursor.row);
usr/src/boot/common/tem.c
2771
tem_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2772
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
2778
tem_text_cursor(struct tem_vt_state *tem, short action)
usr/src/boot/common/tem.c
2782
ca.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
2783
ca.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2789
tem->tvs_c_cursor.row = ca.row;
usr/src/boot/common/tem.c
2790
tem->tvs_c_cursor.col = ca.col;
usr/src/boot/common/tem.c
2795
tem_pix_cursor(struct tem_vt_state *tem, short action)
usr/src/boot/common/tem.c
2802
ca.row = tem->tvs_c_cursor.row * tems.ts_font.vf_height +
usr/src/boot/common/tem.c
2804
ca.col = tem->tvs_c_cursor.col * tems.ts_font.vf_width +
usr/src/boot/common/tem.c
2809
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2813
tem_get_color(tem, &fg, &bg, &c);
usr/src/boot/common/tem.c
2822
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2823
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2826
tem->tvs_c_cursor.row = (ca.row - tems.ts_p_offset.y) /
usr/src/boot/common/tem.c
2830
tem->tvs_c_cursor.col = (ca.col - tems.ts_p_offset.x) /
usr/src/boot/common/tem.c
2837
bit_to_pix32(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2842
dest = (uint32_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
2850
tem_get_attr(struct tem_vt_state *tem, text_color_t *fg,
usr/src/boot/common/tem.c
2853
if (tem->tvs_flags & flag) {
usr/src/boot/common/tem.c
2854
*fg = tem->tvs_bg_color;
usr/src/boot/common/tem.c
2855
*bg = tem->tvs_fg_color;
usr/src/boot/common/tem.c
2857
*fg = tem->tvs_fg_color;
usr/src/boot/common/tem.c
2858
*bg = tem->tvs_bg_color;
usr/src/boot/common/tem.c
2862
*attr = tem->tvs_flags;
usr/src/boot/common/tem.c
2866
tem_get_color(struct tem_vt_state *tem, text_color_t *fg, text_color_t *bg,
usr/src/boot/common/tem.c
2909
fg->n = rgb_color_map(&rgb_info, fg->n, tem->tvs_alpha);
usr/src/boot/common/tem.c
2916
bg->n = rgb_color_map(&rgb_info, bg->n, tem->tvs_alpha);
usr/src/boot/common/tem.c
2937
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
2941
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2944
tem_get_color(tem, fg, bg, &c);
usr/src/boot/common/tem.c
2961
tem_pix_cls_range(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2978
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2983
tem_callback_bit2pix(tem, &c);
usr/src/boot/common/tem.c
2984
da.data = (uint8_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
3000
tem_virtual_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/boot/common/tem.c
3006
if (tem->tvs_screen_buf == NULL)
usr/src/boot/common/tem.c
3015
addr = tem->tvs_screen_buf + (row * width + col);
usr/src/boot/common/tem.c
302
tem_reinit(struct tem_vt_state *tem, bool reset_display)
usr/src/boot/common/tem.c
3022
tem_virtual_cls(struct tem_vt_state *tem, size_t count,
usr/src/boot/common/tem.c
3028
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
3034
tem_virtual_display(tem, &c, 1, row, col);
usr/src/boot/common/tem.c
304
tem_free_buf(tem); /* only free virtual buffers */
usr/src/boot/common/tem.c
307
tem_internal_init(tem, false, reset_display);
usr/src/boot/common/tem.c
311
tem_free_buf(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
313
free(tem->tvs_outbuf);
usr/src/boot/common/tem.c
314
tem->tvs_outbuf = NULL;
usr/src/boot/common/tem.c
316
free(tem->tvs_pix_data);
usr/src/boot/common/tem.c
317
tem->tvs_pix_data = NULL;
usr/src/boot/common/tem.c
319
free(tem->tvs_screen_buf);
usr/src/boot/common/tem.c
320
tem->tvs_screen_buf = NULL;
usr/src/boot/common/tem.c
322
free(tem->tvs_tabs);
usr/src/boot/common/tem.c
323
tem->tvs_tabs = NULL;
usr/src/boot/common/tem.c
780
tem_prom_scroll_up(struct tem_vt_state *tem, int nrows)
usr/src/boot/common/tem.c
800
tem_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y,
usr/src/boot/common/tem.c
809
tem_adjust_row(struct tem_vt_state *tem, int prom_row)
usr/src/boot/common/tem.c
835
tem_prom_scroll_up(tem, scroll_up_lines);
usr/src/boot/common/tem.c
843
tem_pix_align(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
863
row = tem_adjust_row(tem, row);
usr/src/boot/common/tem.c
866
tem->tvs_first_line = row + 1;
usr/src/boot/common/tem.c
869
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row =
usr/src/boot/common/tem.c
871
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
873
tem_reset_display(tem, true, true);
usr/src/boot/common/tem.c
939
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
941
tems.ts_active = tem;
usr/src/boot/common/tem.c
942
tem->tvs_isactive = true;
usr/src/boot/common/tem.c
944
tem_kdsetmode(tem->tvs_fbmode);
usr/src/boot/common/tem.c
947
tem_cls(tem);
usr/src/boot/common/tem.c
951
tem_check_first_time(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
966
tem_text_cursor(tem, VIS_GET_CURSOR);
usr/src/boot/common/tem.c
968
tem_pix_cursor(tem, VIS_GET_CURSOR);
usr/src/boot/common/tem.c
969
tem_align_cursor(tem);
usr/src/boot/common/tem.c
974
tem_input_partial(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
979
if (tem->tvs_utf8_left == 0)
usr/src/boot/common/tem.c
982
for (i = 0; i < sizeof (tem->tvs_utf8_partial); i++) {
usr/src/boot/common/tem.c
983
c = (tem->tvs_utf8_partial >> (24 - (i << 3))) & 0xff;
usr/src/boot/common/tem.c
985
tem_parse(tem, c);
usr/src/boot/common/tem.c
988
tem->tvs_utf8_left = 0;
usr/src/boot/common/tem.c
989
tem->tvs_utf8_partial = 0;
usr/src/boot/common/tem.c
996
tem_input_byte(struct tem_vt_state *tem, uint8_t c)
usr/src/boot/efi/libefi/efi_console.c
556
if (tem != NULL)
usr/src/boot/efi/libefi/efi_console.c
598
if (tem_info_init(cp) == 0 && tem == NULL) {
usr/src/boot/efi/libefi/efi_console.c
599
tem = tem_init();
usr/src/boot/efi/libefi/efi_console.c
600
if (tem != NULL)
usr/src/boot/efi/libefi/efi_console.c
601
tem_activate(tem, B_TRUE);
usr/src/boot/efi/libefi/efi_console.c
604
if (tem == NULL)
usr/src/boot/efi/libefi/efi_console.c
616
if (tem == NULL)
usr/src/boot/efi/libefi/efi_console.c
619
tem_write(tem, &buf, sizeof (buf));
usr/src/boot/efi/libefi/efi_console.c
69
static tem_vt_state_t tem;
usr/src/boot/i386/libi386/vidconsole.c
185
if (tem == NULL) /* tem is not set up */
usr/src/boot/i386/libi386/vidconsole.c
80
static tem_vt_state_t tem;
usr/src/boot/i386/libi386/vidconsole.c
883
if (rc == 0 && tem == NULL) {
usr/src/boot/i386/libi386/vidconsole.c
884
tem = tem_init();
usr/src/boot/i386/libi386/vidconsole.c
885
if (tem != NULL)
usr/src/boot/i386/libi386/vidconsole.c
886
tem_activate(tem, true);
usr/src/boot/i386/libi386/vidconsole.c
911
if (tem == NULL)
usr/src/boot/i386/libi386/vidconsole.c
914
tem_write(tem, &buf, sizeof (buf));
usr/src/grub/grub-0.97/lib/getopt.c
314
char *tem;
usr/src/grub/grub-0.97/lib/getopt.c
354
tem = argv[bottom + i];
usr/src/grub/grub-0.97/lib/getopt.c
356
argv[top - (middle - bottom) + i] = tem;
usr/src/grub/grub-0.97/lib/getopt.c
371
tem = argv[bottom + i];
usr/src/grub/grub-0.97/lib/getopt.c
373
argv[middle + i] = tem;
usr/src/uts/common/io/tem.c
1052
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1056
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1057
fbmode = tem->tvs_fbmode;
usr/src/uts/common/io/tem.c
1058
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1066
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1069
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1071
if (fbmode == tem->tvs_fbmode) {
usr/src/uts/common/io/tem.c
1072
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1077
tem->tvs_fbmode = fbmode;
usr/src/uts/common/io/tem.c
1079
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem.c
1080
tem_kdsetmode(tem->tvs_fbmode, credp);
usr/src/uts/common/io/tem.c
1082
tem_safe_unblank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
1085
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1092
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1095
tems.ts_active = tem;
usr/src/uts/common/io/tem.c
1097
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1098
tem->tvs_isactive = B_TRUE;
usr/src/uts/common/io/tem.c
1100
tem_kdsetmode(tem->tvs_fbmode, credp);
usr/src/uts/common/io/tem.c
1103
tem_safe_unblank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
1105
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
169
tem_add(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
171
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
173
list_insert_head(&tems.ts_list, tem);
usr/src/uts/common/io/tem.c
177
tem_rm(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
179
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
181
list_remove(&tems.ts_list, tem);
usr/src/uts/common/io/tem.c
191
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
194
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
196
if (!tem->tvs_initialized) {
usr/src/uts/common/io/tem.c
197
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
202
tem_safe_check_first_time(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
203
tem_safe_terminal_emulate(tem, buf, len, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
205
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
323
struct tem_vt_state *tem = (struct tem_vt_state *)arg;
usr/src/uts/common/io/tem.c
325
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
326
ASSERT3P(tem->tvs_queue, ==, NULL);
usr/src/uts/common/io/tem.c
327
tem->tvs_queue = rq;
usr/src/uts/common/io/tem.c
328
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
336
tem_reinit(struct tem_vt_state *tem, boolean_t reset_display)
usr/src/uts/common/io/tem.c
338
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
340
tem_free_buf(tem); /* only free virtual buffers */
usr/src/uts/common/io/tem.c
343
tem_internal_init(tem, kcred, B_FALSE, reset_display);
usr/src/uts/common/io/tem.c
347
tem_free_buf(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
349
ASSERT(tem != NULL && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
351
if (tem->tvs_outbuf != NULL)
usr/src/uts/common/io/tem.c
352
kmem_free(tem->tvs_outbuf, tem->tvs_outbuf_size);
usr/src/uts/common/io/tem.c
353
if (tem->tvs_pix_data != NULL)
usr/src/uts/common/io/tem.c
354
kmem_free(tem->tvs_pix_data, tem->tvs_pix_data_size);
usr/src/uts/common/io/tem.c
355
if (tem->tvs_screen_buf != NULL)
usr/src/uts/common/io/tem.c
356
kmem_free(tem->tvs_screen_buf, tem->tvs_screen_buf_size);
usr/src/uts/common/io/tem.c
357
if (tem->tvs_screen_rows != NULL) {
usr/src/uts/common/io/tem.c
358
kmem_free(tem->tvs_screen_rows, tem->tvs_screen_history_size *
usr/src/uts/common/io/tem.c
361
if (tem->tvs_tabs != NULL) {
usr/src/uts/common/io/tem.c
362
kmem_free(tem->tvs_tabs, tem->tvs_maxtab *
usr/src/uts/common/io/tem.c
363
sizeof (*tem->tvs_tabs));
usr/src/uts/common/io/tem.c
370
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
373
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
375
if (tem->tvs_isactive && tem->tvs_fbmode == KD_TEXT)
usr/src/uts/common/io/tem.c
376
tem_safe_blank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
378
tem_free_buf(tem);
usr/src/uts/common/io/tem.c
379
tem_rm(tem);
usr/src/uts/common/io/tem.c
381
if (tems.ts_active == tem)
usr/src/uts/common/io/tem.c
384
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
387
kmem_free(tem, sizeof (struct tem_vt_state));
usr/src/uts/common/io/tem.c
393
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
395
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
396
tem->tvs_queue = NULL;
usr/src/uts/common/io/tem.c
397
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
853
tem_prom_scroll_up(struct tem_vt_state *tem, int nrows, cred_t *credp,
usr/src/uts/common/io/tem.c
874
tem_safe_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y,
usr/src/uts/common/io/tem.c
886
tem_adjust_row(struct tem_vt_state *tem, int prom_row, cred_t *credp,
usr/src/uts/common/io/tem.c
918
tem_prom_scroll_up(tem, scroll_up_lines, credp, called_from);
usr/src/uts/common/io/tem.c
926
tem_align(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem.c
946
row = tem_adjust_row(tem, row, credp, called_from);
usr/src/uts/common/io/tem.c
949
tem->tvs_first_line = row + 1;
usr/src/uts/common/io/tem.c
952
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row =
usr/src/uts/common/io/tem.c
954
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem.c
964
tem->tvs_screen_rows[row][col].tc_char =
usr/src/uts/common/io/tem_safe.c
1007
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1008
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
1009
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1013
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1015
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1016
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1017
tem->tvs_c_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1020
for (row = tem->tvs_c_cursor.row + 1;
usr/src/uts/common/io/tem_safe.c
1023
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1033
row < tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1035
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1040
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1041
tem->tvs_c_cursor.col + 1,
usr/src/uts/common/io/tem_safe.c
1042
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1051
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1060
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1061
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
1062
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1065
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1067
tem->tvs_c_cursor.col),
usr/src/uts/common/io/tem_safe.c
1068
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1069
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1075
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1076
tem->tvs_c_cursor.col + 1,
usr/src/uts/common/io/tem_safe.c
1077
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1083
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1085
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1092
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1093
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1094
tem_safe_scroll(tem,
usr/src/uts/common/io/tem_safe.c
1095
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1097
tem->tvs_params[0], TEM_SCROLL_DOWN,
usr/src/uts/common/io/tem_safe.c
1102
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1103
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1104
tem_safe_scroll(tem,
usr/src/uts/common/io/tem_safe.c
1105
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1107
tem->tvs_params[0], TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1112
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1113
tem_safe_shift(tem, tem->tvs_params[0], TEM_SHIFT_LEFT,
usr/src/uts/common/io/tem_safe.c
1118
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1119
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1120
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1122
tem->tvs_params[0], TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1127
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1128
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1129
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1131
tem->tvs_params[0], TEM_SCROLL_DOWN,
usr/src/uts/common/io/tem_safe.c
1136
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1137
tem_safe_window(tem, called_from);
usr/src/uts/common/io/tem_safe.c
1141
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1142
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1143
tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
1144
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1145
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1150
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1159
if (tem->tvs_params[0] > tems.ts_c_dimension.width)
usr/src/uts/common/io/tem_safe.c
1160
tem->tvs_params[0] = tems.ts_c_dimension.width;
usr/src/uts/common/io/tem_safe.c
1162
for (i = 0; i < tem->tvs_params[0]; i++)
usr/src/uts/common/io/tem_safe.c
1163
tem_safe_back_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1166
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1170
tem_safe_chkparam_qmark(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
1174
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1178
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1179
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1181
tem->tvs_stateflags |= TVS_AUTOWRAP;
usr/src/uts/common/io/tem_safe.c
1191
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1192
tem->tvs_cursor_hidden = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1199
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1200
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1202
tem->tvs_stateflags &= ~TVS_AUTOWRAP;
usr/src/uts/common/io/tem_safe.c
1212
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1213
tem->tvs_cursor_hidden = B_TRUE;
usr/src/uts/common/io/tem_safe.c
1218
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1225
tem_safe_getparams(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1229
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1232
tem->tvs_paramval = ((tem->tvs_paramval * 10) + (ch - '0'));
usr/src/uts/common/io/tem_safe.c
1233
tem->tvs_gotparam = B_TRUE; /* Remember got parameter */
usr/src/uts/common/io/tem_safe.c
1235
} else if (tem->tvs_state == A_STATE_CSI_EQUAL) {
usr/src/uts/common/io/tem_safe.c
1236
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1237
} else if (tem->tvs_state == A_STATE_CSI_QMARK) {
usr/src/uts/common/io/tem_safe.c
1238
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/uts/common/io/tem_safe.c
1239
if (tem->tvs_gotparam) {
usr/src/uts/common/io/tem_safe.c
1241
tem->tvs_params[tem->tvs_curparam] =
usr/src/uts/common/io/tem_safe.c
1242
tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1244
tem->tvs_curparam++;
usr/src/uts/common/io/tem_safe.c
1248
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1249
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/uts/common/io/tem_safe.c
1252
tem_safe_chkparam_qmark(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1255
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/uts/common/io/tem_safe.c
1256
if (tem->tvs_gotparam) {
usr/src/uts/common/io/tem_safe.c
1258
tem->tvs_params[tem->tvs_curparam] =
usr/src/uts/common/io/tem_safe.c
1259
tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1261
tem->tvs_curparam++;
usr/src/uts/common/io/tem_safe.c
1266
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1267
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/uts/common/io/tem_safe.c
1270
tem_safe_chkparam(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1281
tem_safe_outch(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1288
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1292
if ((tem->tvs_stateflags & (TVS_AUTOWRAP | TVS_WRAPPED)) ==
usr/src/uts/common/io/tem_safe.c
1294
tem_safe_new_line(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1298
tem_safe_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE);
usr/src/uts/common/io/tem_safe.c
1299
tem->tvs_outbuf[tem->tvs_outindex].tc_char = ch | TEM_ATTR(attr);
usr/src/uts/common/io/tem_safe.c
1300
tem->tvs_outbuf[tem->tvs_outindex].tc_fg_color = fg;
usr/src/uts/common/io/tem_safe.c
1301
tem->tvs_outbuf[tem->tvs_outindex].tc_bg_color = bg;
usr/src/uts/common/io/tem_safe.c
1302
tem->tvs_outindex++;
usr/src/uts/common/io/tem_safe.c
1303
tem->tvs_c_cursor.col++;
usr/src/uts/common/io/tem_safe.c
1304
if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) {
usr/src/uts/common/io/tem_safe.c
1305
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1306
tem->tvs_c_cursor.col--;
usr/src/uts/common/io/tem_safe.c
1307
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1309
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1314
tem_safe_new_line(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1317
tem_safe_cr(tem);
usr/src/uts/common/io/tem_safe.c
1318
tem_safe_lf(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1322
tem_safe_cr(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
1324
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
1325
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1326
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1330
tem_safe_lf(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1336
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1338
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1345
row = tem->tvs_c_cursor.row + 1;
usr/src/uts/common/io/tem_safe.c
1348
if (tem->tvs_nscroll != 0) {
usr/src/uts/common/io/tem_safe.c
1349
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1351
tem->tvs_nscroll, TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1354
tem->tvs_nscroll;
usr/src/uts/common/io/tem_safe.c
1365
tem_safe_mv_cursor(tem, row, tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1368
if (tem->tvs_nscroll == 0) {
usr/src/uts/common/io/tem_safe.c
1370
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1372
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1373
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1374
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1379
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1383
tem_safe_send_data(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
1387
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1389
if (tem->tvs_outindex == 0) {
usr/src/uts/common/io/tem_safe.c
1390
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1394
tem_safe_virtual_display(tem,
usr/src/uts/common/io/tem_safe.c
1395
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/uts/common/io/tem_safe.c
1396
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/uts/common/io/tem_safe.c
1398
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
140
static void tem_safe_clear_chars(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1402
tem_safe_callback_display(tem,
usr/src/uts/common/io/tem_safe.c
1403
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/uts/common/io/tem_safe.c
1404
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col,
usr/src/uts/common/io/tem_safe.c
1408
tem->tvs_outindex = 0;
usr/src/uts/common/io/tem_safe.c
1410
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1420
tem_safe_align_cursor(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
1422
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1423
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
143
static void tem_safe_copy_area(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1432
tem_safe_parse(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1438
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1440
if (tem->tvs_state == A_STATE_START) { /* Normal state? */
usr/src/uts/common/io/tem_safe.c
1443
tem_safe_control(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1446
tem_safe_outch(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1452
if (tem->tvs_state != A_STATE_ESC) { /* Need to get parameters? */
usr/src/uts/common/io/tem_safe.c
1453
if (tem->tvs_state != A_STATE_CSI) {
usr/src/uts/common/io/tem_safe.c
1454
tem_safe_getparams(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1460
tem->tvs_state = A_STATE_CSI_QMARK;
usr/src/uts/common/io/tem_safe.c
1463
tem->tvs_state = A_STATE_CSI_EQUAL;
usr/src/uts/common/io/tem_safe.c
1487
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1490
tem_safe_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/uts/common/io/tem_safe.c
1491
tem->tvs_r_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1492
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1495
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1500
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
1501
tem->tvs_flags &= ~TEM_ATTR_SCREEN_REVERSE;
usr/src/uts/common/io/tem_safe.c
1507
if (tem->tvs_flags & TEM_ATTR_REVERSE)
usr/src/uts/common/io/tem_safe.c
1508
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1510
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1512
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1513
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1516
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1521
if (!(tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE)) {
usr/src/uts/common/io/tem_safe.c
1522
tem->tvs_flags |= TEM_ATTR_SCREEN_REVERSE;
usr/src/uts/common/io/tem_safe.c
1528
if (!(tem->tvs_flags & TEM_ATTR_REVERSE))
usr/src/uts/common/io/tem_safe.c
1529
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1531
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1534
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1535
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
154
static void tem_safe_bell(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1541
tem->tvs_nscroll = tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1542
if (tem->tvs_nscroll > tems.ts_c_dimension.height)
usr/src/uts/common/io/tem_safe.c
1543
tem->tvs_nscroll = tems.ts_c_dimension.height;
usr/src/uts/common/io/tem_safe.c
1544
if (tem->tvs_nscroll < 0)
usr/src/uts/common/io/tem_safe.c
1545
tem->tvs_nscroll = 1;
usr/src/uts/common/io/tem_safe.c
1546
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1549
tem_safe_getparams(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1556
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
1557
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
1558
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
156
static void tem_safe_pix_clear_prom_output(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1561
tem->tvs_params[i] = -1;
usr/src/uts/common/io/tem_safe.c
1562
tem->tvs_state = A_STATE_CSI;
usr/src/uts/common/io/tem_safe.c
1564
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1566
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1568
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1571
tem_safe_reset_display(tem, credp, called_from,
usr/src/uts/common/io/tem_safe.c
1575
tem_safe_set_tab(tem);
usr/src/uts/common/io/tem_safe.c
1578
tem->tvs_r_cursor.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1579
tem->tvs_r_cursor.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
1582
tem_safe_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/uts/common/io/tem_safe.c
1583
tem->tvs_r_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1586
tem_safe_control(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1588
tem_safe_outch(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1595
tem_safe_bell(struct tem_vt_state *tem, enum called_from called_from)
usr/src/uts/common/io/tem_safe.c
1605
tem_safe_scroll(struct tem_vt_state *tem, int start, int end, int count,
usr/src/uts/common/io/tem_safe.c
1611
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1623
tem_safe_copy_area(tem, 0, start + count,
usr/src/uts/common/io/tem_safe.c
1628
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
1635
tem_safe_copy_area(tem, 0, start,
usr/src/uts/common/io/tem_safe.c
1641
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
1674
tem_safe_copy_area(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1685
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
169
static void tem_safe_align_cursor(struct tem_vt_state *tem);
usr/src/uts/common/io/tem_safe.c
170
static void bit_to_pix4(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1710
src = tem->tvs_screen_buf + soffset;
usr/src/uts/common/io/tem_safe.c
1711
dst = tem->tvs_screen_buf + toffset;
usr/src/uts/common/io/tem_safe.c
172
static void bit_to_pix8(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1725
tem_safe_virtual_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1729
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
1730
tem_safe_callback_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
174
static void bit_to_pix16(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1743
tem_safe_virtual_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1747
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
1748
tem_safe_callback_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1757
tem_safe_clear_chars(struct tem_vt_state *tem, int count, screen_pos_t row,
usr/src/uts/common/io/tem_safe.c
176
static void bit_to_pix24(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1760
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1776
tem_safe_virtual_cls(tem, count, row, col);
usr/src/uts/common/io/tem_safe.c
1778
if (!tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
178
static void bit_to_pix32(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1781
tem_safe_callback_cls(tem, count, row, col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1786
tem_safe_text_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/uts/common/io/tem_safe.c
1795
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1804
tem_safe_get_color(tem, &fg, &bg, &string[i]);
usr/src/uts/common/io/tem_safe.c
1826
tem_safe_image_display(struct tem_vt_state *tem, uchar_t *image,
usr/src/uts/common/io/tem_safe.c
1833
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem_safe.c
1843
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem_safe.c
1850
tem_safe_text_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1858
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1872
tem_safe_text_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1880
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1883
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
1894
tem_safe_text_display(tem, tems.ts_blank_line, count, row, col,
usr/src/uts/common/io/tem_safe.c
1899
tem_safe_pix_display(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
190
#define tem_safe_callback_bit2pix(tem, c) { \
usr/src/uts/common/io/tem_safe.c
1907
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1910
da.data = (uchar_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
1919
tem_safe_callback_bit2pix(tem, &string[i]);
usr/src/uts/common/io/tem_safe.c
192
(void) (*tems.ts_callbacks->tsc_bit2pix)((tem), (c));\
usr/src/uts/common/io/tem_safe.c
1927
tem_safe_pix_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1937
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1940
if (need_clear && tem->tvs_first_line > 0) {
usr/src/uts/common/io/tem_safe.c
1949
tem_safe_pix_clear_prom_output(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1962
if (tem->tvs_first_line > 0 && t_row < s_row && t_col == 0 &&
usr/src/uts/common/io/tem_safe.c
197
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1981
if (tem->tvs_first_line > 0 && t_row < s_row) {
usr/src/uts/common/io/tem_safe.c
1983
tem->tvs_first_line -= (s_row - t_row);
usr/src/uts/common/io/tem_safe.c
1984
if (tem->tvs_first_line <= 0) {
usr/src/uts/common/io/tem_safe.c
1986
tem->tvs_first_line = 0;
usr/src/uts/common/io/tem_safe.c
1993
tem_safe_pix_bit2pix(struct tem_vt_state *tem, term_char_t *c)
usr/src/uts/common/io/tem_safe.c
1999
tem_safe_get_color(tem, &fg, &bg, c);
usr/src/uts/common/io/tem_safe.c
2021
fp(tem, c->tc_char, fg, bg);
usr/src/uts/common/io/tem_safe.c
2029
tem_safe_pix_cls(struct tem_vt_state *tem, int count,
usr/src/uts/common/io/tem_safe.c
203
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2033
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2036
tem_safe_pix_cls_range(tem, row, 1, tems.ts_p_offset.y,
usr/src/uts/common/io/tem_safe.c
2064
tem_safe_pix_clear_prom_output(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2069
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2080
tem_safe_pix_cls_range(tem, 0, nrows, offset, 0, ncols, 0,
usr/src/uts/common/io/tem_safe.c
2089
tem_safe_pix_clear_entire_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2099
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2103
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2107
tem_safe_get_color(tem, &fg_color, &bg_color, &c);
usr/src/uts/common/io/tem_safe.c
2118
tem_safe_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y, 0, ncols,
usr/src/uts/common/io/tem_safe.c
2125
if (tem->tvs_first_line > 0)
usr/src/uts/common/io/tem_safe.c
2126
tem->tvs_first_line = 0;
usr/src/uts/common/io/tem_safe.c
2134
tem_safe_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2139
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2144
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
2147
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2148
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2149
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2156
tem_safe_virtual_cls(tem, tems.ts_c_dimension.width, row, 0);
usr/src/uts/common/io/tem_safe.c
2158
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2159
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2160
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2162
if (!tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2165
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2169
tem_safe_back_tab(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
217
tem_safe_text_cursor(tem, VIS_GET_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2175
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2180
for (i = tem->tvs_ntabs - 1; i >= 0; i--) {
usr/src/uts/common/io/tem_safe.c
2181
if (tem->tvs_tabs[i] < tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2182
tabstop = tem->tvs_tabs[i];
usr/src/uts/common/io/tem_safe.c
2187
tem_safe_mv_cursor(tem, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
219
tem_safe_pix_cursor(tem, VIS_GET_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2192
tem_safe_tab(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2198
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
220
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2203
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2204
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2205
tabstop = tem->tvs_tabs[i];
usr/src/uts/common/io/tem_safe.c
2210
tem_safe_mv_cursor(tem, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2215
tem_safe_set_tab(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
2219
if (tem->tvs_ntabs == tem->tvs_maxtab)
usr/src/uts/common/io/tem_safe.c
2221
if (tem->tvs_ntabs == 0 ||
usr/src/uts/common/io/tem_safe.c
2222
tem->tvs_tabs[tem->tvs_ntabs] < tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2223
tem->tvs_tabs[tem->tvs_ntabs++] = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2226
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2227
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col)
usr/src/uts/common/io/tem_safe.c
2229
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2230
for (j = tem->tvs_ntabs - 1; j >= i; j--)
usr/src/uts/common/io/tem_safe.c
2231
tem->tvs_tabs[j+ 1] = tem->tvs_tabs[j];
usr/src/uts/common/io/tem_safe.c
2232
tem->tvs_tabs[i] = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2233
tem->tvs_ntabs++;
usr/src/uts/common/io/tem_safe.c
2240
tem_safe_clear_tabs(struct tem_vt_state *tem, int action)
usr/src/uts/common/io/tem_safe.c
2246
tem->tvs_ntabs = 0;
usr/src/uts/common/io/tem_safe.c
2250
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2251
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2252
tem->tvs_ntabs--;
usr/src/uts/common/io/tem_safe.c
2253
for (j = i; j < tem->tvs_ntabs; j++)
usr/src/uts/common/io/tem_safe.c
2254
tem->tvs_tabs[j] = tem->tvs_tabs[j + 1];
usr/src/uts/common/io/tem_safe.c
2263
tem_safe_mv_cursor(struct tem_vt_state *tem, int row, int col,
usr/src/uts/common/io/tem_safe.c
2266
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2281
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
2284
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
2287
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2288
tem->tvs_c_cursor.row = (screen_pos_t)row;
usr/src/uts/common/io/tem_safe.c
2289
tem->tvs_c_cursor.col = (screen_pos_t)col;
usr/src/uts/common/io/tem_safe.c
2290
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2295
tem_safe_reset_emulator(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2301
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2304
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2305
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2306
tem->tvs_r_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2307
tem->tvs_r_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2308
tem->tvs_s_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2309
tem->tvs_s_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2310
tem->tvs_outindex = 0;
usr/src/uts/common/io/tem_safe.c
2311
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
2312
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
2313
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
2314
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
2315
tem->tvs_nscroll = 1;
usr/src/uts/common/io/tem_safe.c
2318
tem->tvs_alpha = 0xff;
usr/src/uts/common/io/tem_safe.c
2319
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
2320
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
2321
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/uts/common/io/tem_safe.c
2327
tem->tvs_ntabs = 0;
usr/src/uts/common/io/tem_safe.c
2329
tem->tvs_tabs[tem->tvs_ntabs++] = (screen_pos_t)j;
usr/src/uts/common/io/tem_safe.c
2332
tem->tvs_params[j] = 0;
usr/src/uts/common/io/tem_safe.c
2336
tem_safe_reset_display(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2340
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2343
tem_safe_reset_emulator(tem, credp, called_from, init_color);
usr/src/uts/common/io/tem_safe.c
2346
if (tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2347
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
2350
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2352
if (tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2353
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
2360
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2368
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2371
rest_of_line = tems.ts_c_dimension.width - tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
238
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem_safe.c
2381
tem_safe_copy_area(tem,
usr/src/uts/common/io/tem_safe.c
2382
tem->tvs_c_cursor.col + count,
usr/src/uts/common/io/tem_safe.c
2383
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2385
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2386
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
2387
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2391
tem_safe_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2397
tem_safe_copy_area(tem,
usr/src/uts/common/io/tem_safe.c
2398
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
2399
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2401
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2402
tem->tvs_c_cursor.col + count,
usr/src/uts/common/io/tem_safe.c
2403
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2407
tem_safe_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2408
tem->tvs_c_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2414
tem_safe_text_cursor(struct tem_vt_state *tem, short action,
usr/src/uts/common/io/tem_safe.c
2419
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2422
ca.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
2423
ca.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2429
tem->tvs_c_cursor.row = ca.row;
usr/src/uts/common/io/tem_safe.c
2430
tem->tvs_c_cursor.col = ca.col;
usr/src/uts/common/io/tem_safe.c
2435
tem_safe_pix_cursor(struct tem_vt_state *tem, short action,
usr/src/uts/common/io/tem_safe.c
2443
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2446
ca.row = tem->tvs_c_cursor.row * tems.ts_font.vf_height +
usr/src/uts/common/io/tem_safe.c
2448
ca.col = tem->tvs_c_cursor.col * tems.ts_font.vf_width +
usr/src/uts/common/io/tem_safe.c
245
if (!tem->tvs_initialized) {
usr/src/uts/common/io/tem_safe.c
2453
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2457
tem_safe_get_color(tem, &fg, &bg, &c);
usr/src/uts/common/io/tem_safe.c
2466
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2467
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2470
tem->tvs_c_cursor.row = (ca.row - tems.ts_p_offset.y) /
usr/src/uts/common/io/tem_safe.c
2474
tem->tvs_c_cursor.col = (ca.col - tems.ts_p_offset.x) /
usr/src/uts/common/io/tem_safe.c
2481
bit_to_pix4(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2484
uint8_t *dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
249
tem_safe_check_first_time(tem, kcred, CALLED_FROM_STANDALONE);
usr/src/uts/common/io/tem_safe.c
2490
bit_to_pix8(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2493
uint8_t *dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2499
bit_to_pix16(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
250
tem_safe_terminal_emulate(tem, buf, len, NULL, CALLED_FROM_STANDALONE);
usr/src/uts/common/io/tem_safe.c
2504
dest = (uint16_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2509
bit_to_pix24(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2514
dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2519
bit_to_pix32(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2524
dest = (uint32_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2532
tem_safe_get_attr(struct tem_vt_state *tem, text_color_t *fg,
usr/src/uts/common/io/tem_safe.c
2535
if (tem->tvs_flags & flag) {
usr/src/uts/common/io/tem_safe.c
2536
*fg = tem->tvs_bg_color;
usr/src/uts/common/io/tem_safe.c
2537
*bg = tem->tvs_fg_color;
usr/src/uts/common/io/tem_safe.c
2539
*fg = tem->tvs_fg_color;
usr/src/uts/common/io/tem_safe.c
2540
*bg = tem->tvs_bg_color;
usr/src/uts/common/io/tem_safe.c
2544
*attr = tem->tvs_flags;
usr/src/uts/common/io/tem_safe.c
2548
tem_safe_get_color(struct tem_vt_state *tem, text_color_t *fg,
usr/src/uts/common/io/tem_safe.c
255
tem_safe_input_partial(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2604
fg->n = rgb_color_map(&rgb_info, fg->n, tem->tvs_alpha);
usr/src/uts/common/io/tem_safe.c
261
if (tem->tvs_utf8_left == 0)
usr/src/uts/common/io/tem_safe.c
2616
bg->n = rgb_color_map(&rgb_info, bg->n, tem->tvs_alpha);
usr/src/uts/common/io/tem_safe.c
264
for (i = 0; i < sizeof (tem->tvs_utf8_partial); i++) {
usr/src/uts/common/io/tem_safe.c
265
c = (tem->tvs_utf8_partial >> (24 - (i << 3))) & 0xff;
usr/src/uts/common/io/tem_safe.c
2661
tem_safe_pix_cls_range(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
267
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2673
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2682
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2687
tem_safe_callback_bit2pix(tem, &c);
usr/src/uts/common/io/tem_safe.c
2688
da.data = (uchar_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
270
tem->tvs_utf8_left = 0;
usr/src/uts/common/io/tem_safe.c
2704
tem_safe_virtual_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/uts/common/io/tem_safe.c
271
tem->tvs_utf8_partial = 0;
usr/src/uts/common/io/tem_safe.c
2716
addr = tem->tvs_screen_buf + (row * width + col);
usr/src/uts/common/io/tem_safe.c
2772
tem_safe_virtual_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
278
tem_safe_input_byte(struct tem_vt_state *tem, uchar_t c, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2800
i_virtual_copy_tem_chars(tem->tvs_screen_buf, s_col, s_row,
usr/src/uts/common/io/tem_safe.c
2805
tem_safe_virtual_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2812
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2819
tem_safe_virtual_display(tem, tems.ts_blank_line, count, row, col);
usr/src/uts/common/io/tem_safe.c
2826
tem_safe_blank_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2831
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2835
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2840
tem_safe_callback_cls(tem,
usr/src/uts/common/io/tem_safe.c
2850
tem_safe_unblank_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2855
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2859
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2861
tem_safe_callback_cursor(tem, VIS_HIDE_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2870
tem_safe_callback_display(tem, tem->tvs_screen_rows[row],
usr/src/uts/common/io/tem_safe.c
2874
tem_safe_callback_cursor(tem, VIS_DISPLAY_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
289
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
290
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
295
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
296
tem->tvs_utf8_left = 1;
usr/src/uts/common/io/tem_safe.c
297
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
302
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
303
tem->tvs_utf8_left = 2;
usr/src/uts/common/io/tem_safe.c
304
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
309
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
310
tem->tvs_utf8_left = 3;
usr/src/uts/common/io/tem_safe.c
311
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
316
if (tem->tvs_utf8_left == 0) {
usr/src/uts/common/io/tem_safe.c
317
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
320
tem->tvs_utf8_left--;
usr/src/uts/common/io/tem_safe.c
321
tem->tvs_utf8_partial = (tem->tvs_utf8_partial << 8) | c;
usr/src/uts/common/io/tem_safe.c
322
if (tem->tvs_utf8_left == 0) {
usr/src/uts/common/io/tem_safe.c
331
u = tem->tvs_utf8_partial;
usr/src/uts/common/io/tem_safe.c
353
tem_safe_parse(tem, v, credp, called_from);
usr/src/uts/common/io/tem_safe.c
354
tem->tvs_utf8_partial = 0;
usr/src/uts/common/io/tem_safe.c
359
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
360
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
373
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
380
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
383
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/uts/common/io/tem_safe.c
384
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
388
tem_safe_input_byte(tem, *buf, credp, called_from);
usr/src/uts/common/io/tem_safe.c
393
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
395
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/uts/common/io/tem_safe.c
396
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
452
tem_safe_control(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
455
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
458
tem_safe_bell(tem, called_from);
usr/src/uts/common/io/tem_safe.c
462
tem_safe_mv_cursor(tem,
usr/src/uts/common/io/tem_safe.c
463
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
464
tem->tvs_c_cursor.col - 1,
usr/src/uts/common/io/tem_safe.c
469
tem_safe_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
480
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
481
tem_safe_lf(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
485
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
486
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
490
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
491
tem_safe_cr(tem);
usr/src/uts/common/io/tem_safe.c
495
tem->tvs_state = A_STATE_ESC;
usr/src/uts/common/io/tem_safe.c
501
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
502
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
503
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
506
tem->tvs_params[i] = -1;
usr/src/uts/common/io/tem_safe.c
507
tem->tvs_state = A_STATE_CSI;
usr/src/uts/common/io/tem_safe.c
512
tem_safe_back_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
527
tem_safe_setparam(struct tem_vt_state *tem, int count, int newparam)
usr/src/uts/common/io/tem_safe.c
532
if (tem->tvs_params[i] == -1)
usr/src/uts/common/io/tem_safe.c
533
tem->tvs_params[i] = newparam;
usr/src/uts/common/io/tem_safe.c
543
tem_select_color(struct tem_vt_state *tem, int color, boolean_t fg)
usr/src/uts/common/io/tem_safe.c
554
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
555
tem->tvs_fg_color.n = color;
usr/src/uts/common/io/tem_safe.c
557
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
558
tem->tvs_bg_color.n = color;
usr/src/uts/common/io/tem_safe.c
566
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
568
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
577
tem->tvs_fg_color.n -= 8;
usr/src/uts/common/io/tem_safe.c
578
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
580
tem->tvs_bg_color.n -= 8;
usr/src/uts/common/io/tem_safe.c
581
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
590
tem_safe_selgraph(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
597
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
599
curparam = tem->tvs_curparam;
usr/src/uts/common/io/tem_safe.c
601
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
607
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
608
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
609
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/uts/common/io/tem_safe.c
613
tem->tvs_flags |= TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
617
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
621
tem->tvs_flags |= TEM_ATTR_UNDERLINE;
usr/src/uts/common/io/tem_safe.c
624
tem->tvs_flags |= TEM_ATTR_BLINK;
usr/src/uts/common/io/tem_safe.c
628
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
629
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
631
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
636
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
640
tem->tvs_flags &= ~TEM_ATTR_UNDERLINE;
usr/src/uts/common/io/tem_safe.c
644
tem->tvs_flags &= ~TEM_ATTR_BLINK;
usr/src/uts/common/io/tem_safe.c
648
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
649
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
651
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
663
tem->tvs_fg_color.n = param - 30;
usr/src/uts/common/io/tem_safe.c
664
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
665
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
684
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
691
r = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
692
g = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
693
b = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
701
tem->tvs_flags |= TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
702
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
703
tem->tvs_fg_color.rgb.a =
usr/src/uts/common/io/tem_safe.c
704
tem->tvs_alpha;
usr/src/uts/common/io/tem_safe.c
705
tem->tvs_fg_color.rgb.r = r;
usr/src/uts/common/io/tem_safe.c
706
tem->tvs_fg_color.rgb.g = g;
usr/src/uts/common/io/tem_safe.c
707
tem->tvs_fg_color.rgb.b = b;
usr/src/uts/common/io/tem_safe.c
713
tem_select_color(tem, tem->tvs_params[count],
usr/src/uts/common/io/tem_safe.c
726
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
727
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
729
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
731
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
742
tem->tvs_bg_color.n = param - 40;
usr/src/uts/common/io/tem_safe.c
743
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
744
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
763
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
770
r = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
771
g = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
772
b = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
780
tem->tvs_flags |= TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
781
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
782
tem->tvs_bg_color.rgb.a =
usr/src/uts/common/io/tem_safe.c
783
tem->tvs_alpha;
usr/src/uts/common/io/tem_safe.c
784
tem->tvs_bg_color.rgb.r = r;
usr/src/uts/common/io/tem_safe.c
785
tem->tvs_bg_color.rgb.g = g;
usr/src/uts/common/io/tem_safe.c
786
tem->tvs_bg_color.rgb.b = b;
usr/src/uts/common/io/tem_safe.c
792
tem_select_color(tem, tem->tvs_params[count],
usr/src/uts/common/io/tem_safe.c
805
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
806
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
808
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
810
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
821
tem->tvs_fg_color.n = param - 90;
usr/src/uts/common/io/tem_safe.c
822
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
823
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
834
tem->tvs_bg_color.n = param - 100;
usr/src/uts/common/io/tem_safe.c
835
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
836
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
852
tem_safe_window(struct tem_vt_state *tem, enum called_from called_from)
usr/src/uts/common/io/tem_safe.c
861
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
862
curparam = tem->tvs_curparam;
usr/src/uts/common/io/tem_safe.c
864
param = tem->tvs_params[index];
usr/src/uts/common/io/tem_safe.c
876
if (!canputnext(tem->tvs_queue))
usr/src/uts/common/io/tem_safe.c
889
(void) putnext(tem->tvs_queue, bp);
usr/src/uts/common/io/tem_safe.c
906
tem_safe_chkparam(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
914
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
916
row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
917
col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
922
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
923
tem_safe_selgraph(tem);
usr/src/uts/common/io/tem_safe.c
927
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
928
tem_safe_shift(tem, tem->tvs_params[0], TEM_SHIFT_RIGHT,
usr/src/uts/common/io/tem_safe.c
933
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
934
tem_safe_mv_cursor(tem, row - tem->tvs_params[0], col,
usr/src/uts/common/io/tem_safe.c
939
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
940
tem_safe_mv_cursor(tem, tem->tvs_params[0] - 1, col,
usr/src/uts/common/io/tem_safe.c
946
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
947
tem_safe_mv_cursor(tem, row + tem->tvs_params[0], col,
usr/src/uts/common/io/tem_safe.c
953
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
954
tem_safe_mv_cursor(tem, row, col + tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
959
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
960
tem_safe_mv_cursor(tem, row, tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
965
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
966
tem_safe_mv_cursor(tem, row, col - tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
971
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
972
tem_safe_mv_cursor(tem, row + tem->tvs_params[0], 0,
usr/src/uts/common/io/tem_safe.c
977
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
978
tem_safe_mv_cursor(tem, row - tem->tvs_params[0], 0,
usr/src/uts/common/io/tem_safe.c
983
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
984
tem_safe_mv_cursor(tem, row, tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
989
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
990
tem_safe_clear_tabs(tem, tem->tvs_params[0]);
usr/src/uts/common/io/tem_safe.c
995
tem_safe_setparam(tem, 2, 1);
usr/src/uts/common/io/tem_safe.c
996
tem_safe_mv_cursor(tem,
usr/src/uts/common/io/tem_safe.c
997
tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
998
tem->tvs_params[1] - 1,
usr/src/uts/common/sys/tem_impl.h
313
void tem_safe_check_first_time(struct tem_vt_state *tem, cred_t *,
usr/src/uts/sparc/fpu/fpu_simulator.c
187
pfpsd->fp_fsrtem = fsr.tem; /* Obtain fsr's tem */
usr/src/uts/sparc/fpu/fpu_simulator.c
207
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
219
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
231
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
246
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
501
andexcep = pfpsd->fp_current_exceptions & fsr.tem;
usr/src/uts/sparc/sys/fpu/fpu_simulator.h
125
#define tem fsr.tem
usr/src/uts/sparc/sys/fpu/fpu_simulator.h
95
unsigned int tem : 5; /* trap enable mask */