Lines Matching refs:vinfo

125 struct vc_info vinfo;
307 end = vinfo.v_columns-1;
315 end = vinfo.v_columns-1;
423 buffer_columns = vinfo.v_columns;
424 buffer_rows = vinfo.v_rows;
474 gc_ops.clear_screen(gc_x, gc_y, 0, vinfo.v_rows, 2);
577 if (gc_x >= vinfo.v_columns) {
578 if (0 == vinfo.v_columns)
581 gc_x = vinfo.v_columns - 1;
583 if (gc_y >= vinfo.v_rows) {
584 if (0 == vinfo.v_rows)
587 gc_y = vinfo.v_rows - 1;
646 for (yy = 0; yy < vinfo.v_rows; yy++)
647 for (xx = 0; xx < vinfo.v_columns; xx++)
666 gc_clear_screen(gc_x, gc_y, 0, vinfo.v_rows, 2);
780 if (gc_x >= vinfo.v_columns)
781 gc_x = vinfo.v_columns-1;
806 gc_clear_screen(gc_x, gc_y, 0, vinfo.v_rows, gc_par[0]);
819 for (i = 0; i <= vinfo.v_columns; i++)
869 if ((gc_numpars > 0) && (gc_par[0] < vinfo.v_rows)) {
874 if ((gc_numpars > 1) && (gc_par[1] <= vinfo.v_rows) && (gc_par[1] > gc_par[0])) {
876 if (gc_scrreg_bottom > vinfo.v_rows)
877 gc_scrreg_bottom = vinfo.v_rows;
879 gc_scrreg_bottom = vinfo.v_rows;
904 if (gc_buffer_tab_stops) while (gc_x < vinfo.v_columns && !gc_is_tab_stop(++gc_x));
906 if (gc_x >= vinfo.v_columns)
907 gc_x = vinfo.v_columns-1;
951 if (gc_x == vinfo.v_columns - 1) {
992 for (i = 0; i < vinfo.v_columns; i++) {
1001 if (gc_buffer_tab_stops && (column < vinfo.v_columns)) {
1010 if (column < vinfo.v_columns)
1021 gc_scrreg_bottom = vinfo.v_rows;
1136 gc_clear_screen(vinfo.v_columns - 1, top + num - 1, top, bottom, 1);
1384 if(!vinfo.v_depth)
1387 linelongs = vinfo.v_rowbytes * (ISO_CHAR_HEIGHT >> 2);
1388 rowline = vinfo.v_rowscanbytes >> 2;
1389 rowlongs = vinfo.v_rowbytes >> 2;
1391 p = (uint32_t*) vinfo.v_baseaddr;
1392 endp = (uint32_t*) vinfo.v_baseaddr;
1411 if (scrreg_bottom == vinfo.v_rows) {
1412 endp += rowlongs * vinfo.v_height;
1475 where = (uint32_t*)(vinfo.v_baseaddr +
1476 (yy * ISO_CHAR_HEIGHT * vinfo.v_rowbytes) +
1488 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1512 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1532 where = (uint32_t*)(vinfo.v_baseaddr +
1533 (yy * ISO_CHAR_HEIGHT * vinfo.v_rowbytes) +
1545 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1565 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1593 where = (uint32_t*)(vinfo.v_baseaddr +
1594 (yy * ISO_CHAR_HEIGHT * vinfo.v_rowbytes) +
1610 where = (uint32_t *)(((unsigned char*)where)+vinfo.v_rowbytes);
1628 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1637 if(!vinfo.v_depth)
1640 switch(vinfo.v_depth) {
1723 vc_render_font(enable ? vinfo.v_depth : 0);
1732 if(!vinfo.v_depth)
1735 where = (uint32_t*)(vinfo.v_baseaddr +
1736 (yy * ISO_CHAR_HEIGHT * vinfo.v_rowbytes) +
1737 (xx /** ISO_CHAR_WIDTH*/ * vinfo.v_depth));
1739 switch (vinfo.v_depth) {
1753 where = (uint32_t*)(((unsigned char*)where)+vinfo.v_rowbytes);
1762 if(!vinfo.v_depth)
1765 linelongs = vinfo.v_rowbytes * (ISO_CHAR_HEIGHT >> 2);
1766 rowline = vinfo.v_rowbytes >> 2;
1767 rowscanline = vinfo.v_rowscanbytes >> 2;
1769 to = (uint32_t *) vinfo.v_baseaddr + (linelongs * scrreg_bottom)
1781 (from-(vinfo.v_rowscanbytes >> 2)),
1795 if(!vinfo.v_depth)
1798 linelongs = vinfo.v_rowbytes * (ISO_CHAR_HEIGHT >> 2);
1799 rowline = vinfo.v_rowbytes >> 2;
1800 rowscanline = vinfo.v_rowscanbytes >> 2;
1802 to = (uint32_t *) vinfo.v_baseaddr + (scrreg_top * linelongs);
1813 (from+(vinfo.v_rowscanbytes >> 2)),
1825 if (!vinfo.v_depth)
1828 vc_color_fore = vc_colors[color][vc_color_index_table[vinfo.v_depth]];
1830 vc_color_back = vc_colors[color][vc_color_index_table[vinfo.v_depth]];
1908 if(!vinfo.v_depth)
1911 switch( vinfo.v_depth) {
1952 dst = (volatile unsigned short *) (vinfo.v_baseaddr +
1953 (y * vinfo.v_rowbytes) +
1968 dst = (volatile unsigned short *) (((volatile char*)dst) + vinfo.v_rowbytes);
2012 dst = (volatile unsigned short *) (vinfo.v_baseaddr +
2013 (y * vinfo.v_rowbytes) +
2046 dst = (volatile unsigned short *) (((volatile char*)dst) + vinfo.v_rowbytes);
2078 dst = (volatile unsigned int *) (vinfo.v_baseaddr +
2079 (y * vinfo.v_rowbytes) +
2111 dst = (volatile unsigned int *) (((volatile char*)dst) + vinfo.v_rowbytes);
2143 dst = (volatile unsigned int *) (vinfo.v_baseaddr +
2144 (y * vinfo.v_rowbytes) +
2179 dst = (volatile unsigned int *) (((volatile char*)dst) + vinfo.v_rowbytes);
2266 uint32_t bytes_per_row = vinfo.v_rowbytes;
2268 image_start = (uint32_t *) (vinfo.v_baseaddr + (dst_y * bytes_per_row) + (dst_x * bytes_per_pixel));
2341 x += ((vinfo.v_width - width) / 2);
2342 y += ((vinfo.v_height - height) / 2);
2396 saveLen = (vc_progress->width << vc_uiselect) * (vc_progress->height << vc_uiselect) * vinfo.v_depth / 8;
2399 switch( vinfo.v_depth) {
2500 x += ((vinfo.v_width - width) / 2);
2501 y += ((vinfo.v_height - height) / 2);
2563 vinfo.v_rows = vinfo.v_height / ISO_CHAR_HEIGHT;
2564 vinfo.v_columns = vinfo.v_width / ISO_CHAR_WIDTH;
2565 vinfo.v_rowscanbytes = ((vinfo.v_depth + 7) / 8) * vinfo.v_width;
2566 vc_uiselect = (2 == vinfo.v_scale) ? 1 : 0;
2579 struct vc_info new_vinfo = vinfo;
2663 /* Update the vinfo structure atomically with respect to the vc_progress task if running */
2667 vinfo = new_vinfo;
2672 vinfo = new_vinfo;
2711 gc_initialize(&vinfo);
2803 if(!vinfo.v_depth)
2806 if ( vinfo.v_depth == 32 )
2808 else if ( vinfo.v_depth == 30 )
2810 else if ( vinfo.v_depth == 16 )
2815 rowline = (int)(vinfo.v_rowscanbytes / 4);
2816 rowlongs = (int)(vinfo.v_rowbytes / 4);
2818 p = (unsigned int*) vinfo.v_baseaddr;
2819 endp = p + (rowlongs * vinfo.v_height);
2836 printf("%svideo console at 0x%lx (%ldx%ldx%ld)\n", (vinfo.v_depth >= 8) ? "\033[31mC\033[32mO\033[33mL\033[34mO\033[35mR\033[0m " : "",
2837 vinfo.v_baseaddr, vinfo.v_width, vinfo.v_height, vinfo.v_depth);
2838 kprintf("%svideo console at 0x%lx (%ldx%ldx%ld)\n", (vinfo.v_depth >= 8) ? "\033[31mC\033[32mO\033[33mL\033[34mO\033[35mR\033[0m " : "",
2839 vinfo.v_baseaddr, vinfo.v_width, vinfo.v_height, vinfo.v_depth);
2886 ox = ((vinfo.v_width - (kProgressBarWidth << vc_uiselect)) / 2);
2887 oy = vinfo.v_height - (((vinfo.v_height / 2) - ((vc_progress->dy + kProgressBarHeight) << vc_uiselect)) / 2);