Lines Matching refs:width
213 int width, height; in tem_internal_init() local
227 ptem->tvs_outbuf_size = tems.ts_c_dimension.width; in tem_internal_init()
231 width = tems.ts_c_dimension.width; in tem_internal_init()
233 ptem->tvs_screen_buf_size = width * height; in tem_internal_init()
235 (unsigned char *)kmem_alloc(width * height, KM_SLEEP); in tem_internal_init()
237 total = width * height * tc_size; in tem_internal_init()
247 for (j = 0; j < width; j++) { in tem_internal_init()
248 ptem->tvs_screen_buf[i * width + j] = ' '; in tem_internal_init()
249 ptem->tvs_fg_buf[(i * width +j) * tc_size] = fg; in tem_internal_init()
250 ptem->tvs_bg_buf[(i * width +j) * tc_size] = bg; in tem_internal_init()
390 size_t width = 0; in tem_info_init() local
473 plat_tem_get_prom_size(&height, &width); in tem_info_init()
478 tems_setup_terminal(&temargs, height, width); in tem_info_init()
510 if (tems.ts_c_dimension.width != tp->width || in tems_check_videomode()
514 if (tems.ts_p_dimension.width != tp->width || in tems_check_videomode()
523 tems_setup_terminal(struct vis_devinit *tp, size_t height, size_t width) in tems_setup_terminal() argument
526 int old_blank_buf_size = tems.ts_c_dimension.width; in tems_setup_terminal()
536 tems.ts_p_dimension.width = 0; in tems_setup_terminal()
538 tems.ts_c_dimension.width = tp->width; in tems_setup_terminal()
549 if (width == 0) { in tems_setup_terminal()
550 width = TEM_DEFAULT_COLS; in tems_setup_terminal()
554 tems.ts_c_dimension.width = (screen_size_t)width; in tems_setup_terminal()
557 tems.ts_p_dimension.width = tp->width; in tems_setup_terminal()
570 &tems.ts_c_dimension.width, in tems_setup_terminal()
572 tems.ts_p_dimension.width); in tems_setup_terminal()
576 tems.ts_p_offset.x = (tems.ts_p_dimension.width - in tems_setup_terminal()
577 (tems.ts_c_dimension.width * tems.ts_font.width)) / 2; in tems_setup_terminal()
580 tems.ts_font.width * tems.ts_font.height; in tems_setup_terminal()
594 kmem_alloc(tems.ts_c_dimension.width, KM_SLEEP); in tems_setup_terminal()
595 for (i = 0; i < tems.ts_c_dimension.width; i++) in tems_setup_terminal()
653 tems.ts_c_dimension.width); in tems_modechange_callback()
764 *c = (ushort_t)tems.ts_c_dimension.width; in tem_get_size()
765 *x = (ushort_t)tems.ts_p_dimension.width; in tem_get_size()
791 int ncols, width; in tem_prom_scroll_up() local
799 ma.e_col = tems.ts_p_dimension.width - 1; in tem_prom_scroll_up()
805 width = tems.ts_font.width; in tem_prom_scroll_up()
806 ncols = (tems.ts_p_dimension.width + (width - 1))/ width; in tem_prom_scroll_up()