Lines Matching refs:ops
51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove() local
53 u32 vxres = GETVXRES(ops->p, info); in cw_bmove()
68 struct fbcon_ops *ops = info->fbcon_par; in cw_clear() local
70 u32 vxres = GETVXRES(ops->p, info); in cw_clear()
87 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs_aligned() local
93 src = ops->fontbuffer + (scr_readw(s++) & charmask)*cellsize; in cw_putcs_aligned()
118 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs() local
127 u32 vxres = GETVXRES(ops->p, info); in cw_putcs()
129 if (!ops->fontbuffer) in cw_putcs()
207 struct fbcon_ops *ops = info->fbcon_par; in cw_cursor() local
210 int y = real_y(ops->p, vc->state.y); in cw_cursor()
214 u32 vxres = GETVXRES(ops->p, info); in cw_cursor()
216 if (!ops->fontbuffer) in cw_cursor()
223 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); in cw_cursor()
225 if (ops->cursor_state.image.data != src || in cw_cursor()
226 ops->cursor_reset) { in cw_cursor()
227 ops->cursor_state.image.data = src; in cw_cursor()
237 kfree(ops->cursor_data); in cw_cursor()
238 ops->cursor_data = dst; in cw_cursor()
243 if (ops->cursor_state.image.fg_color != fg || in cw_cursor()
244 ops->cursor_state.image.bg_color != bg || in cw_cursor()
245 ops->cursor_reset) { in cw_cursor()
246 ops->cursor_state.image.fg_color = fg; in cw_cursor()
247 ops->cursor_state.image.bg_color = bg; in cw_cursor()
251 if (ops->cursor_state.image.height != vc->vc_font.width || in cw_cursor()
252 ops->cursor_state.image.width != vc->vc_font.height || in cw_cursor()
253 ops->cursor_reset) { in cw_cursor()
254 ops->cursor_state.image.height = vc->vc_font.width; in cw_cursor()
255 ops->cursor_state.image.width = vc->vc_font.height; in cw_cursor()
262 if (ops->cursor_state.image.dx != dx || in cw_cursor()
263 ops->cursor_state.image.dy != dy || in cw_cursor()
264 ops->cursor_reset) { in cw_cursor()
265 ops->cursor_state.image.dx = dx; in cw_cursor()
266 ops->cursor_state.image.dy = dy; in cw_cursor()
270 if (ops->cursor_state.hot.x || ops->cursor_state.hot.y || in cw_cursor()
271 ops->cursor_reset) { in cw_cursor()
272 ops->cursor_state.hot.x = cursor.hot.y = 0; in cw_cursor()
277 vc->vc_cursor_type != ops->p->cursor_shape || in cw_cursor()
278 ops->cursor_state.mask == NULL || in cw_cursor()
279 ops->cursor_reset) { in cw_cursor()
295 kfree(ops->cursor_state.mask); in cw_cursor()
296 ops->cursor_state.mask = mask; in cw_cursor()
298 ops->p->cursor_shape = vc->vc_cursor_type; in cw_cursor()
301 switch (CUR_SIZE(ops->p->cursor_shape)) { in cw_cursor()
334 ops->cursor_state.enable = enable && !use_sw; in cw_cursor()
337 cursor.image.fg_color = ops->cursor_state.image.fg_color; in cw_cursor()
338 cursor.image.bg_color = ops->cursor_state.image.bg_color; in cw_cursor()
339 cursor.image.dx = ops->cursor_state.image.dx; in cw_cursor()
340 cursor.image.dy = ops->cursor_state.image.dy; in cw_cursor()
341 cursor.image.height = ops->cursor_state.image.height; in cw_cursor()
342 cursor.image.width = ops->cursor_state.image.width; in cw_cursor()
343 cursor.hot.x = ops->cursor_state.hot.x; in cw_cursor()
344 cursor.hot.y = ops->cursor_state.hot.y; in cw_cursor()
345 cursor.mask = ops->cursor_state.mask; in cw_cursor()
346 cursor.enable = ops->cursor_state.enable; in cw_cursor()
356 ops->cursor_reset = 0; in cw_cursor()
361 struct fbcon_ops *ops = info->fbcon_par; in cw_update_start() local
362 u32 vxres = GETVXRES(ops->p, info); in cw_update_start()
366 xoffset = vxres - (info->var.xres + ops->var.yoffset); in cw_update_start()
367 ops->var.yoffset = ops->var.xoffset; in cw_update_start()
368 ops->var.xoffset = xoffset; in cw_update_start()
369 err = fb_pan_display(info, &ops->var); in cw_update_start()
370 ops->var.xoffset = info->var.xoffset; in cw_update_start()
371 ops->var.yoffset = info->var.yoffset; in cw_update_start()
372 ops->var.vmode = info->var.vmode; in cw_update_start()
376 void fbcon_rotate_cw(struct fbcon_ops *ops) in fbcon_rotate_cw() argument
378 ops->bmove = cw_bmove; in fbcon_rotate_cw()
379 ops->clear = cw_clear; in fbcon_rotate_cw()
380 ops->putcs = cw_putcs; in fbcon_rotate_cw()
381 ops->clear_margins = cw_clear_margins; in fbcon_rotate_cw()
382 ops->cursor = cw_cursor; in fbcon_rotate_cw()
383 ops->update_start = cw_update_start; in fbcon_rotate_cw()