Lines Matching refs:width

219 	size_t size, width, height;  in tem_internal_init()  local
228 width = tems.ts_c_dimension.width; in tem_internal_init()
231 size = width * sizeof (tem_char_t); in tem_internal_init()
236 ptem->tvs_maxtab = width / 8; in tem_internal_init()
252 size = width * height * sizeof (term_char_t); in tem_internal_init()
254 tem_virtual_cls(ptem, width * height, 0, 0); in tem_internal_init()
345 size_t width = 0; in tem_info_init() local
394 plat_tem_get_prom_size(&height, &width); in tem_info_init()
399 tems_setup_terminal(&temargs, height, width); in tem_info_init()
428 if (tems.ts_c_dimension.width != tp->width || in tems_check_videomode()
432 if (tems.ts_p_dimension.width != tp->width || in tems_check_videomode()
445 if (tems.ts_p_dimension.width == 0 && in env_screen_nounset()
452 tems_setup_font(screen_size_t height, screen_size_t width) in tems_setup_font() argument
464 &tems.ts_c_dimension.width, height, width); in tems_setup_font()
487 tems_setup_terminal(struct vis_devinit *tp, size_t height, size_t width) in tems_setup_terminal() argument
499 tems.ts_p_dimension.width = 0; in tems_setup_terminal()
501 tems.ts_c_dimension.width = tp->width; in tems_setup_terminal()
506 8 * tp->width + BORDER_PIXELS); in tems_setup_terminal()
518 if (width == 0) { in tems_setup_terminal()
519 width = TEM_DEFAULT_COLS; in tems_setup_terminal()
523 tems.ts_c_dimension.width = (screen_size_t)width; in tems_setup_terminal()
525 tems.ts_p_dimension.width = tp->width; in tems_setup_terminal()
528 tems_setup_font(tp->height, tp->width); in tems_setup_terminal()
533 snprintf(env, sizeof (env), "%d", tems.ts_p_dimension.width); in tems_setup_terminal()
539 tems.ts_p_offset.x = (tems.ts_p_dimension.width - in tems_setup_terminal()
540 (tems.ts_c_dimension.width * tems.ts_font.vf_width)) / 2; in tems_setup_terminal()
554 snprintf(env, sizeof (env), "%d", tems.ts_c_dimension.width); in tems_setup_terminal()
586 size_t width = 0; in tems_modechange_callback() local
620 plat_tem_get_prom_size(&height, &width); in tems_modechange_callback()
624 tems_setup_terminal(devinit, height, width); in tems_modechange_callback()
729 *c = (uint16_t)tems.ts_c_dimension.width; in tem_get_size()
730 *x = (uint16_t)tems.ts_p_dimension.width; in tem_get_size()
775 int ncols, width; in tem_prom_scroll_up() local
783 ma.e_col = tems.ts_p_dimension.width - 1; in tem_prom_scroll_up()
789 width = tems.ts_font.vf_width; in tem_prom_scroll_up()
790 ncols = (tems.ts_p_dimension.width + (width - 1)) / width; in tem_prom_scroll_up()
1596 tems.ts_c_dimension.width - in tem_chkparam()
1606 tems.ts_c_dimension.width, row, 0); in tem_chkparam()
1617 tems.ts_c_dimension.width, row, 0); in tem_chkparam()
1631 tems.ts_c_dimension.width, row, 0); in tem_chkparam()
1644 (tems.ts_c_dimension.width - in tem_chkparam()
1660 tems.ts_c_dimension.width, in tem_chkparam()
1723 if (tem->tvs_params[0] > tems.ts_c_dimension.width) in tem_chkparam()
1724 tem->tvs_params[0] = tems.ts_c_dimension.width; in tem_chkparam()
1854 if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) { in tem_outch()
1914 tems.ts_c_dimension.width - in tem_lf()
2149 tems.ts_c_dimension.width - 1, end, 0, start); in tem_scroll()
2152 tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0); in tem_scroll()
2159 tems.ts_c_dimension.width - 1, in tem_scroll()
2163 tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0); in tem_scroll()
2172 int width = cols - 1; in tem_copy_width() local
2174 while (width >= 0) { in tem_copy_width()
2176 if (TEM_CHAR_ATTR(src[width].tc_char) == TEM_ATTR_IMAGE || in tem_copy_width()
2177 TEM_CHAR_ATTR(dst[width].tc_char) == TEM_ATTR_IMAGE) in tem_copy_width()
2184 if (src[width].tc_char != dst[width].tc_char || in tem_copy_width()
2185 src[width].tc_fg_color.n != dst[width].tc_fg_color.n || in tem_copy_width()
2186 src[width].tc_bg_color.n != dst[width].tc_bg_color.n) { in tem_copy_width()
2189 width--; in tem_copy_width()
2191 return (width + 1); in tem_copy_width()
2208 s_col >= tems.ts_c_dimension.width || in tem_copy_area()
2209 e_col >= tems.ts_c_dimension.width || in tem_copy_area()
2210 t_col >= tems.ts_c_dimension.width || in tem_copy_area()
2222 t_col + cols > tems.ts_c_dimension.width) in tem_copy_area()
2233 soffset = s_col + s_row * tems.ts_c_dimension.width; in tem_copy_area()
2234 toffset = t_col + t_row * tems.ts_c_dimension.width; in tem_copy_area()
2244 int increment = i * tems.ts_c_dimension.width; in tem_copy_area()
2245 int width; in tem_copy_area() local
2247 width = tem_copy_width(src + increment, in tem_copy_area()
2250 width * sizeof (term_char_t)); in tem_copy_area()
2253 e_col - cols + width, s_row + i, in tem_copy_area()
2259 int increment = i * tems.ts_c_dimension.width; in tem_copy_area()
2260 int width; in tem_copy_area() local
2262 width = tem_copy_width(src + increment, in tem_copy_area()
2265 width * sizeof (term_char_t)); in tem_copy_area()
2268 e_col - cols + width, s_row + i, in tem_copy_area()
2280 col < 0 || col >= tems.ts_c_dimension.width || in tem_clear_chars()
2288 if (count > tems.ts_c_dimension.width || in tem_clear_chars()
2289 col + count > tems.ts_c_dimension.width) in tem_clear_chars()
2290 count = tems.ts_c_dimension.width - col; in tem_clear_chars()
2313 da.width = 1; in tem_text_display()
2377 if (count > tems.ts_c_dimension.width || in tem_text_cls()
2378 col + count > tems.ts_c_dimension.width) in tem_text_cls()
2379 count = tems.ts_c_dimension.width - col; in tem_text_cls()
2395 da.width = tems.ts_font.vf_width; in tem_pix_display()
2398 da.col = (col * da.width) + tems.ts_p_offset.x; in tem_pix_display()
2403 da.col += da.width; in tem_pix_display()
2439 e_col == tems.ts_c_dimension.width - 1) { in tem_pix_copy()
2445 ma.e_col = tems.ts_p_dimension.width - 1; in tem_pix_copy()
2514 int nrows, ncols, width, height, offset; in tem_pix_clear_prom_output() local
2516 width = tems.ts_font.vf_width; in tem_pix_clear_prom_output()
2521 ncols = (tems.ts_p_dimension.width + (width - 1)) / width; in tem_pix_clear_prom_output()
2541 tem_virtual_cls(tem, tems.ts_c_dimension.width, row, 0); in tem_cls()
2584 tabstop = tems.ts_c_dimension.width - 1; in tem_tab()
2658 if (col >= tems.ts_c_dimension.width) { in tem_mv_cursor()
2660 col = tems.ts_c_dimension.width - 1; in tem_mv_cursor()
2702 for (j = 8; j < tems.ts_c_dimension.width; j += 8) in tem_reset_emulator()
2730 rest_of_line = tems.ts_c_dimension.width - tem->tvs_c_cursor.col; in tem_shift()
2743 tems.ts_c_dimension.width - 1, in tem_shift()
2750 (tems.ts_c_dimension.width - count)); in tem_shift()
2757 tems.ts_c_dimension.width - count - 1, in tem_shift()
2798 ca.width = tems.ts_font.vf_width; in tem_pix_cursor()
2967 da.width = tems.ts_font.vf_width; in tem_pix_cls_range()
2980 da.col = col * da.width + offset_x; in tem_pix_cls_range()
2983 da.col += da.width; in tem_pix_cls_range()
2995 size_t i, width; in tem_virtual_display() local
3002 col < 0 || col >= tems.ts_c_dimension.width || in tem_virtual_display()
3003 col + count > (size_t)tems.ts_c_dimension.width) in tem_virtual_display()
3006 width = tems.ts_c_dimension.width; in tem_virtual_display()
3007 addr = tem->tvs_screen_buf + (row * width + col); in tem_virtual_display()