Lines Matching refs:x
85 void place(int x,int y) { in place() argument
86 unsigned short cursor_word = x + y*80 + active_page*VPAGE_SIZE; in place()
96 curr_x = x; in place()
161 register int x,y; in _scroll() local
166 for (x = x1; x <= x2; x++) { in _scroll()
167 w = *((unsigned short *) (v + 2*(y*80+x))); in _scroll()
168 *((unsigned short *)(v + 2*((y-1)*80+x))) = w; in _scroll()
172 for (x = x1; x <= x2; x++) { in _scroll()
173 *((unsigned short *)(v + 2*((y-1)*80+x))) = xattr; in _scroll()
183 static unsigned short scan_x, x, y; in cputc() local
185 x = curr_x; in cputc()
190 x += 8; in cputc()
191 if (x >= view_window.x2+1) { in cputc()
192 x = view_window.x1; in cputc()
201 while ((scan_x+8) < x) { in cputc()
205 x = scan_x; in cputc()
210 x = view_window.x1; in cputc()
222 x--; in cputc()
223 *(v + 2*(x + y*80)) = ' '; in cputc()
227 *(v + 2*(x + y*80)) = c; in cputc()
228 x++; in cputc()
230 if (x >= view_window.x2+1) { in cputc()
231 x = view_window.x1; in cputc()
240 place(x, y); in cputc()
251 void puts_xy(int x,int y,char attr,char *s) { in puts_xy() argument
252 unsigned char *v = (unsigned char *)(uintptr_t)(FB + (80*y+x)*2 + active_page*(2*VPAGE_SIZE)); in puts_xy()
262 void putc_xy(int x, int y, char attr, char c) { in putc_xy() argument
263 unsigned char *v = (unsigned char *)(uintptr_t)(FB + (80*y+x)*2 + active_page*(2*VPAGE_SIZE)); in putc_xy()
269 int printf_xy(int x, int y, char attr, char *fmt, ...) { in printf_xy() argument
278 puts_xy(x, y, attr, cbuf); in printf_xy()