Lines Matching refs:col
247 int col; in vga_drawc() local
249 vga_getpos(&row, &col); in vga_drawc()
253 vga_setpos(row + 1, col); in vga_drawc()
263 VGA_SCREEN[row * VGA_TEXT_COLS + col] = (cons_color << 8) | c; in vga_drawc()
265 if (col < VGA_TEXT_COLS - 1) in vga_drawc()
266 vga_setpos(row, col + 1); in vga_drawc()
287 vga_setpos(int row, int col) in vga_setpos() argument
295 if (col < 0) in vga_setpos()
296 col = 0; in vga_setpos()
297 if (col >= fb_info.terminal.x) in vga_setpos()
298 col = fb_info.terminal.x - 1; in vga_setpos()
300 off = row * VGA_TEXT_COLS + col; in vga_setpos()
305 fb_info.cursor.pos.x = col; in vga_setpos()
309 vga_getpos(int *row, int *col) in vga_getpos() argument
315 *col = off % VGA_TEXT_COLS; in vga_getpos()