Lines Matching refs:vc

26 				  struct vc_data *vc)  in ccw_update_attr()  argument
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr()
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr()
63 static void ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ccw_bmove() argument
70 area.sx = sy * vc->vc_font.height; in ccw_bmove()
71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove()
72 area.dx = dy * vc->vc_font.height; in ccw_bmove()
73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove()
74 area.width = height * vc->vc_font.height; in ccw_bmove()
75 area.height = width * vc->vc_font.width; in ccw_bmove()
80 static void ccw_clear(struct vc_data *vc, struct fb_info *info, int sy, in ccw_clear() argument
88 region.dx = sy * vc->vc_font.height; in ccw_clear()
89 region.dy = vyres - ((sx + width) * vc->vc_font.width); in ccw_clear()
90 region.height = width * vc->vc_font.width; in ccw_clear()
91 region.width = height * vc->vc_font.height; in ccw_clear()
97 static inline void ccw_putcs_aligned(struct vc_data *vc, struct fb_info *info, in ccw_putcs_aligned() argument
103 u16 charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ccw_putcs_aligned()
104 u32 idx = (vc->vc_font.height + 7) >> 3; in ccw_putcs_aligned()
111 ccw_update_attr(buf, src, attr, vc); in ccw_putcs_aligned()
117 vc->vc_font.width); in ccw_putcs_aligned()
120 vc->vc_font.width); in ccw_putcs_aligned()
122 dst += d_pitch * vc->vc_font.width; in ccw_putcs_aligned()
128 static void ccw_putcs(struct vc_data *vc, struct fb_info *info, in ccw_putcs() argument
134 u32 width = (vc->vc_font.height + 7)/8; in ccw_putcs()
135 u32 cellsize = width * vc->vc_font.width; in ccw_putcs()
149 image.dx = yy * vc->vc_font.height; in ccw_putcs()
150 image.dy = vyres - ((xx + count) * vc->vc_font.width); in ccw_putcs()
151 image.width = vc->vc_font.height; in ccw_putcs()
168 image.height = vc->vc_font.width * cnt; in ccw_putcs()
175 ccw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ccw_putcs()
190 static void ccw_clear_margins(struct vc_data *vc, struct fb_info *info, in ccw_clear_margins() argument
193 unsigned int cw = vc->vc_font.width; in ccw_clear_margins()
194 unsigned int ch = vc->vc_font.height; in ccw_clear_margins()
195 unsigned int rw = info->var.yres - (vc->vc_cols*cw); in ccw_clear_margins()
196 unsigned int bh = info->var.xres - (vc->vc_rows*ch); in ccw_clear_margins()
197 unsigned int bs = vc->vc_rows*ch; in ccw_clear_margins()
220 static void ccw_cursor(struct vc_data *vc, struct fb_info *info, bool enable, in ccw_cursor() argument
225 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in ccw_cursor()
226 int w = (vc->vc_font.height + 7) >> 3, c; in ccw_cursor()
227 int y = real_y(ops->p, vc->state.y); in ccw_cursor()
228 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ccw_cursor()
238 c = scr_readw((u16 *) vc->vc_pos); in ccw_cursor()
240 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); in ccw_cursor()
251 dst = kmalloc_array(w, vc->vc_font.width, GFP_ATOMIC); in ccw_cursor()
256 ccw_update_attr(dst, src, attribute, vc); in ccw_cursor()
268 if (ops->cursor_state.image.height != vc->vc_font.width || in ccw_cursor()
269 ops->cursor_state.image.width != vc->vc_font.height || in ccw_cursor()
271 ops->cursor_state.image.height = vc->vc_font.width; in ccw_cursor()
272 ops->cursor_state.image.width = vc->vc_font.height; in ccw_cursor()
276 dx = y * vc->vc_font.height; in ccw_cursor()
277 dy = vyres - ((vc->state.x + 1) * vc->vc_font.width); in ccw_cursor()
294 vc->vc_cursor_type != ops->p->cursor_shape || in ccw_cursor()
297 char *tmp, *mask = kmalloc_array(w, vc->vc_font.width, in ccw_cursor()
300 int width = (vc->vc_font.width + 7)/8; in ccw_cursor()
305 tmp = kmalloc_array(width, vc->vc_font.height, GFP_ATOMIC); in ccw_cursor()
315 ops->p->cursor_shape = vc->vc_cursor_type; in ccw_cursor()
323 cur_height = (vc->vc_font.height < 10) ? 1 : 2; in ccw_cursor()
326 cur_height = vc->vc_font.height/3; in ccw_cursor()
329 cur_height = vc->vc_font.height >> 1; in ccw_cursor()
332 cur_height = (vc->vc_font.height << 1)/3; in ccw_cursor()
336 cur_height = vc->vc_font.height; in ccw_cursor()
340 size = (vc->vc_font.height - cur_height) * width; in ccw_cursor()
346 memset(mask, 0, w * vc->vc_font.width); in ccw_cursor()
347 rotate_ccw(tmp, mask, vc->vc_font.width, vc->vc_font.height); in ccw_cursor()