Lines Matching refs:ops
24 struct fbcon_ops *ops = info->fbcon_par; in fbcon_rotate_font() local
30 if (vc->vc_font.data == ops->fontdata && in fbcon_rotate_font()
31 ops->p->con_rotate == ops->cur_rotate) in fbcon_rotate_font()
34 src = ops->fontdata = vc->vc_font.data; in fbcon_rotate_font()
35 ops->cur_rotate = ops->p->con_rotate; in fbcon_rotate_font()
36 len = (!ops->p->userfont) ? 256 : FNTCHARCNT(src); in fbcon_rotate_font()
41 if (ops->rotate == FB_ROTATE_CW || in fbcon_rotate_font()
42 ops->rotate == FB_ROTATE_CCW) in fbcon_rotate_font()
49 if (ops->fd_size < d_cellsize * len) { in fbcon_rotate_font()
57 ops->fd_size = d_cellsize * len; in fbcon_rotate_font()
58 kfree(ops->fontbuffer); in fbcon_rotate_font()
59 ops->fontbuffer = dst; in fbcon_rotate_font()
62 dst = ops->fontbuffer; in fbcon_rotate_font()
63 memset(dst, 0, ops->fd_size); in fbcon_rotate_font()
65 switch (ops->rotate) { in fbcon_rotate_font()
97 void fbcon_set_rotate(struct fbcon_ops *ops) in fbcon_set_rotate() argument
99 ops->rotate_font = fbcon_rotate_font; in fbcon_set_rotate()
101 switch(ops->rotate) { in fbcon_set_rotate()
103 fbcon_rotate_cw(ops); in fbcon_set_rotate()
106 fbcon_rotate_ud(ops); in fbcon_set_rotate()
109 fbcon_rotate_ccw(ops); in fbcon_set_rotate()