Lines Matching refs:ops
240 struct fbcon_ops *ops = info->fbcon_par; in bit_cursor() local
243 int y = real_y(ops->p, vc->vc_y); in bit_cursor()
253 ops->cursor_flash = 0; in bit_cursor()
263 if (ops->cursor_state.image.data != src || in bit_cursor()
264 ops->cursor_reset) { in bit_cursor()
265 ops->cursor_state.image.data = src; in bit_cursor()
275 kfree(ops->cursor_data); in bit_cursor()
276 ops->cursor_data = dst; in bit_cursor()
281 if (ops->cursor_state.image.fg_color != fg || in bit_cursor()
282 ops->cursor_state.image.bg_color != bg || in bit_cursor()
283 ops->cursor_reset) { in bit_cursor()
284 ops->cursor_state.image.fg_color = fg; in bit_cursor()
285 ops->cursor_state.image.bg_color = bg; in bit_cursor()
289 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->vc_x)) || in bit_cursor()
290 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || in bit_cursor()
291 ops->cursor_reset) { in bit_cursor()
292 ops->cursor_state.image.dx = vc->vc_font.width * vc->vc_x; in bit_cursor()
293 ops->cursor_state.image.dy = vc->vc_font.height * y; in bit_cursor()
297 if (ops->cursor_state.image.height != vc->vc_font.height || in bit_cursor()
298 ops->cursor_state.image.width != vc->vc_font.width || in bit_cursor()
299 ops->cursor_reset) { in bit_cursor()
300 ops->cursor_state.image.height = vc->vc_font.height; in bit_cursor()
301 ops->cursor_state.image.width = vc->vc_font.width; in bit_cursor()
305 if (ops->cursor_state.hot.x || ops->cursor_state.hot.y || in bit_cursor()
306 ops->cursor_reset) { in bit_cursor()
307 ops->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor()
312 vc->vc_cursor_type != ops->p->cursor_shape || in bit_cursor()
313 ops->cursor_state.mask == NULL || in bit_cursor()
314 ops->cursor_reset) { in bit_cursor()
322 kfree(ops->cursor_state.mask); in bit_cursor()
323 ops->cursor_state.mask = mask; in bit_cursor()
325 ops->p->cursor_shape = vc->vc_cursor_type; in bit_cursor()
328 switch (ops->p->cursor_shape & CUR_HWMASK) { in bit_cursor()
359 ops->cursor_state.enable = 0; in bit_cursor()
364 ops->cursor_state.enable = (use_sw) ? 0 : 1; in bit_cursor()
369 cursor.image.fg_color = ops->cursor_state.image.fg_color; in bit_cursor()
370 cursor.image.bg_color = ops->cursor_state.image.bg_color; in bit_cursor()
371 cursor.image.dx = ops->cursor_state.image.dx; in bit_cursor()
372 cursor.image.dy = ops->cursor_state.image.dy; in bit_cursor()
373 cursor.image.height = ops->cursor_state.image.height; in bit_cursor()
374 cursor.image.width = ops->cursor_state.image.width; in bit_cursor()
375 cursor.hot.x = ops->cursor_state.hot.x; in bit_cursor()
376 cursor.hot.y = ops->cursor_state.hot.y; in bit_cursor()
377 cursor.mask = ops->cursor_state.mask; in bit_cursor()
378 cursor.enable = ops->cursor_state.enable; in bit_cursor()
388 ops->cursor_reset = 0; in bit_cursor()
393 struct fbcon_ops *ops = info->fbcon_par; in bit_update_start() local
396 err = fb_pan_display(info, &ops->var); in bit_update_start()
397 ops->var.xoffset = info->var.xoffset; in bit_update_start()
398 ops->var.yoffset = info->var.yoffset; in bit_update_start()
399 ops->var.vmode = info->var.vmode; in bit_update_start()
403 void fbcon_set_bitops(struct fbcon_ops *ops) in fbcon_set_bitops() argument
405 ops->bmove = bit_bmove; in fbcon_set_bitops()
406 ops->clear = bit_clear; in fbcon_set_bitops()
407 ops->putcs = bit_putcs; in fbcon_set_bitops()
408 ops->clear_margins = bit_clear_margins; in fbcon_set_bitops()
409 ops->cursor = bit_cursor; in fbcon_set_bitops()
410 ops->update_start = bit_update_start; in fbcon_set_bitops()
411 ops->rotate_font = NULL; in fbcon_set_bitops()
413 if (ops->rotate) in fbcon_set_bitops()
414 fbcon_set_rotate(ops); in fbcon_set_bitops()