Lines Matching refs:x_margin

66 	int x_margin, y_margin;  member
256 rects [6] = fb->x_margin; in sbusfb_clear_margin()
258 rects [8] = fb->var.xres_virtual - fb->x_margin; in sbusfb_clear_margin()
262 rects [12] = fb->x_margin; in sbusfb_clear_margin()
264 rects [14] = fb->var.xres_virtual - fb->x_margin; in sbusfb_clear_margin()
275 fb_base -= (skip_bytes + fb->x_margin) / 8; in sbusfb_clear_margin()
278 fb_memset255 (fb_base, skip_bytes - fb->x_margin / 8); in sbusfb_clear_margin()
279 fb_memset255 (fb_base + scr_size - skip_bytes + fb->x_margin / 8, skip_bytes - fb->x_margin / 8); in sbusfb_clear_margin()
281 size = fb->x_margin / 8 * 2; in sbusfb_clear_margin()
282 for (q = fb_base + skip_bytes - fb->x_margin / 8, h = 0; in sbusfb_clear_margin()
286 fb_base -= (skip_bytes + fb->x_margin); in sbusfb_clear_margin()
287 memset (fb_base, attr_bgcol(p,s), skip_bytes - fb->x_margin); in sbusfb_clear_margin()
288 …memset (fb_base + scr_size - skip_bytes + fb->x_margin, attr_bgcol(p,s), skip_bytes - fb->x_margin in sbusfb_clear_margin()
290 size = fb->x_margin * 2; in sbusfb_clear_margin()
291 for (q = fb_base + skip_bytes - fb->x_margin, h = 0; in sbusfb_clear_margin()
480 fb->cursor.cpos.fbx = (x << fontwidthlog(p)) + fb->x_margin; in sbusfb_cursor()
482 fb->cursor.cpos.fbx = (x * fontwidth(p)) + fb->x_margin; in sbusfb_cursor()
760 int x_margin, y_margin; in sbusfbcon_switch() local
775 x_margin = (fb_display[con].var.xres_virtual - fb_display[con].var.xres) / 2; in sbusfbcon_switch()
778 fb->margins(fb, &fb_display[con], x_margin, y_margin); in sbusfbcon_switch()
779 if (fb->graphmode || fb->x_margin != x_margin || fb->y_margin != y_margin) { in sbusfbcon_switch()
780 fb->x_margin = x_margin; fb->y_margin = y_margin; in sbusfbcon_switch()
877 int x_margin, y_margin; in sbusfb_set_font() local
880 x_margin = 0; in sbusfb_set_font()
887 x_margin = def_margins[margin].x_margin; in sbusfb_set_font()
892 x_margin = defx_margin; in sbusfb_set_font()
895 x_margin += ((w - 2*x_margin) % width) / 2; in sbusfb_set_font()
898 p->var.xres = w - 2*x_margin; in sbusfb_set_font()
904 fb->margins(fb, p, x_margin, y_margin); in sbusfb_set_font()
905 if (fb->x_margin != x_margin || fb->y_margin != y_margin) { in sbusfb_set_font()
906 fb->x_margin = x_margin; fb->y_margin = y_margin; in sbusfb_set_font()
995 fb->x_margin = def_margins[margin].x_margin; in sbusfb_init_fb()
1000 fb->x_margin = defx_margin; in sbusfb_init_fb()
1003 fb->x_margin += ((w - 2*fb->x_margin) & 7) / 2; in sbusfb_init_fb()
1008 var->xres = w - 2*fb->x_margin; in sbusfb_init_fb()