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
75 region.dy = vyres - ((sy + height) * vc->vc_font.height); in ud_clear()
76 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear()
77 region.width = width * vc->vc_font.width; in ud_clear()
78 region.height = height * vc->vc_font.height; in ud_clear()
84 static inline void ud_putcs_aligned(struct vc_data *vc, struct fb_info *info, in ud_putcs_aligned() argument
90 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_putcs_aligned()
91 u32 idx = vc->vc_font.width >> 3; in ud_putcs_aligned()
98 ud_update_attr(buf, src, attr, vc); in ud_putcs_aligned()
115 static inline void ud_putcs_unaligned(struct vc_data *vc, in ud_putcs_unaligned() argument
123 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_putcs_unaligned()
124 u32 shift_low = 0, mod = vc->vc_font.width % 8; in ud_putcs_unaligned()
126 u32 idx = vc->vc_font.width >> 3; in ud_putcs_unaligned()
133 ud_update_attr(buf, src, attr, vc); in ud_putcs_unaligned()
150 static void ud_putcs(struct vc_data *vc, struct fb_info *info, in ud_putcs() argument
156 u32 width = (vc->vc_font.width + 7)/8; in ud_putcs()
157 u32 cellsize = width * vc->vc_font.height; in ud_putcs()
161 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; in ud_putcs()
172 image.dy = vyres - ((yy * vc->vc_font.height) + vc->vc_font.height); in ud_putcs()
173 image.dx = vxres - ((xx + count) * vc->vc_font.width); in ud_putcs()
174 image.height = vc->vc_font.height; in ud_putcs()
191 image.width = vc->vc_font.width * cnt; in ud_putcs()
200 ud_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
203 ud_putcs_unaligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
221 static void ud_clear_margins(struct vc_data *vc, struct fb_info *info, in ud_clear_margins() argument
224 unsigned int cw = vc->vc_font.width; in ud_clear_margins()
225 unsigned int ch = vc->vc_font.height; in ud_clear_margins()
226 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in ud_clear_margins()
227 unsigned int bh = info->var.yres - (vc->vc_rows*ch); in ud_clear_margins()
250 static void ud_cursor(struct vc_data *vc, struct fb_info *info, bool enable, in ud_cursor() argument
255 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ud_cursor()
256 int w = (vc->vc_font.width + 7) >> 3, c; in ud_cursor()
257 int y = real_y(ops->p, vc->state.y); in ud_cursor()
258 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ud_cursor()
269 c = scr_readw((u16 *) vc->vc_pos); in ud_cursor()
271 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.height)); in ud_cursor()
282 dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in ud_cursor()
287 ud_update_attr(dst, src, attribute, vc); in ud_cursor()
299 if (ops->cursor_state.image.height != vc->vc_font.height || in ud_cursor()
300 ops->cursor_state.image.width != vc->vc_font.width || in ud_cursor()
302 ops->cursor_state.image.height = vc->vc_font.height; in ud_cursor()
303 ops->cursor_state.image.width = vc->vc_font.width; in ud_cursor()
307 dy = vyres - ((y * vc->vc_font.height) + vc->vc_font.height); in ud_cursor()
308 dx = vxres - ((vc->state.x * vc->vc_font.width) + vc->vc_font.width); in ud_cursor()
325 vc->vc_cursor_type != ops->p->cursor_shape || in ud_cursor()
328 char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in ud_cursor()
338 ops->p->cursor_shape = vc->vc_cursor_type; in ud_cursor()
346 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in ud_cursor()
349 cur_height = vc->vc_font.height/3; in ud_cursor()
352 cur_height = vc->vc_font.height >> 1; in ud_cursor()
355 cur_height = (vc->vc_font.height << 1)/3; in ud_cursor()
359 cur_height = vc->vc_font.height; in ud_cursor()
368 size = (vc->vc_font.height - cur_height) * w; in ud_cursor()