• Home
  • Raw
  • Download

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_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
64 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in bit_clear()
67 region.color = attr_bgcol_ec(bgshift, vc, info); in bit_clear()
68 region.dx = sx * vc->vc_font.width; in bit_clear()
69 region.dy = sy * vc->vc_font.height; in bit_clear()
70 region.width = width * vc->vc_font.width; in bit_clear()
71 region.height = height * vc->vc_font.height; in bit_clear()
77 static inline void bit_putcs_aligned(struct vc_data *vc, struct fb_info *info, in bit_putcs_aligned() argument
82 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_aligned()
83 u32 idx = vc->vc_font.width >> 3; in bit_putcs_aligned()
87 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_aligned()
91 update_attr(buf, src, attr, vc); in bit_putcs_aligned()
108 static inline void bit_putcs_unaligned(struct vc_data *vc, in bit_putcs_unaligned() argument
115 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_putcs_unaligned()
116 u32 shift_low = 0, mod = vc->vc_font.width % 8; in bit_putcs_unaligned()
118 u32 idx = vc->vc_font.width >> 3; in bit_putcs_unaligned()
122 src = vc->vc_font.data + (scr_readw(s++)& in bit_putcs_unaligned()
126 update_attr(buf, src, attr, vc); in bit_putcs_unaligned()
143 static void bit_putcs(struct vc_data *vc, struct fb_info *info, in bit_putcs() argument
148 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); in bit_putcs()
149 u32 cellsize = width * vc->vc_font.height; in bit_putcs()
153 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; in bit_putcs()
159 image.dx = xx * vc->vc_font.width; in bit_putcs()
160 image.dy = yy * vc->vc_font.height; in bit_putcs()
161 image.height = vc->vc_font.height; in bit_putcs()
176 image.width = vc->vc_font.width * cnt; in bit_putcs()
185 bit_putcs_aligned(vc, info, s, attribute, cnt, pitch, in bit_putcs()
188 bit_putcs_unaligned(vc, info, s, attribute, cnt, in bit_putcs()
192 image.dx += cnt * vc->vc_font.width; in bit_putcs()
205 static void bit_clear_margins(struct vc_data *vc, struct fb_info *info, in bit_clear_margins() argument
208 unsigned int cw = vc->vc_font.width; in bit_clear_margins()
209 unsigned int ch = vc->vc_font.height; in bit_clear_margins()
210 unsigned int rw = info->var.xres - (vc->vc_cols*cw); in bit_clear_margins()
211 unsigned int bh = info->var.yres - (vc->vc_rows*ch); in bit_clear_margins()
236 static void bit_cursor(struct vc_data *vc, struct fb_info *info, int mode, in bit_cursor() argument
241 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in bit_cursor()
242 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; in bit_cursor()
243 int y = real_y(ops->p, vc->state.y); in bit_cursor()
244 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in bit_cursor()
250 if (!vc->vc_font.data) in bit_cursor()
253 c = scr_readw((u16 *) vc->vc_pos); in bit_cursor()
255 src = vc->vc_font.data + ((c & charmask) * (w * vc->vc_font.height)); in bit_cursor()
266 dst = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
271 update_attr(dst, src, attribute, vc); in bit_cursor()
283 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->state.x)) || in bit_cursor()
284 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || in bit_cursor()
286 ops->cursor_state.image.dx = vc->vc_font.width * vc->state.x; in bit_cursor()
287 ops->cursor_state.image.dy = vc->vc_font.height * y; in bit_cursor()
291 if (ops->cursor_state.image.height != vc->vc_font.height || in bit_cursor()
292 ops->cursor_state.image.width != vc->vc_font.width || in bit_cursor()
294 ops->cursor_state.image.height = vc->vc_font.height; in bit_cursor()
295 ops->cursor_state.image.width = vc->vc_font.width; in bit_cursor()
306 vc->vc_cursor_type != ops->p->cursor_shape || in bit_cursor()
309 char *mask = kmalloc_array(w, vc->vc_font.height, GFP_ATOMIC); in bit_cursor()
319 ops->p->cursor_shape = vc->vc_cursor_type; in bit_cursor()
327 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in bit_cursor()
330 cur_height = vc->vc_font.height/3; in bit_cursor()
333 cur_height = vc->vc_font.height >> 1; in bit_cursor()
336 cur_height = (vc->vc_font.height << 1)/3; in bit_cursor()
340 cur_height = vc->vc_font.height; in bit_cursor()
343 size = (vc->vc_font.height - cur_height) * w; in bit_cursor()