Lines Matching refs:conp

87 static void sticon_putc(struct vc_data *conp, int c, int ypos, int xpos)  in sticon_putc()  argument
94 if (conp->vc_mode != KD_TEXT) in sticon_putc()
109 static void sticon_putcs(struct vc_data *conp, const unsigned short *s, in sticon_putcs() argument
117 if (conp->vc_mode != KD_TEXT) in sticon_putcs()
136 static void sticon_cursor(struct vc_data *conp, int mode) in sticon_cursor() argument
140 car1 = conp->vc_screenbuf[conp->vc_x + conp->vc_y * conp->vc_cols]; in sticon_cursor()
143 sti_putc(sticon_sti, car1, conp->vc_y, conp->vc_x); in sticon_cursor()
147 switch (conp->vc_cursor_type & 0x0f) { in sticon_cursor()
154 conp->vc_y, conp->vc_x); in sticon_cursor()
161 static int sticon_scroll(struct vc_data *conp, int t, int b, int dir, int count) in sticon_scroll() argument
168 sticon_cursor(conp, CM_ERASE); in sticon_scroll()
172 sti_bmove(sti, t + count, 0, t, 0, b - t - count, conp->vc_cols); in sticon_scroll()
173 sti_clear(sti, b - count, 0, count, conp->vc_cols, conp->vc_video_erase_char); in sticon_scroll()
177 sti_bmove(sti, t, 0, t + count, 0, b - t - count, conp->vc_cols); in sticon_scroll()
178 sti_clear(sti, t, 0, count, conp->vc_cols, conp->vc_video_erase_char); in sticon_scroll()
185 static void sticon_bmove(struct vc_data *conp, int sy, int sx, in sticon_bmove() argument
226 static void sticon_clear(struct vc_data *conp, int sy, int sx, int height, in sticon_clear() argument
232 sti_clear(sticon_sti, sy, sx, height, width, conp->vc_video_erase_char); in sticon_clear()
235 static int sticon_switch(struct vc_data *conp) in sticon_switch() argument
240 static int sticon_set_origin(struct vc_data *conp) in sticon_set_origin() argument
259 static int sticon_scrolldelta(struct vc_data *conp, int lines) in sticon_scrolldelta() argument
264 static u16 *sticon_screen_pos(struct vc_data *conp, int offset) in sticon_screen_pos() argument
269 if (conp->vc_num != fg_console || !softback_lines) in sticon_screen_pos()
270 return (u16 *)(conp->vc_origin + offset); in sticon_screen_pos()
271 line = offset / conp->vc_size_row; in sticon_screen_pos()
273 return (u16 *)(conp->vc_origin + offset - softback_lines * conp->vc_size_row); in sticon_screen_pos()
280 static unsigned long sticon_getxy(struct vc_data *conp, unsigned long pos, in sticon_getxy() argument
285 if (pos >= conp->vc_origin && pos < conp->vc_scr_end) { in sticon_getxy()
286 unsigned long offset = (pos - conp->vc_origin) / 2; in sticon_getxy()
288 x = offset % conp->vc_cols; in sticon_getxy()
289 y = offset / conp->vc_cols; in sticon_getxy()
290 if (conp->vc_num == fg_console) in sticon_getxy()
292 ret = pos + (conp->vc_cols - x) * 2; in sticon_getxy()
293 } else if (conp->vc_num == fg_console && softback_lines) { in sticon_getxy()
299 x = offset % conp->vc_cols; in sticon_getxy()
300 y = offset / conp->vc_cols; in sticon_getxy()
301 ret = pos + (conp->vc_cols - x) * 2; in sticon_getxy()
305 ret = conp->vc_origin; in sticon_getxy()
309 ret = conp->vc_origin; in sticon_getxy()
316 static u8 sticon_build_attr(struct vc_data *conp, u8 color, u8 intens, in sticon_build_attr() argument
328 static void sticon_invert_region(struct vc_data *conp, u16 *p, int count) in sticon_invert_region() argument
344 static void sticon_save_screen(struct vc_data *conp) in sticon_save_screen() argument