Lines Matching refs: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_clear(struct vc_data *vc, struct fb_info *info, int sy, in bit_clear() argument
49 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in bit_clear()
52 region.color = attr_bgcol_ec(bgshift, vc, info); in bit_clear()
53 region.dx = sx * vc->vc_font.width; in bit_clear()
54 region.dy = sy * vc->vc_font.height; in bit_clear()
55 region.width = width * vc->vc_font.width; in bit_clear()
56 region.height = height * vc->vc_font.height; in bit_clear()
62 static inline void bit_putcs_aligned(struct vc_data *vc, struct fb_info *info, in bit_putcs_aligned() argument
67 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_aligned()
68 u32 idx = vc->vc_font.width >> 3; in bit_putcs_aligned()
72 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_aligned()
76 update_attr(buf, src, attr, vc); in bit_putcs_aligned()
93 static inline void bit_putcs_unaligned(struct vc_data *vc, in bit_putcs_unaligned() argument
100 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_unaligned()
101 u32 shift_low = 0, mod = vc->vc_font.width % 8; in bit_putcs_unaligned()
103 u32 idx = vc->vc_font.width >> 3; in bit_putcs_unaligned()
107 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_unaligned()
111 update_attr(buf, src, attr, vc); in bit_putcs_unaligned()
128 static void bit_putcs(struct vc_data *vc, struct fb_info *info, in bit_putcs() argument
133 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); in bit_putcs()
134 u32 cellsize = width * vc->vc_font.height; in bit_putcs()
138 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; in bit_putcs()
144 image.dx = xx * vc->vc_font.width; in bit_putcs()
145 image.dy = yy * vc->vc_font.height; in bit_putcs()
146 image.height = vc->vc_font.height; in bit_putcs()
161 image.width = vc->vc_font.width * cnt; in bit_putcs()
170 bit_putcs_aligned(vc, info, s, attribute, cnt, pitch, in bit_putcs()
173 bit_putcs_unaligned(vc, info, s, attribute, cnt, in bit_putcs()
177 image.dx += cnt * vc->vc_font.width; in bit_putcs()
190 static void bit_clear_margins(struct vc_data *vc, struct fb_info *info, in bit_clear_margins() argument
193 unsigned int cw = vc->vc_font.width; in bit_clear_margins()
194 unsigned int ch = vc->vc_font.height; in bit_clear_margins()
195 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in bit_clear_margins()
196 unsigned int bh = info->var.yres - (vc->vc_rows*ch); in bit_clear_margins()
221 static void bit_cursor(struct vc_data *vc, struct fb_info *info, int mode, in bit_cursor() argument
226 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_cursor()
227 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; in bit_cursor()
228 int y = real_y(ops->p, vc->state.y); in bit_cursor()
229 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in bit_cursor()
235 c = scr_readw((u16 *) vc->vc_pos); in bit_cursor()
237 src = vc->vc_font.data + ((c & charmask) * (w * vc->vc_font.height)); in bit_cursor()
248 dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
253 update_attr(dst, src, attribute, vc); in bit_cursor()
265 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->state.x)) || in bit_cursor()
266 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || in bit_cursor()
268 ops->cursor_state.image.dx = vc->vc_font.width * vc->state.x; in bit_cursor()
269 ops->cursor_state.image.dy = vc->vc_font.height * y; in bit_cursor()
273 if (ops->cursor_state.image.height != vc->vc_font.height || in bit_cursor()
274 ops->cursor_state.image.width != vc->vc_font.width || in bit_cursor()
276 ops->cursor_state.image.height = vc->vc_font.height; in bit_cursor()
277 ops->cursor_state.image.width = vc->vc_font.width; in bit_cursor()
288 vc->vc_cursor_type != ops->p->cursor_shape || in bit_cursor()
291 char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
301 ops->p->cursor_shape = vc->vc_cursor_type; in bit_cursor()
309 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in bit_cursor()
312 cur_height = vc->vc_font.height/3; in bit_cursor()
315 cur_height = vc->vc_font.height >> 1; in bit_cursor()
318 cur_height = (vc->vc_font.height << 1)/3; in bit_cursor()
322 cur_height = vc->vc_font.height; in bit_cursor()
325 size = (vc->vc_font.height - cur_height) * w; in bit_cursor()