Lines Matching refs:vc

26 				  struct vc_data *vc)  in ud_update_attr()  argument
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr()
29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
48 static void ud_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ud_bmove() argument
56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove()
57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove()
58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove()
59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove()
60 area.height = height * vc->vc_font.height; in ud_bmove()
61 area.width = width * vc->vc_font.width; in ud_bmove()
66 static void ud_clear(struct vc_data *vc, struct fb_info *info, int sy, in ud_clear() argument
71 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in ud_clear()
75 region.color = attr_bgcol_ec(bgshift,vc,info); in ud_clear()
76 region.dy = vyres - ((sy + height) * vc->vc_font.height); in ud_clear()
77 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear()
78 region.width = width * vc->vc_font.width; in ud_clear()
79 region.height = height * vc->vc_font.height; in ud_clear()
85 static inline void ud_putcs_aligned(struct vc_data *vc, struct fb_info *info, in ud_putcs_aligned() argument
91 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_putcs_aligned()
92 u32 idx = vc->vc_font.width >> 3; in ud_putcs_aligned()
99 ud_update_attr(buf, src, attr, vc); in ud_putcs_aligned()
116 static inline void ud_putcs_unaligned(struct vc_data *vc, in ud_putcs_unaligned() argument
124 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_putcs_unaligned()
125 u32 shift_low = 0, mod = vc->vc_font.width % 8; in ud_putcs_unaligned()
127 u32 idx = vc->vc_font.width >> 3; in ud_putcs_unaligned()
134 ud_update_attr(buf, src, attr, vc); in ud_putcs_unaligned()
151 static void ud_putcs(struct vc_data *vc, struct fb_info *info, in ud_putcs() argument
157 u32 width = (vc->vc_font.width + 7)/8; in ud_putcs()
158 u32 cellsize = width * vc->vc_font.height; in ud_putcs()
162 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; in ud_putcs()
173 image.dy = vyres - ((yy * vc->vc_font.height) + vc->vc_font.height); in ud_putcs()
174 image.dx = vxres - ((xx + count) * vc->vc_font.width); in ud_putcs()
175 image.height = vc->vc_font.height; in ud_putcs()
192 image.width = vc->vc_font.width * cnt; in ud_putcs()
201 ud_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
204 ud_putcs_unaligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
222 static void ud_clear_margins(struct vc_data *vc, struct fb_info *info, in ud_clear_margins() argument
225 unsigned int cw = vc->vc_font.width; in ud_clear_margins()
226 unsigned int ch = vc->vc_font.height; in ud_clear_margins()
227 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in ud_clear_margins()
228 unsigned int bh = info->var.yres - (vc->vc_rows*ch); in ud_clear_margins()
251 static void ud_cursor(struct vc_data *vc, struct fb_info *info, int mode, in ud_cursor() argument
256 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_cursor()
257 int w = (vc->vc_font.width + 7) >> 3, c; in ud_cursor()
258 int y = real_y(ops->p, vc->state.y); in ud_cursor()
259 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ud_cursor()
270 c = scr_readw((u16 *) vc->vc_pos); in ud_cursor()
272 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.height)); in ud_cursor()
283 dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in ud_cursor()
288 ud_update_attr(dst, src, attribute, vc); in ud_cursor()
300 if (ops->cursor_state.image.height != vc->vc_font.height || in ud_cursor()
301 ops->cursor_state.image.width != vc->vc_font.width || in ud_cursor()
303 ops->cursor_state.image.height = vc->vc_font.height; in ud_cursor()
304 ops->cursor_state.image.width = vc->vc_font.width; in ud_cursor()
308 dy = vyres - ((y * vc->vc_font.height) + vc->vc_font.height); in ud_cursor()
309 dx = vxres - ((vc->state.x * vc->vc_font.width) + vc->vc_font.width); in ud_cursor()
326 vc->vc_cursor_type != ops->p->cursor_shape || in ud_cursor()
329 char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in ud_cursor()
339 ops->p->cursor_shape = vc->vc_cursor_type; in ud_cursor()
347 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in ud_cursor()
350 cur_height = vc->vc_font.height/3; in ud_cursor()
353 cur_height = vc->vc_font.height >> 1; in ud_cursor()
356 cur_height = (vc->vc_font.height << 1)/3; in ud_cursor()
360 cur_height = vc->vc_font.height; in ud_cursor()
369 size = (vc->vc_font.height - cur_height) * w; in ud_cursor()