Lines Matching full:vc

26 			       struct vc_data *vc)  in update_attr()  argument
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr()
29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
46 static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, in bit_bmove() argument
51 area.sx = sx * vc->vc_font.width; in bit_bmove()
52 area.sy = sy * vc->vc_font.height; in bit_bmove()
53 area.dx = dx * vc->vc_font.width; in bit_bmove()
54 area.dy = dy * vc->vc_font.height; in bit_bmove()
55 area.height = height * vc->vc_font.height; in bit_bmove()
56 area.width = width * vc->vc_font.width; in bit_bmove()
61 static void bit_clear(struct vc_data *vc, struct fb_info *info, int sy, in bit_clear() argument
67 region.dx = sx * vc->vc_font.width; in bit_clear()
68 region.dy = sy * vc->vc_font.height; in bit_clear()
69 region.width = width * vc->vc_font.width; in bit_clear()
70 region.height = height * vc->vc_font.height; in bit_clear()
76 static inline void bit_putcs_aligned(struct vc_data *vc, struct fb_info *info, in bit_putcs_aligned() argument
81 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_aligned()
82 u32 idx = vc->vc_font.width >> 3; in bit_putcs_aligned()
86 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_aligned()
90 update_attr(buf, src, attr, vc); in bit_putcs_aligned()
107 static inline void bit_putcs_unaligned(struct vc_data *vc, in bit_putcs_unaligned() argument
114 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_unaligned()
115 u32 shift_low = 0, mod = vc->vc_font.width % 8; in bit_putcs_unaligned()
117 u32 idx = vc->vc_font.width >> 3; in bit_putcs_unaligned()
121 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_unaligned()
125 update_attr(buf, src, attr, vc); in bit_putcs_unaligned()
142 static void bit_putcs(struct vc_data *vc, struct fb_info *info, in bit_putcs() argument
147 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); in bit_putcs()
148 u32 cellsize = width * vc->vc_font.height; in bit_putcs()
152 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; in bit_putcs()
158 image.dx = xx * vc->vc_font.width; in bit_putcs()
159 image.dy = yy * vc->vc_font.height; in bit_putcs()
160 image.height = vc->vc_font.height; in bit_putcs()
180 image.width = vc->vc_font.width * cnt; in bit_putcs()
187 cnt = image.width / vc->vc_font.width; in bit_putcs()
190 image.width = cnt * vc->vc_font.width; in bit_putcs()
201 bit_putcs_aligned(vc, info, s, attribute, cnt, pitch, in bit_putcs()
204 bit_putcs_unaligned(vc, info, s, attribute, cnt, in bit_putcs()
208 image.dx += cnt * vc->vc_font.width; in bit_putcs()
221 static void bit_clear_margins(struct vc_data *vc, struct fb_info *info, in bit_clear_margins() argument
224 unsigned int cw = vc->vc_font.width; in bit_clear_margins()
225 unsigned int ch = vc->vc_font.height; in bit_clear_margins()
226 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in bit_clear_margins()
227 unsigned int bh = info->var.yres - (vc->vc_rows*ch); in bit_clear_margins()
252 static void bit_cursor(struct vc_data *vc, struct fb_info *info, bool enable, in bit_cursor() argument
257 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_cursor()
258 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; in bit_cursor()
259 int y = real_y(ops->p, vc->state.y); in bit_cursor()
260 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in bit_cursor()
266 if (!vc->vc_font.data) in bit_cursor()
269 c = scr_readw((u16 *) vc->vc_pos); in bit_cursor()
271 src = vc->vc_font.data + ((c & charmask) * (w * vc->vc_font.height)); in bit_cursor()
282 dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
287 update_attr(dst, src, attribute, vc); in bit_cursor()
299 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->state.x)) || in bit_cursor()
300 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || in bit_cursor()
302 ops->cursor_state.image.dx = vc->vc_font.width * vc->state.x; in bit_cursor()
303 ops->cursor_state.image.dy = vc->vc_font.height * y; in bit_cursor()
307 if (ops->cursor_state.image.height != vc->vc_font.height || in bit_cursor()
308 ops->cursor_state.image.width != vc->vc_font.width || in bit_cursor()
310 ops->cursor_state.image.height = vc->vc_font.height; in bit_cursor()
311 ops->cursor_state.image.width = vc->vc_font.width; in bit_cursor()
322 vc->vc_cursor_type != ops->p->cursor_shape || in bit_cursor()
325 char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
335 ops->p->cursor_shape = vc->vc_cursor_type; in bit_cursor()
343 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in bit_cursor()
346 cur_height = vc->vc_font.height/3; in bit_cursor()
349 cur_height = vc->vc_font.height >> 1; in bit_cursor()
352 cur_height = (vc->vc_font.height << 1)/3; in bit_cursor()
356 cur_height = vc->vc_font.height; in bit_cursor()
359 size = (vc->vc_font.height - cur_height) * w; in bit_cursor()