Lines Matching refs:ops
239 struct fbcon_ops *ops = info->fbcon_par; in bit_cursor() local
242 int y = real_y(ops->p, vc->state.y); in bit_cursor()
256 if (ops->cursor_state.image.data != src || in bit_cursor()
257 ops->cursor_reset) { in bit_cursor()
258 ops->cursor_state.image.data = src; in bit_cursor()
268 kfree(ops->cursor_data); in bit_cursor()
269 ops->cursor_data = dst; in bit_cursor()
274 if (ops->cursor_state.image.fg_color != fg || in bit_cursor()
275 ops->cursor_state.image.bg_color != bg || in bit_cursor()
276 ops->cursor_reset) { in bit_cursor()
277 ops->cursor_state.image.fg_color = fg; in bit_cursor()
278 ops->cursor_state.image.bg_color = bg; in bit_cursor()
282 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->state.x)) || in bit_cursor()
283 (ops->cursor_state.image.dy != (vc->vc_font.height * y)) || in bit_cursor()
284 ops->cursor_reset) { in bit_cursor()
285 ops->cursor_state.image.dx = vc->vc_font.width * vc->state.x; in bit_cursor()
286 ops->cursor_state.image.dy = vc->vc_font.height * y; in bit_cursor()
290 if (ops->cursor_state.image.height != vc->vc_font.height || in bit_cursor()
291 ops->cursor_state.image.width != vc->vc_font.width || in bit_cursor()
292 ops->cursor_reset) { in bit_cursor()
293 ops->cursor_state.image.height = vc->vc_font.height; in bit_cursor()
294 ops->cursor_state.image.width = vc->vc_font.width; in bit_cursor()
298 if (ops->cursor_state.hot.x || ops->cursor_state.hot.y || in bit_cursor()
299 ops->cursor_reset) { in bit_cursor()
300 ops->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor()
305 vc->vc_cursor_type != ops->p->cursor_shape || in bit_cursor()
306 ops->cursor_state.mask == NULL || in bit_cursor()
307 ops->cursor_reset) { in bit_cursor()
315 kfree(ops->cursor_state.mask); in bit_cursor()
316 ops->cursor_state.mask = mask; in bit_cursor()
318 ops->p->cursor_shape = vc->vc_cursor_type; in bit_cursor()
321 switch (CUR_SIZE(ops->p->cursor_shape)) { in bit_cursor()
350 ops->cursor_state.enable = enable && !use_sw; in bit_cursor()
353 cursor.image.fg_color = ops->cursor_state.image.fg_color; in bit_cursor()
354 cursor.image.bg_color = ops->cursor_state.image.bg_color; in bit_cursor()
355 cursor.image.dx = ops->cursor_state.image.dx; in bit_cursor()
356 cursor.image.dy = ops->cursor_state.image.dy; in bit_cursor()
357 cursor.image.height = ops->cursor_state.image.height; in bit_cursor()
358 cursor.image.width = ops->cursor_state.image.width; in bit_cursor()
359 cursor.hot.x = ops->cursor_state.hot.x; in bit_cursor()
360 cursor.hot.y = ops->cursor_state.hot.y; in bit_cursor()
361 cursor.mask = ops->cursor_state.mask; in bit_cursor()
362 cursor.enable = ops->cursor_state.enable; in bit_cursor()
372 ops->cursor_reset = 0; in bit_cursor()
377 struct fbcon_ops *ops = info->fbcon_par; in bit_update_start() local
380 err = fb_pan_display(info, &ops->var); in bit_update_start()
381 ops->var.xoffset = info->var.xoffset; in bit_update_start()
382 ops->var.yoffset = info->var.yoffset; in bit_update_start()
383 ops->var.vmode = info->var.vmode; in bit_update_start()
387 void fbcon_set_bitops(struct fbcon_ops *ops) in fbcon_set_bitops() argument
389 ops->bmove = bit_bmove; in fbcon_set_bitops()
390 ops->clear = bit_clear; in fbcon_set_bitops()
391 ops->putcs = bit_putcs; in fbcon_set_bitops()
392 ops->clear_margins = bit_clear_margins; in fbcon_set_bitops()
393 ops->cursor = bit_cursor; in fbcon_set_bitops()
394 ops->update_start = bit_update_start; in fbcon_set_bitops()
395 ops->rotate_font = NULL; in fbcon_set_bitops()
397 if (ops->rotate) in fbcon_set_bitops()
398 fbcon_set_rotate(ops); in fbcon_set_bitops()