Lines Matching refs:ops
66 struct fbcon_ops *ops = info->fbcon_par; in ccw_bmove() local
68 u32 vyres = GETVYRES(ops->p, info); in ccw_bmove()
83 struct fbcon_ops *ops = info->fbcon_par; in ccw_clear() local
86 u32 vyres = GETVYRES(ops->p, info); in ccw_clear()
103 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs_aligned() local
109 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ccw_putcs_aligned()
134 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs() local
143 u32 vyres = GETVYRES(ops->p, info); in ccw_putcs()
145 if (!ops->fontbuffer) in ccw_putcs()
225 struct fbcon_ops *ops = info->fbcon_par; in ccw_cursor() local
228 int y = real_y(ops->p, vc->state.y); in ccw_cursor()
232 u32 vyres = GETVYRES(ops->p, info); in ccw_cursor()
234 if (!ops->fontbuffer) in ccw_cursor()
241 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); in ccw_cursor()
243 if (ops->cursor_state.image.data != src || in ccw_cursor()
244 ops->cursor_reset) { in ccw_cursor()
245 ops->cursor_state.image.data = src; in ccw_cursor()
255 kfree(ops->cursor_data); in ccw_cursor()
256 ops->cursor_data = dst; in ccw_cursor()
261 if (ops->cursor_state.image.fg_color != fg || in ccw_cursor()
262 ops->cursor_state.image.bg_color != bg || in ccw_cursor()
263 ops->cursor_reset) { in ccw_cursor()
264 ops->cursor_state.image.fg_color = fg; in ccw_cursor()
265 ops->cursor_state.image.bg_color = bg; in ccw_cursor()
269 if (ops->cursor_state.image.height != vc->vc_font.width || in ccw_cursor()
270 ops->cursor_state.image.width != vc->vc_font.height || in ccw_cursor()
271 ops->cursor_reset) { in ccw_cursor()
272 ops->cursor_state.image.height = vc->vc_font.width; in ccw_cursor()
273 ops->cursor_state.image.width = vc->vc_font.height; in ccw_cursor()
280 if (ops->cursor_state.image.dx != dx || in ccw_cursor()
281 ops->cursor_state.image.dy != dy || in ccw_cursor()
282 ops->cursor_reset) { in ccw_cursor()
283 ops->cursor_state.image.dx = dx; in ccw_cursor()
284 ops->cursor_state.image.dy = dy; in ccw_cursor()
288 if (ops->cursor_state.hot.x || ops->cursor_state.hot.y || in ccw_cursor()
289 ops->cursor_reset) { in ccw_cursor()
290 ops->cursor_state.hot.x = cursor.hot.y = 0; in ccw_cursor()
295 vc->vc_cursor_type != ops->p->cursor_shape || in ccw_cursor()
296 ops->cursor_state.mask == NULL || in ccw_cursor()
297 ops->cursor_reset) { in ccw_cursor()
313 kfree(ops->cursor_state.mask); in ccw_cursor()
314 ops->cursor_state.mask = mask; in ccw_cursor()
316 ops->p->cursor_shape = vc->vc_cursor_type; in ccw_cursor()
319 switch (CUR_SIZE(ops->p->cursor_shape)) { in ccw_cursor()
354 ops->cursor_state.enable = 0; in ccw_cursor()
359 ops->cursor_state.enable = (use_sw) ? 0 : 1; in ccw_cursor()
364 cursor.image.fg_color = ops->cursor_state.image.fg_color; in ccw_cursor()
365 cursor.image.bg_color = ops->cursor_state.image.bg_color; in ccw_cursor()
366 cursor.image.dx = ops->cursor_state.image.dx; in ccw_cursor()
367 cursor.image.dy = ops->cursor_state.image.dy; in ccw_cursor()
368 cursor.image.height = ops->cursor_state.image.height; in ccw_cursor()
369 cursor.image.width = ops->cursor_state.image.width; in ccw_cursor()
370 cursor.hot.x = ops->cursor_state.hot.x; in ccw_cursor()
371 cursor.hot.y = ops->cursor_state.hot.y; in ccw_cursor()
372 cursor.mask = ops->cursor_state.mask; in ccw_cursor()
373 cursor.enable = ops->cursor_state.enable; in ccw_cursor()
383 ops->cursor_reset = 0; in ccw_cursor()
388 struct fbcon_ops *ops = info->fbcon_par; in ccw_update_start() local
390 u32 vyres = GETVYRES(ops->p, info); in ccw_update_start()
393 yoffset = (vyres - info->var.yres) - ops->var.xoffset; in ccw_update_start()
394 ops->var.xoffset = ops->var.yoffset; in ccw_update_start()
395 ops->var.yoffset = yoffset; in ccw_update_start()
396 err = fb_pan_display(info, &ops->var); in ccw_update_start()
397 ops->var.xoffset = info->var.xoffset; in ccw_update_start()
398 ops->var.yoffset = info->var.yoffset; in ccw_update_start()
399 ops->var.vmode = info->var.vmode; in ccw_update_start()
403 void fbcon_rotate_ccw(struct fbcon_ops *ops) in fbcon_rotate_ccw() argument
405 ops->bmove = ccw_bmove; in fbcon_rotate_ccw()
406 ops->clear = ccw_clear; in fbcon_rotate_ccw()
407 ops->putcs = ccw_putcs; in fbcon_rotate_ccw()
408 ops->clear_margins = ccw_clear_margins; in fbcon_rotate_ccw()
409 ops->cursor = ccw_cursor; in fbcon_rotate_ccw()
410 ops->update_start = ccw_update_start; in fbcon_rotate_ccw()