Lines Matching refs:vc

26 				  struct vc_data *vc)  in ccw_update_attr()  argument
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr()
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr()
63 static void ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ccw_bmove() argument
70 area.sx = sy * vc->vc_font.height; in ccw_bmove()
71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove()
72 area.dx = dy * vc->vc_font.height; in ccw_bmove()
73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove()
74 area.width = height * vc->vc_font.height; in ccw_bmove()
75 area.height = width * vc->vc_font.width; in ccw_bmove()
80 static void ccw_clear(struct vc_data *vc, struct fb_info *info, int sy, in ccw_clear() argument
85 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in ccw_clear()
88 region.color = attr_bgcol_ec(bgshift,vc,info); in ccw_clear()
89 region.dx = sy * vc->vc_font.height; in ccw_clear()
90 region.dy = vyres - ((sx + width) * vc->vc_font.width); in ccw_clear()
91 region.height = width * vc->vc_font.width; in ccw_clear()
92 region.width = height * vc->vc_font.height; in ccw_clear()
98 static inline void ccw_putcs_aligned(struct vc_data *vc, struct fb_info *info, in ccw_putcs_aligned() argument
104 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ccw_putcs_aligned()
105 u32 idx = (vc->vc_font.height + 7) >> 3; in ccw_putcs_aligned()
112 ccw_update_attr(buf, src, attr, vc); in ccw_putcs_aligned()
118 vc->vc_font.width); in ccw_putcs_aligned()
121 vc->vc_font.width); in ccw_putcs_aligned()
123 dst += d_pitch * vc->vc_font.width; in ccw_putcs_aligned()
129 static void ccw_putcs(struct vc_data *vc, struct fb_info *info, in ccw_putcs() argument
135 u32 width = (vc->vc_font.height + 7)/8; in ccw_putcs()
136 u32 cellsize = width * vc->vc_font.width; in ccw_putcs()
150 image.dx = yy * vc->vc_font.height; in ccw_putcs()
151 image.dy = vyres - ((xx + count) * vc->vc_font.width); in ccw_putcs()
152 image.width = vc->vc_font.height; in ccw_putcs()
169 image.height = vc->vc_font.width * cnt; in ccw_putcs()
176 ccw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ccw_putcs()
191 static void ccw_clear_margins(struct vc_data *vc, struct fb_info *info, in ccw_clear_margins() argument
194 unsigned int cw = vc->vc_font.width; in ccw_clear_margins()
195 unsigned int ch = vc->vc_font.height; in ccw_clear_margins()
196 unsigned int rw = info->var.yres - (vc->vc_cols*cw); in ccw_clear_margins()
197 unsigned int bh = info->var.xres - (vc->vc_rows*ch); in ccw_clear_margins()
198 unsigned int bs = vc->vc_rows*ch; in ccw_clear_margins()
221 static void ccw_cursor(struct vc_data *vc, struct fb_info *info, int mode, in ccw_cursor() argument
226 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ccw_cursor()
227 int w = (vc->vc_font.height + 7) >> 3, c; in ccw_cursor()
228 int y = real_y(ops->p, vc->vc_y); in ccw_cursor()
229 int attribute, use_sw = (vc->vc_cursor_type & 0x10); in ccw_cursor()
240 if (y + softback_lines >= vc->vc_rows) { in ccw_cursor()
248 c = scr_readw((u16 *) vc->vc_pos); in ccw_cursor()
250 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); in ccw_cursor()
261 dst = kmalloc(w * vc->vc_font.width, GFP_ATOMIC); in ccw_cursor()
266 ccw_update_attr(dst, src, attribute, vc); in ccw_cursor()
278 if (ops->cursor_state.image.height != vc->vc_font.width || in ccw_cursor()
279 ops->cursor_state.image.width != vc->vc_font.height || in ccw_cursor()
281 ops->cursor_state.image.height = vc->vc_font.width; in ccw_cursor()
282 ops->cursor_state.image.width = vc->vc_font.height; in ccw_cursor()
286 dx = y * vc->vc_font.height; in ccw_cursor()
287 dy = vyres - ((vc->vc_x + 1) * vc->vc_font.width); in ccw_cursor()
304 vc->vc_cursor_type != ops->p->cursor_shape || in ccw_cursor()
307 char *tmp, *mask = kmalloc(w*vc->vc_font.width, GFP_ATOMIC); in ccw_cursor()
309 int width = (vc->vc_font.width + 7)/8; in ccw_cursor()
314 tmp = kmalloc(width * vc->vc_font.height, GFP_ATOMIC); in ccw_cursor()
324 ops->p->cursor_shape = vc->vc_cursor_type; in ccw_cursor()
332 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in ccw_cursor()
335 cur_height = vc->vc_font.height/3; in ccw_cursor()
338 cur_height = vc->vc_font.height >> 1; in ccw_cursor()
341 cur_height = (vc->vc_font.height << 1)/3; in ccw_cursor()
345 cur_height = vc->vc_font.height; in ccw_cursor()
349 size = (vc->vc_font.height - cur_height) * width; in ccw_cursor()
355 memset(mask, 0, w * vc->vc_font.width); in ccw_cursor()
356 rotate_ccw(tmp, mask, vc->vc_font.width, vc->vc_font.height); in ccw_cursor()