tag | line | file | source code |
var | 725 | arch/m68k/amiga/amifb.c | int (*decode_var)(struct fb_var_screeninfo *var, struct amiga_fb_par *par); |
var | 726 | arch/m68k/amiga/amifb.c | int (*encode_var)(struct fb_var_screeninfo *var, struct amiga_fb_par *par); |
var | 731 | arch/m68k/amiga/amifb.c | int (*pan_display)(struct fb_var_screeninfo *var, struct amiga_fb_par *par); |
var | 1014 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_var(struct fb_var_screeninfo *var, int con); |
var | 1015 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_var(struct fb_var_screeninfo *var, int con); |
var | 1018 | arch/m68k/amiga/amifb.c | static int amiga_fb_pan_display(struct fb_var_screeninfo *var, int con); |
var | 1024 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_var_cursorinfo(struct fb_var_cursorinfo *var, int con); |
var | 1025 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_var_cursorinfo(struct fb_var_cursorinfo *var, int con); |
var | 1066 | arch/m68k/amiga/amifb.c | static int aga_decode_var(struct fb_var_screeninfo *var, |
var | 1068 | arch/m68k/amiga/amifb.c | static int aga_encode_var(struct fb_var_screeninfo *var, |
var | 1074 | arch/m68k/amiga/amifb.c | static int aga_pan_display(struct fb_var_screeninfo *var, |
var | 1082 | arch/m68k/amiga/amifb.c | static int aga_get_var_cursorinfo(struct fb_var_cursorinfo *var, int con); |
var | 1083 | arch/m68k/amiga/amifb.c | static int aga_set_var_cursorinfo(struct fb_var_cursorinfo *var, int con); |
var | 1103 | arch/m68k/amiga/amifb.c | static int do_fb_set_var(struct fb_var_screeninfo *var, int isactive); |
var | 1105 | arch/m68k/amiga/amifb.c | static int do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
var | 1107 | arch/m68k/amiga/amifb.c | static int do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
var | 2500 | arch/m68k/amiga/amifb.c | static int mono_amiga_fb_get_var(struct fb_var_screeninfo *var, int con) |
var | 2504 | arch/m68k/amiga/amifb.c | var->xres = mono_current_par.geometry->scr_width; |
var | 2505 | arch/m68k/amiga/amifb.c | var->yres = mono_current_par.geometry->scr_height; |
var | 2506 | arch/m68k/amiga/amifb.c | var->xres_virtual = var->xres; |
var | 2507 | arch/m68k/amiga/amifb.c | var->yres_virtual = var->yres; |
var | 2508 | arch/m68k/amiga/amifb.c | var->xoffset = 0; |
var | 2509 | arch/m68k/amiga/amifb.c | var->yoffset = 0; |
var | 2511 | arch/m68k/amiga/amifb.c | var->bits_per_pixel = mono_current_par.geometry->scr_depth; |
var | 2512 | arch/m68k/amiga/amifb.c | var->grayscale = 0; |
var | 2515 | arch/m68k/amiga/amifb.c | var->red.offset = 0; |
var | 2516 | arch/m68k/amiga/amifb.c | var->red.length = 8; |
var | 2517 | arch/m68k/amiga/amifb.c | var->red.msb_right = 0; |
var | 2518 | arch/m68k/amiga/amifb.c | var->green = var->red; |
var | 2519 | arch/m68k/amiga/amifb.c | var->blue = var->red; |
var | 2521 | arch/m68k/amiga/amifb.c | var->red.offset = 0; |
var | 2522 | arch/m68k/amiga/amifb.c | var->red.length = 4; |
var | 2523 | arch/m68k/amiga/amifb.c | var->red.msb_right = 0; |
var | 2524 | arch/m68k/amiga/amifb.c | var->green = var->red; |
var | 2525 | arch/m68k/amiga/amifb.c | var->blue = var->red; |
var | 2528 | arch/m68k/amiga/amifb.c | var->nonstd = 0; |
var | 2529 | arch/m68k/amiga/amifb.c | var->activate = 0; |
var | 2531 | arch/m68k/amiga/amifb.c | var->width = -1; |
var | 2532 | arch/m68k/amiga/amifb.c | var->height = -1; |
var | 2534 | arch/m68k/amiga/amifb.c | var->accel = FB_ACCEL_NONE; |
var | 2536 | arch/m68k/amiga/amifb.c | var->pixclock = 35242; |
var | 2537 | arch/m68k/amiga/amifb.c | var->left_margin = (mono_current_par.geometry->hbstop-mono_current_par.geometry->hsstrt)*8; |
var | 2538 | arch/m68k/amiga/amifb.c | var->right_margin = (mono_current_par.geometry->hsstrt-mono_current_par.geometry->hbstrt)*8; |
var | 2539 | arch/m68k/amiga/amifb.c | var->upper_margin = (mono_current_par.geometry->vbstop-mono_current_par.geometry->vsstrt)*8; |
var | 2540 | arch/m68k/amiga/amifb.c | var->lower_margin = (mono_current_par.geometry->vsstrt-mono_current_par.geometry->vbstrt)*8; |
var | 2541 | arch/m68k/amiga/amifb.c | var->hsync_len = (mono_current_par.geometry->hsstop-mono_current_par.geometry->hsstrt)*8; |
var | 2542 | arch/m68k/amiga/amifb.c | var->vsync_len = (mono_current_par.geometry->vsstop-mono_current_par.geometry->vsstrt)*8; |
var | 2543 | arch/m68k/amiga/amifb.c | var->sync = 0; |
var | 2545 | arch/m68k/amiga/amifb.c | var->vmode = FB_VMODE_INTERLACED; |
var | 2547 | arch/m68k/amiga/amifb.c | var->vmode = FB_VMODE_DOUBLE; |
var | 2549 | arch/m68k/amiga/amifb.c | var->vmode = FB_VMODE_NONINTERLACED; |
var | 2551 | arch/m68k/amiga/amifb.c | for (i = 0; i < arraysize(var->reserved); i++) |
var | 2552 | arch/m68k/amiga/amifb.c | var->reserved[i] = 0; |
var | 2577 | arch/m68k/amiga/amifb.c | static int mono_amiga_fb_set_var(struct fb_var_screeninfo *var, int con) |
var | 2679 | arch/m68k/amiga/amifb.c | static int mono_amiga_fb_pan_display(struct fb_var_screeninfo *var, int con) |
var | 2702 | arch/m68k/amiga/amifb.c | mono_current_par.y_wrap = disp[con].var.yoffset; |
var | 2711 | arch/m68k/amiga/amifb.c | mono_current_par.y_wrap = disp[con].var.yoffset; |
var | 2751 | arch/m68k/amiga/amifb.c | mono_amiga_fb_get_var(&disp[0].var, 0); |
var | 3182 | arch/m68k/amiga/amifb.c | static int aga_decode_var(struct fb_var_screeninfo *var, |
var | 3200 | arch/m68k/amiga/amifb.c | if (var->pixclock <= pixclock[clk_shift]) |
var | 3210 | arch/m68k/amiga/amifb.c | par->xres = max(var->xres, 64); |
var | 3211 | arch/m68k/amiga/amifb.c | par->yres = max(var->yres, 64); |
var | 3212 | arch/m68k/amiga/amifb.c | par->vxres = up64(max(var->xres_virtual, par->xres)); |
var | 3213 | arch/m68k/amiga/amifb.c | par->vyres = max(var->yres_virtual, par->yres); |
var | 3215 | arch/m68k/amiga/amifb.c | par->bpp = var->bits_per_pixel; |
var | 3219 | arch/m68k/amiga/amifb.c | if (!var->nonstd) { |
var | 3222 | arch/m68k/amiga/amifb.c | } else if (var->nonstd == FB_NONSTD_HAM) |
var | 3227 | arch/m68k/amiga/amifb.c | upper = var->upper_margin; |
var | 3228 | arch/m68k/amiga/amifb.c | lower = var->lower_margin; |
var | 3229 | arch/m68k/amiga/amifb.c | hslen = var->hsync_len; |
var | 3230 | arch/m68k/amiga/amifb.c | vslen = var->vsync_len; |
var | 3232 | arch/m68k/amiga/amifb.c | par->vmode = var->vmode; |
var | 3256 | arch/m68k/amiga/amifb.c | par->xoffset = var->xoffset; |
var | 3257 | arch/m68k/amiga/amifb.c | par->yoffset = var->yoffset; |
var | 3267 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_BROADCAST) { |
var | 3293 | arch/m68k/amiga/amifb.c | left_n = var->left_margin<<clk_shift; |
var | 3294 | arch/m68k/amiga/amifb.c | right_n = var->right_margin<<clk_shift; |
var | 3306 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_BROADCAST) { |
var | 3351 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_HOR_HIGH_ACT) |
var | 3353 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_VERT_HIGH_ACT) |
var | 3355 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_COMP_HIGH_ACT) |
var | 3413 | arch/m68k/amiga/amifb.c | if (var->nonstd == FB_NONSTD_HAM) |
var | 3415 | arch/m68k/amiga/amifb.c | if (var->sync & FB_SYNC_EXT) |
var | 3449 | arch/m68k/amiga/amifb.c | static int aga_encode_var(struct fb_var_screeninfo *var, |
var | 3458 | arch/m68k/amiga/amifb.c | var->xres = par->xres; |
var | 3459 | arch/m68k/amiga/amifb.c | var->yres = par->yres; |
var | 3460 | arch/m68k/amiga/amifb.c | var->xres_virtual = par->vxres; |
var | 3461 | arch/m68k/amiga/amifb.c | var->yres_virtual = par->vyres; |
var | 3462 | arch/m68k/amiga/amifb.c | var->xoffset = par->xoffset; |
var | 3463 | arch/m68k/amiga/amifb.c | var->yoffset = par->yoffset; |
var | 3465 | arch/m68k/amiga/amifb.c | var->bits_per_pixel = par->bpp; |
var | 3466 | arch/m68k/amiga/amifb.c | var->grayscale = 0; |
var | 3468 | arch/m68k/amiga/amifb.c | var->red.offset = 0; |
var | 3469 | arch/m68k/amiga/amifb.c | var->red.length = 8; |
var | 3470 | arch/m68k/amiga/amifb.c | var->red.msb_right = 0; |
var | 3471 | arch/m68k/amiga/amifb.c | var->blue = var->green = var->red; |
var | 3472 | arch/m68k/amiga/amifb.c | var->transp.offset = 0; |
var | 3473 | arch/m68k/amiga/amifb.c | var->transp.length = 0; |
var | 3474 | arch/m68k/amiga/amifb.c | var->transp.msb_right = 0; |
var | 3477 | arch/m68k/amiga/amifb.c | var->nonstd = FB_NONSTD_HAM; |
var | 3479 | arch/m68k/amiga/amifb.c | var->nonstd = 0; |
var | 3480 | arch/m68k/amiga/amifb.c | var->activate = 0; |
var | 3482 | arch/m68k/amiga/amifb.c | var->height = -1; |
var | 3483 | arch/m68k/amiga/amifb.c | var->width = -1; |
var | 3484 | arch/m68k/amiga/amifb.c | var->accel = FB_ACCEL_NONE; |
var | 3487 | arch/m68k/amiga/amifb.c | var->pixclock = pixclock[clk_shift]; |
var | 3502 | arch/m68k/amiga/amifb.c | var->sync = 0; |
var | 3518 | arch/m68k/amiga/amifb.c | var->sync = FB_SYNC_BROADCAST; |
var | 3522 | arch/m68k/amiga/amifb.c | var->sync |= FB_SYNC_EXT; |
var | 3524 | arch/m68k/amiga/amifb.c | var->sync |= FB_SYNC_HOR_HIGH_ACT; |
var | 3526 | arch/m68k/amiga/amifb.c | var->sync |= FB_SYNC_VERT_HIGH_ACT; |
var | 3528 | arch/m68k/amiga/amifb.c | var->sync |= FB_SYNC_COMP_HIGH_ACT; |
var | 3542 | arch/m68k/amiga/amifb.c | var->left_margin = left>>clk_shift; |
var | 3543 | arch/m68k/amiga/amifb.c | var->right_margin = right>>clk_shift; |
var | 3544 | arch/m68k/amiga/amifb.c | var->upper_margin = upper<<1>>line_shift_incd; |
var | 3545 | arch/m68k/amiga/amifb.c | var->lower_margin = lower<<1>>line_shift_incd; |
var | 3546 | arch/m68k/amiga/amifb.c | var->hsync_len = hslen>>clk_shift; |
var | 3547 | arch/m68k/amiga/amifb.c | var->vsync_len = vslen<<1>>line_shift_incd; |
var | 3548 | arch/m68k/amiga/amifb.c | var->vmode = par->vmode; |
var | 3549 | arch/m68k/amiga/amifb.c | for (i = 0; i < arraysize(var->reserved); i++) |
var | 3550 | arch/m68k/amiga/amifb.c | var->reserved[i] = 0; |
var | 3621 | arch/m68k/amiga/amifb.c | static int aga_pan_display(struct fb_var_screeninfo *var, |
var | 3628 | arch/m68k/amiga/amifb.c | xoffset = var->xoffset; |
var | 3629 | arch/m68k/amiga/amifb.c | yoffset = var->yoffset; |
var | 3630 | arch/m68k/amiga/amifb.c | if (var->vmode & FB_VMODE_YWRAP) { |
var | 3693 | arch/m68k/amiga/amifb.c | par->xoffset = var->xoffset = xoffset; |
var | 3694 | arch/m68k/amiga/amifb.c | par->yoffset = var->yoffset = yoffset; |
var | 3695 | arch/m68k/amiga/amifb.c | par->vmode = var->vmode = vmode; |
var | 3922 | arch/m68k/amiga/amifb.c | static int aga_get_var_cursorinfo(struct fb_var_cursorinfo *var, int con) |
var | 3927 | arch/m68k/amiga/amifb.c | memcpy(var->data, sprite->u.nonlaced.data, sizeof(var->data)); |
var | 3932 | arch/m68k/amiga/amifb.c | static int aga_set_var_cursorinfo(struct fb_var_cursorinfo *var, int con) |
var | 3937 | arch/m68k/amiga/amifb.c | memcpy(sprite->u.nonlaced.data, var->data, sizeof(var->data)); |
var | 4159 | arch/m68k/amiga/amifb.c | static int do_fb_set_var(struct fb_var_screeninfo *var, int isactive) |
var | 4164 | arch/m68k/amiga/amifb.c | if ((err = fbhw->decode_var(var, &par))) |
var | 4166 | arch/m68k/amiga/amifb.c | activate = var->activate; |
var | 4167 | arch/m68k/amiga/amifb.c | if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW && isactive) |
var | 4169 | arch/m68k/amiga/amifb.c | fbhw->encode_var(var, &par); |
var | 4170 | arch/m68k/amiga/amifb.c | var->activate = activate; |
var | 4244 | arch/m68k/amiga/amifb.c | static int do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
var | 4261 | arch/m68k/amiga/amifb.c | hred = CNVT_FROMHW(hred, var->red.length); |
var | 4262 | arch/m68k/amiga/amifb.c | hgreen = CNVT_FROMHW(hgreen, var->green.length); |
var | 4263 | arch/m68k/amiga/amifb.c | hblue = CNVT_FROMHW(hblue, var->blue.length); |
var | 4264 | arch/m68k/amiga/amifb.c | htransp = CNVT_FROMHW(htransp, var->transp.length); |
var | 4288 | arch/m68k/amiga/amifb.c | static int do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
var | 4315 | arch/m68k/amiga/amifb.c | hred = CNVT_TOHW(hred, var->red.length); |
var | 4316 | arch/m68k/amiga/amifb.c | hgreen = CNVT_TOHW(hgreen, var->green.length); |
var | 4317 | arch/m68k/amiga/amifb.c | hblue = CNVT_TOHW(hblue, var->blue.length); |
var | 4318 | arch/m68k/amiga/amifb.c | htransp = CNVT_TOHW(htransp, var->transp.length); |
var | 4336 | arch/m68k/amiga/amifb.c | do_fb_set_cmap(&disp[con].cmap, &disp[con].var, 1); |
var | 4338 | arch/m68k/amiga/amifb.c | do_fb_set_cmap(get_default_colormap(disp[con].var.bits_per_pixel), |
var | 4339 | arch/m68k/amiga/amifb.c | &disp[con].var, 1); |
var | 4430 | arch/m68k/amiga/amifb.c | error = fbhw->decode_var(&disp[con].var, &par); |
var | 4439 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_var(struct fb_var_screeninfo *var, int con) |
var | 4446 | arch/m68k/amiga/amifb.c | error = fbhw->encode_var(var, &par); |
var | 4448 | arch/m68k/amiga/amifb.c | *var = disp[con].var; |
var | 4476 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_var(struct fb_var_screeninfo *var, int con) |
var | 4480 | arch/m68k/amiga/amifb.c | if ((err = do_fb_set_var(var, con == currcon))) |
var | 4482 | arch/m68k/amiga/amifb.c | if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) { |
var | 4483 | arch/m68k/amiga/amifb.c | oldxres = disp[con].var.xres; |
var | 4484 | arch/m68k/amiga/amifb.c | oldyres = disp[con].var.yres; |
var | 4485 | arch/m68k/amiga/amifb.c | oldvxres = disp[con].var.xres_virtual; |
var | 4486 | arch/m68k/amiga/amifb.c | oldvyres = disp[con].var.yres_virtual; |
var | 4487 | arch/m68k/amiga/amifb.c | oldbpp = disp[con].var.bits_per_pixel; |
var | 4488 | arch/m68k/amiga/amifb.c | disp[con].var = *var; |
var | 4489 | arch/m68k/amiga/amifb.c | if (oldxres != var->xres || oldyres != var->yres || |
var | 4490 | arch/m68k/amiga/amifb.c | oldvxres != var->xres_virtual || oldvyres != var->yres_virtual || |
var | 4491 | arch/m68k/amiga/amifb.c | oldbpp != var->bits_per_pixel) { |
var | 4498 | arch/m68k/amiga/amifb.c | var->activate = 0; |
var | 4510 | arch/m68k/amiga/amifb.c | return(do_fb_get_cmap(cmap, &disp[con].var, kspc)); |
var | 4514 | arch/m68k/amiga/amifb.c | copy_cmap(get_default_colormap(disp[con].var.bits_per_pixel), cmap, |
var | 4529 | arch/m68k/amiga/amifb.c | if ((err = alloc_cmap(&disp[con].cmap, 1<<disp[con].var.bits_per_pixel, |
var | 4534 | arch/m68k/amiga/amifb.c | return(do_fb_set_cmap(cmap, &disp[con].var, kspc)); |
var | 4547 | arch/m68k/amiga/amifb.c | static int amiga_fb_pan_display(struct fb_var_screeninfo *var, int con) |
var | 4552 | arch/m68k/amiga/amifb.c | if (var->vmode & FB_VMODE_YWRAP) { |
var | 4553 | arch/m68k/amiga/amifb.c | if (var->xoffset || var->yoffset >= disp[con].var.yres) |
var | 4556 | arch/m68k/amiga/amifb.c | if (var->xoffset+disp[con].var.xres > disp[con].var.xres_virtual || |
var | 4557 | arch/m68k/amiga/amifb.c | var->yoffset+disp[con].var.yres > disp[con].var.yres_virtual) |
var | 4565 | arch/m68k/amiga/amifb.c | if ((err = fbhw->pan_display(var, ¤t_par))) { |
var | 4572 | arch/m68k/amiga/amifb.c | disp[con].var.xoffset = var->xoffset; |
var | 4573 | arch/m68k/amiga/amifb.c | disp[con].var.yoffset = var->yoffset; |
var | 4574 | arch/m68k/amiga/amifb.c | if (var->vmode & FB_VMODE_YWRAP) |
var | 4575 | arch/m68k/amiga/amifb.c | disp[con].var.vmode |= FB_VMODE_YWRAP; |
var | 4577 | arch/m68k/amiga/amifb.c | disp[con].var.vmode &= ~FB_VMODE_YWRAP; |
var | 4668 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_var_cursorinfo(struct fb_var_cursorinfo *var, int con) |
var | 4671 | arch/m68k/amiga/amifb.c | return(aga_get_var_cursorinfo(var, con)); |
var | 4676 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_var_cursorinfo(struct fb_var_cursorinfo *var, int con) |
var | 4679 | arch/m68k/amiga/amifb.c | return(aga_set_var_cursorinfo(var, con)); |
var | 4820 | arch/m68k/amiga/amifb.c | struct fb_var_screeninfo *var; |
var | 4924 | arch/m68k/amiga/amifb.c | var = &amiga_fb_predefined[amifb_mode]; |
var | 4925 | arch/m68k/amiga/amifb.c | do_fb_set_var(var, 1); |
var | 4929 | arch/m68k/amiga/amifb.c | amiga_fb_get_var(&disp[0].var, -1); |
var | 4940 | arch/m68k/amiga/amifb.c | do_fb_get_cmap(&disp[currcon].cmap, &disp[currcon].var, 1); |
var | 4942 | arch/m68k/amiga/amifb.c | do_fb_set_var(&disp[con].var, 1); |
var | 4960 | arch/m68k/amiga/amifb.c | current_par.yoffset = disp[con].var.yoffset; |
var | 4961 | arch/m68k/amiga/amifb.c | current_par.vmode = disp[con].var.vmode; |
var | 5068 | arch/m68k/amiga/amifb.c | struct fb_var_screeninfo var; |
var | 5072 | arch/m68k/amiga/amifb.c | var = amiga_fb_predefined[amifb_mode]; |
var | 5073 | arch/m68k/amiga/amifb.c | var.activate = FB_ACTIVATE_TEST; |
var | 5074 | arch/m68k/amiga/amifb.c | if (!do_fb_set_var(&var, 1)) |
var | 5081 | arch/m68k/amiga/amifb.c | var = amiga_fb_predefined[amifb_mode]; |
var | 5082 | arch/m68k/amiga/amifb.c | var.activate = FB_ACTIVATE_TEST; |
var | 5083 | arch/m68k/amiga/amifb.c | if (!do_fb_set_var(&var, 1)) |
var | 5089 | arch/m68k/amiga/amifb.c | amiga_fb_predefined[0] = var; |
var | 294 | arch/m68k/atari/atafb.c | int (*decode_var)( struct fb_var_screeninfo *var, |
var | 296 | arch/m68k/atari/atafb.c | int (*encode_var)( struct fb_var_screeninfo *var, |
var | 308 | arch/m68k/atari/atafb.c | int (*pan_display)( struct fb_var_screeninfo *var, |
var | 524 | arch/m68k/atari/atafb.c | static int tt_decode_var( struct fb_var_screeninfo *var, |
var | 527 | arch/m68k/atari/atafb.c | int xres=var->xres; |
var | 528 | arch/m68k/atari/atafb.c | int yres=var->yres; |
var | 529 | arch/m68k/atari/atafb.c | int bpp=var->bits_per_pixel; |
var | 574 | arch/m68k/atari/atafb.c | else if (var->xres > sttt_xres || var->yres > st_yres) { |
var | 584 | arch/m68k/atari/atafb.c | if (var->sync & FB_SYNC_EXT) |
var | 589 | arch/m68k/atari/atafb.c | if ((var->yoffset + yres)*linelen > screen_len && screen_len) |
var | 591 | arch/m68k/atari/atafb.c | par->screen_base=screen_base+ var->yoffset*linelen; |
var | 595 | arch/m68k/atari/atafb.c | static int tt_encode_var( struct fb_var_screeninfo *var, |
var | 599 | arch/m68k/atari/atafb.c | var->red.offset=0; |
var | 600 | arch/m68k/atari/atafb.c | var->red.length=4; |
var | 601 | arch/m68k/atari/atafb.c | var->red.msb_right=0; |
var | 602 | arch/m68k/atari/atafb.c | var->grayscale=0; |
var | 604 | arch/m68k/atari/atafb.c | var->pixclock=31041; |
var | 605 | arch/m68k/atari/atafb.c | var->left_margin=120; /* these may be incorrect */ |
var | 606 | arch/m68k/atari/atafb.c | var->right_margin=100; |
var | 607 | arch/m68k/atari/atafb.c | var->upper_margin=8; |
var | 608 | arch/m68k/atari/atafb.c | var->lower_margin=16; |
var | 609 | arch/m68k/atari/atafb.c | var->hsync_len=140; |
var | 610 | arch/m68k/atari/atafb.c | var->vsync_len=30; |
var | 612 | arch/m68k/atari/atafb.c | var->height=-1; |
var | 613 | arch/m68k/atari/atafb.c | var->width=-1; |
var | 616 | arch/m68k/atari/atafb.c | var->sync=0; |
var | 618 | arch/m68k/atari/atafb.c | var->sync=FB_SYNC_EXT; |
var | 622 | arch/m68k/atari/atafb.c | var->xres=sttt_xres/2; |
var | 623 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual/2; |
var | 624 | arch/m68k/atari/atafb.c | var->yres=st_yres/2; |
var | 625 | arch/m68k/atari/atafb.c | var->bits_per_pixel=4; |
var | 628 | arch/m68k/atari/atafb.c | var->xres=sttt_xres; |
var | 629 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual; |
var | 630 | arch/m68k/atari/atafb.c | var->yres=st_yres/2; |
var | 631 | arch/m68k/atari/atafb.c | var->bits_per_pixel=2; |
var | 634 | arch/m68k/atari/atafb.c | var->xres=sttt_xres; |
var | 635 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual; |
var | 636 | arch/m68k/atari/atafb.c | var->yres=st_yres; |
var | 637 | arch/m68k/atari/atafb.c | var->bits_per_pixel=1; |
var | 640 | arch/m68k/atari/atafb.c | var->xres=sttt_xres/2; |
var | 641 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual/2; |
var | 642 | arch/m68k/atari/atafb.c | var->yres=tt_yres; |
var | 643 | arch/m68k/atari/atafb.c | var->bits_per_pixel=8; |
var | 646 | arch/m68k/atari/atafb.c | var->xres=sttt_xres; |
var | 647 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual; |
var | 648 | arch/m68k/atari/atafb.c | var->yres=tt_yres; |
var | 649 | arch/m68k/atari/atafb.c | var->bits_per_pixel=4; |
var | 652 | arch/m68k/atari/atafb.c | var->red.length=0; |
var | 653 | arch/m68k/atari/atafb.c | var->xres=sttt_xres*2; |
var | 654 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual*2; |
var | 655 | arch/m68k/atari/atafb.c | var->yres=tt_yres*2; |
var | 656 | arch/m68k/atari/atafb.c | var->bits_per_pixel=1; |
var | 659 | arch/m68k/atari/atafb.c | var->blue=var->green=var->red; |
var | 660 | arch/m68k/atari/atafb.c | var->transp.offset=0; |
var | 661 | arch/m68k/atari/atafb.c | var->transp.length=0; |
var | 662 | arch/m68k/atari/atafb.c | var->transp.msb_right=0; |
var | 663 | arch/m68k/atari/atafb.c | linelen=var->xres_virtual * var->bits_per_pixel / 8; |
var | 665 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres; |
var | 667 | arch/m68k/atari/atafb.c | var->yres_virtual=screen_len/linelen; |
var | 670 | arch/m68k/atari/atafb.c | var->yres_virtual = 2 * var->yres; |
var | 672 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres+hwscroll * 16; |
var | 674 | arch/m68k/atari/atafb.c | var->xoffset=0; |
var | 676 | arch/m68k/atari/atafb.c | var->yoffset=(par->screen_base - screen_base)/linelen; |
var | 678 | arch/m68k/atari/atafb.c | var->yoffset=0; |
var | 679 | arch/m68k/atari/atafb.c | var->nonstd=0; |
var | 680 | arch/m68k/atari/atafb.c | var->activate=0; |
var | 681 | arch/m68k/atari/atafb.c | var->vmode=FB_VMODE_NONINTERLACED; |
var | 682 | arch/m68k/atari/atafb.c | for (i=0; i<arraysize(var->reserved); i++) |
var | 683 | arch/m68k/atari/atafb.c | var->reserved[i]=0; |
var | 841 | arch/m68k/atari/atafb.c | static int falcon_decode_var( struct fb_var_screeninfo *var, |
var | 845 | arch/m68k/atari/atafb.c | int bpp = var->bits_per_pixel; |
var | 846 | arch/m68k/atari/atafb.c | int xres = var->xres; |
var | 847 | arch/m68k/atari/atafb.c | int yres = var->yres; |
var | 848 | arch/m68k/atari/atafb.c | int xres_virtual = var->xres_virtual; |
var | 849 | arch/m68k/atari/atafb.c | int yres_virtual = var->yres_virtual; |
var | 922 | arch/m68k/atari/atafb.c | var->xres > myvar->xres || |
var | 923 | arch/m68k/atari/atafb.c | var->yres > myvar->yres) |
var | 982 | arch/m68k/atari/atafb.c | if (var->pixclock == 0) |
var | 1040 | arch/m68k/atari/atafb.c | if (f25.t*i<=var->pixclock && pcl<f25.t*i) { |
var | 1043 | arch/m68k/atari/atafb.c | if (f32.t*i<=var->pixclock && pcl<f32.t*i) { |
var | 1046 | arch/m68k/atari/atafb.c | if (fext.t && fext.t*i<=var->pixclock && pcl<fext.t*i) { |
var | 1055 | arch/m68k/atari/atafb.c | if (var->pixclock == f25.t || var->pixclock == 2*f25.t) |
var | 1057 | arch/m68k/atari/atafb.c | else if (var->pixclock == f32.t || var->pixclock == 2*f32.t) |
var | 1059 | arch/m68k/atari/atafb.c | else if ((var->pixclock == fext.t || var->pixclock == 2*fext.t) && fext.t) { |
var | 1064 | arch/m68k/atari/atafb.c | plen = var->pixclock / pclock->t; |
var | 1067 | arch/m68k/atari/atafb.c | left_margin = var->left_margin; |
var | 1068 | arch/m68k/atari/atafb.c | right_margin = var->right_margin; |
var | 1069 | arch/m68k/atari/atafb.c | hsync_len = var->hsync_len; |
var | 1070 | arch/m68k/atari/atafb.c | upper_margin = var->upper_margin; |
var | 1071 | arch/m68k/atari/atafb.c | lower_margin = var->lower_margin; |
var | 1072 | arch/m68k/atari/atafb.c | vsync_len = var->vsync_len; |
var | 1073 | arch/m68k/atari/atafb.c | if (var->vmode & FB_VMODE_INTERLACED) { |
var | 1105 | arch/m68k/atari/atafb.c | if (var->sync & FB_SYNC_HOR_HIGH_ACT) |
var | 1107 | arch/m68k/atari/atafb.c | if (var->sync & FB_SYNC_VERT_HIGH_ACT) |
var | 1265 | arch/m68k/atari/atafb.c | if ((var->yoffset + yres)*linelen > screen_len && screen_len) |
var | 1267 | arch/m68k/atari/atafb.c | if (var->yres_virtual * linelen > screen_len && screen_len) |
var | 1269 | arch/m68k/atari/atafb.c | if (var->yres * linelen > screen_len && screen_len) |
var | 1272 | arch/m68k/atari/atafb.c | par->screen_base = screen_base + var->yoffset * linelen; |
var | 1278 | arch/m68k/atari/atafb.c | static int falcon_encode_var( struct fb_var_screeninfo *var, |
var | 1288 | arch/m68k/atari/atafb.c | var->pixclock = hw->sync & 0x1 ? fext.t : |
var | 1291 | arch/m68k/atari/atafb.c | var->height=-1; |
var | 1292 | arch/m68k/atari/atafb.c | var->width=-1; |
var | 1294 | arch/m68k/atari/atafb.c | var->sync=0; |
var | 1296 | arch/m68k/atari/atafb.c | var->sync |= FB_SYNC_HOR_HIGH_ACT; |
var | 1298 | arch/m68k/atari/atafb.c | var->sync |= FB_SYNC_VERT_HIGH_ACT; |
var | 1300 | arch/m68k/atari/atafb.c | var->vmode = FB_VMODE_NONINTERLACED; |
var | 1302 | arch/m68k/atari/atafb.c | var->vmode |= FB_VMODE_INTERLACED; |
var | 1304 | arch/m68k/atari/atafb.c | var->vmode |= FB_VMODE_DOUBLE; |
var | 1311 | arch/m68k/atari/atafb.c | var->yres = hw->vde - hw->vdb; |
var | 1312 | arch/m68k/atari/atafb.c | if (!(var->vmode & FB_VMODE_INTERLACED)) |
var | 1313 | arch/m68k/atari/atafb.c | var->yres >>= 1; |
var | 1314 | arch/m68k/atari/atafb.c | if (var->vmode & FB_VMODE_DOUBLE) |
var | 1315 | arch/m68k/atari/atafb.c | var->yres >>= 1; |
var | 1325 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 1; |
var | 1327 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 16; |
var | 1329 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 8; |
var | 1331 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 4; |
var | 1333 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 2; |
var | 1335 | arch/m68k/atari/atafb.c | var->bits_per_pixel = 1; |
var | 1337 | arch/m68k/atari/atafb.c | var->xres = hw->line_width * 16 / var->bits_per_pixel; |
var | 1338 | arch/m68k/atari/atafb.c | var->xres_virtual = var->xres + hw->line_offset * 16 / var->bits_per_pixel; |
var | 1340 | arch/m68k/atari/atafb.c | var->xres_virtual += 16; |
var | 1342 | arch/m68k/atari/atafb.c | if (var->bits_per_pixel == 16) { |
var | 1343 | arch/m68k/atari/atafb.c | var->red.offset=11; |
var | 1344 | arch/m68k/atari/atafb.c | var->red.length=5; |
var | 1345 | arch/m68k/atari/atafb.c | var->red.msb_right=0; |
var | 1346 | arch/m68k/atari/atafb.c | var->green.offset=5; |
var | 1347 | arch/m68k/atari/atafb.c | var->green.length=6; |
var | 1348 | arch/m68k/atari/atafb.c | var->green.msb_right=0; |
var | 1349 | arch/m68k/atari/atafb.c | var->blue.offset=0; |
var | 1350 | arch/m68k/atari/atafb.c | var->blue.length=5; |
var | 1351 | arch/m68k/atari/atafb.c | var->blue.msb_right=0; |
var | 1354 | arch/m68k/atari/atafb.c | var->red.offset=0; |
var | 1355 | arch/m68k/atari/atafb.c | var->red.length = hw->ste_mode ? 4 : 6; |
var | 1356 | arch/m68k/atari/atafb.c | var->red.msb_right=0; |
var | 1357 | arch/m68k/atari/atafb.c | var->grayscale=0; |
var | 1358 | arch/m68k/atari/atafb.c | var->blue=var->green=var->red; |
var | 1360 | arch/m68k/atari/atafb.c | var->transp.offset=0; |
var | 1361 | arch/m68k/atari/atafb.c | var->transp.length=0; |
var | 1362 | arch/m68k/atari/atafb.c | var->transp.msb_right=0; |
var | 1364 | arch/m68k/atari/atafb.c | linelen = var->xres_virtual * var->bits_per_pixel / 8; |
var | 1367 | arch/m68k/atari/atafb.c | var->yres_virtual = par->vyres; |
var | 1369 | arch/m68k/atari/atafb.c | var->yres_virtual=screen_len/linelen; |
var | 1372 | arch/m68k/atari/atafb.c | var->yres_virtual = 2 * var->yres; |
var | 1374 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres+hwscroll * 16; |
var | 1376 | arch/m68k/atari/atafb.c | var->xoffset=0; /* TODO change this */ |
var | 1387 | arch/m68k/atari/atafb.c | hde_off = ((128 / var->bits_per_pixel + 2) * plen); |
var | 1389 | arch/m68k/atari/atafb.c | hdb_off = (64 + base_off + (128 / var->bits_per_pixel + 2) * plen) |
var | 1392 | arch/m68k/atari/atafb.c | hdb_off = (base_off + (128 / var->bits_per_pixel + 18) * plen) |
var | 1397 | arch/m68k/atari/atafb.c | var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - |
var | 1400 | arch/m68k/atari/atafb.c | var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; |
var | 1403 | arch/m68k/atari/atafb.c | var->right_margin = prescale * (hw->hht + 2 - hw->hbb); |
var | 1404 | arch/m68k/atari/atafb.c | var->hsync_len = prescale * (hw->hht + 2 - hw->hss); |
var | 1407 | arch/m68k/atari/atafb.c | var->upper_margin = hw->vdb / 2 ; /* round down to full lines */ |
var | 1408 | arch/m68k/atari/atafb.c | var->lower_margin = (hw->vft+1 - hw->vde + 1) / 2; /* round up */ |
var | 1409 | arch/m68k/atari/atafb.c | var->vsync_len = (hw->vft+1 - hw->vss + 1) / 2; /* round up */ |
var | 1410 | arch/m68k/atari/atafb.c | if (var->vmode & FB_VMODE_INTERLACED) { |
var | 1411 | arch/m68k/atari/atafb.c | var->upper_margin *= 2; |
var | 1412 | arch/m68k/atari/atafb.c | var->lower_margin *= 2; |
var | 1413 | arch/m68k/atari/atafb.c | var->vsync_len *= 2; |
var | 1416 | arch/m68k/atari/atafb.c | var->pixclock *= plen; |
var | 1417 | arch/m68k/atari/atafb.c | var->left_margin /= plen; |
var | 1418 | arch/m68k/atari/atafb.c | var->right_margin /= plen; |
var | 1419 | arch/m68k/atari/atafb.c | var->hsync_len /= plen; |
var | 1421 | arch/m68k/atari/atafb.c | var->right_margin -= var->hsync_len; |
var | 1422 | arch/m68k/atari/atafb.c | var->lower_margin -= var->vsync_len; |
var | 1425 | arch/m68k/atari/atafb.c | var->yoffset=(par->screen_base - screen_base)/linelen; |
var | 1427 | arch/m68k/atari/atafb.c | var->yoffset=0; |
var | 1428 | arch/m68k/atari/atafb.c | var->nonstd=0; /* what is this for? */ |
var | 1429 | arch/m68k/atari/atafb.c | var->activate=0; |
var | 1430 | arch/m68k/atari/atafb.c | for (i=0; i<arraysize(var->reserved); i++) |
var | 1431 | arch/m68k/atari/atafb.c | var->reserved[i]=0; |
var | 1562 | arch/m68k/atari/atafb.c | static int falcon_pan_display( struct fb_var_screeninfo *var, |
var | 1567 | arch/m68k/atari/atafb.c | if (disp[currcon].var.bits_per_pixel == 1) |
var | 1568 | arch/m68k/atari/atafb.c | var->xoffset = up(var->xoffset, 32); |
var | 1569 | arch/m68k/atari/atafb.c | par->hw.falcon.xoffset = var->xoffset & 15; |
var | 1570 | arch/m68k/atari/atafb.c | par->hw.falcon.line_offset = disp[currcon].var.bits_per_pixel * |
var | 1571 | arch/m68k/atari/atafb.c | (disp[currcon].var.xres_virtual - disp[currcon].var.xres) / 16; |
var | 1573 | arch/m68k/atari/atafb.c | par->hw.falcon.line_offset -= disp[currcon].var.bits_per_pixel; |
var | 1574 | arch/m68k/atari/atafb.c | xoffset = var->xoffset - par->hw.falcon.xoffset; |
var | 1577 | arch/m68k/atari/atafb.c | = screen_base + (var->yoffset * disp[currcon].var.xres_virtual + |
var | 1578 | arch/m68k/atari/atafb.c | xoffset) * disp[currcon].var.bits_per_pixel / 8; |
var | 1726 | arch/m68k/atari/atafb.c | static int stste_decode_var( struct fb_var_screeninfo *var, |
var | 1729 | arch/m68k/atari/atafb.c | int xres=var->xres; |
var | 1730 | arch/m68k/atari/atafb.c | int yres=var->yres; |
var | 1731 | arch/m68k/atari/atafb.c | int bpp=var->bits_per_pixel; |
var | 1763 | arch/m68k/atari/atafb.c | if (var->sync & FB_SYNC_EXT) |
var | 1768 | arch/m68k/atari/atafb.c | if ((var->yoffset + yres)*linelen > screen_len && screen_len) |
var | 1770 | arch/m68k/atari/atafb.c | par->screen_base=screen_base+ var->yoffset*linelen; |
var | 1774 | arch/m68k/atari/atafb.c | static int stste_encode_var( struct fb_var_screeninfo *var, |
var | 1778 | arch/m68k/atari/atafb.c | var->red.offset=0; |
var | 1779 | arch/m68k/atari/atafb.c | var->red.length = ATARIHW_PRESENT(EXTD_SHIFTER) ? 4 : 3; |
var | 1780 | arch/m68k/atari/atafb.c | var->red.msb_right=0; |
var | 1781 | arch/m68k/atari/atafb.c | var->grayscale=0; |
var | 1783 | arch/m68k/atari/atafb.c | var->pixclock=31041; |
var | 1784 | arch/m68k/atari/atafb.c | var->left_margin=120; /* these are incorrect */ |
var | 1785 | arch/m68k/atari/atafb.c | var->right_margin=100; |
var | 1786 | arch/m68k/atari/atafb.c | var->upper_margin=8; |
var | 1787 | arch/m68k/atari/atafb.c | var->lower_margin=16; |
var | 1788 | arch/m68k/atari/atafb.c | var->hsync_len=140; |
var | 1789 | arch/m68k/atari/atafb.c | var->vsync_len=30; |
var | 1791 | arch/m68k/atari/atafb.c | var->height=-1; |
var | 1792 | arch/m68k/atari/atafb.c | var->width=-1; |
var | 1795 | arch/m68k/atari/atafb.c | var->sync=0; |
var | 1797 | arch/m68k/atari/atafb.c | var->sync=FB_SYNC_EXT; |
var | 1801 | arch/m68k/atari/atafb.c | var->xres=sttt_xres/2; |
var | 1802 | arch/m68k/atari/atafb.c | var->yres=st_yres/2; |
var | 1803 | arch/m68k/atari/atafb.c | var->bits_per_pixel=4; |
var | 1806 | arch/m68k/atari/atafb.c | var->xres=sttt_xres; |
var | 1807 | arch/m68k/atari/atafb.c | var->yres=st_yres/2; |
var | 1808 | arch/m68k/atari/atafb.c | var->bits_per_pixel=2; |
var | 1811 | arch/m68k/atari/atafb.c | var->xres=sttt_xres; |
var | 1812 | arch/m68k/atari/atafb.c | var->yres=st_yres; |
var | 1813 | arch/m68k/atari/atafb.c | var->bits_per_pixel=1; |
var | 1816 | arch/m68k/atari/atafb.c | var->blue=var->green=var->red; |
var | 1817 | arch/m68k/atari/atafb.c | var->transp.offset=0; |
var | 1818 | arch/m68k/atari/atafb.c | var->transp.length=0; |
var | 1819 | arch/m68k/atari/atafb.c | var->transp.msb_right=0; |
var | 1820 | arch/m68k/atari/atafb.c | var->xres_virtual=sttt_xres_virtual; |
var | 1821 | arch/m68k/atari/atafb.c | linelen=var->xres_virtual * var->bits_per_pixel / 8; |
var | 1825 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres; |
var | 1827 | arch/m68k/atari/atafb.c | var->yres_virtual=screen_len/linelen; |
var | 1830 | arch/m68k/atari/atafb.c | var->yres_virtual = 2 * var->yres; |
var | 1832 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres+hwscroll * 16; |
var | 1834 | arch/m68k/atari/atafb.c | var->xoffset=0; |
var | 1836 | arch/m68k/atari/atafb.c | var->yoffset=(par->screen_base - screen_base)/linelen; |
var | 1838 | arch/m68k/atari/atafb.c | var->yoffset=0; |
var | 1839 | arch/m68k/atari/atafb.c | var->nonstd=0; |
var | 1840 | arch/m68k/atari/atafb.c | var->activate=0; |
var | 1841 | arch/m68k/atari/atafb.c | var->vmode=FB_VMODE_NONINTERLACED; |
var | 1842 | arch/m68k/atari/atafb.c | for (i=0; i<arraysize(var->reserved); i++) |
var | 1843 | arch/m68k/atari/atafb.c | var->reserved[i]=0; |
var | 2058 | arch/m68k/atari/atafb.c | static int ext_decode_var( struct fb_var_screeninfo *var, |
var | 2063 | arch/m68k/atari/atafb.c | if (var->bits_per_pixel > myvar->bits_per_pixel || |
var | 2064 | arch/m68k/atari/atafb.c | var->xres > myvar->xres || |
var | 2065 | arch/m68k/atari/atafb.c | var->yres > myvar->yres || |
var | 2066 | arch/m68k/atari/atafb.c | var->xoffset > 0 || |
var | 2067 | arch/m68k/atari/atafb.c | var->yoffset > 0) |
var | 2073 | arch/m68k/atari/atafb.c | static int ext_encode_var( struct fb_var_screeninfo *var, |
var | 2078 | arch/m68k/atari/atafb.c | var->red.offset=0; |
var | 2079 | arch/m68k/atari/atafb.c | var->red.length=(external_pmode == -1) ? external_depth/3 : |
var | 2081 | arch/m68k/atari/atafb.c | var->red.msb_right=0; |
var | 2082 | arch/m68k/atari/atafb.c | var->grayscale=0; |
var | 2084 | arch/m68k/atari/atafb.c | var->pixclock=31041; |
var | 2085 | arch/m68k/atari/atafb.c | var->left_margin=120; /* these are surely incorrect */ |
var | 2086 | arch/m68k/atari/atafb.c | var->right_margin=100; |
var | 2087 | arch/m68k/atari/atafb.c | var->upper_margin=8; |
var | 2088 | arch/m68k/atari/atafb.c | var->lower_margin=16; |
var | 2089 | arch/m68k/atari/atafb.c | var->hsync_len=140; |
var | 2090 | arch/m68k/atari/atafb.c | var->vsync_len=30; |
var | 2092 | arch/m68k/atari/atafb.c | var->height=-1; |
var | 2093 | arch/m68k/atari/atafb.c | var->width=-1; |
var | 2095 | arch/m68k/atari/atafb.c | var->sync=0; |
var | 2097 | arch/m68k/atari/atafb.c | var->xres = external_xres; |
var | 2098 | arch/m68k/atari/atafb.c | var->yres = external_yres; |
var | 2099 | arch/m68k/atari/atafb.c | var->bits_per_pixel = external_depth; |
var | 2101 | arch/m68k/atari/atafb.c | var->blue=var->green=var->red; |
var | 2102 | arch/m68k/atari/atafb.c | var->transp.offset=0; |
var | 2103 | arch/m68k/atari/atafb.c | var->transp.length=0; |
var | 2104 | arch/m68k/atari/atafb.c | var->transp.msb_right=0; |
var | 2105 | arch/m68k/atari/atafb.c | var->xres_virtual=var->xres; |
var | 2106 | arch/m68k/atari/atafb.c | var->yres_virtual=var->yres; |
var | 2107 | arch/m68k/atari/atafb.c | var->xoffset=0; |
var | 2108 | arch/m68k/atari/atafb.c | var->yoffset=0; |
var | 2109 | arch/m68k/atari/atafb.c | var->nonstd=0; |
var | 2110 | arch/m68k/atari/atafb.c | var->activate=0; |
var | 2111 | arch/m68k/atari/atafb.c | var->vmode=FB_VMODE_NONINTERLACED; |
var | 2112 | arch/m68k/atari/atafb.c | for (i=0; i<arraysize(var->reserved); i++) |
var | 2113 | arch/m68k/atari/atafb.c | var->reserved[i]=0; |
var | 2234 | arch/m68k/atari/atafb.c | static int pan_display( struct fb_var_screeninfo *var, |
var | 2237 | arch/m68k/atari/atafb.c | if (var->xoffset) |
var | 2240 | arch/m68k/atari/atafb.c | = screen_base + (var->yoffset * disp[currcon].var.xres_virtual |
var | 2241 | arch/m68k/atari/atafb.c | * disp[currcon].var.bits_per_pixel / 8); |
var | 2315 | arch/m68k/atari/atafb.c | int off=disp[con].var.yoffset*disp[con].var.xres_virtual* |
var | 2316 | arch/m68k/atari/atafb.c | disp[con].var.bits_per_pixel>>3; |
var | 2326 | arch/m68k/atari/atafb.c | do_fb_set_var(struct fb_var_screeninfo *var, int isactive) |
var | 2330 | arch/m68k/atari/atafb.c | if ((err=fbhw->decode_var(var, &par))) |
var | 2332 | arch/m68k/atari/atafb.c | activate=var->activate; |
var | 2333 | arch/m68k/atari/atafb.c | if (((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) && isactive) |
var | 2335 | arch/m68k/atari/atafb.c | fbhw->encode_var(var, &par); |
var | 2336 | arch/m68k/atari/atafb.c | var->activate=activate; |
var | 2388 | arch/m68k/atari/atafb.c | do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, int kspc) |
var | 2404 | arch/m68k/atari/atafb.c | hred=CNVT_FROMHW(hred,var->red.length); |
var | 2405 | arch/m68k/atari/atafb.c | hgreen=CNVT_FROMHW(hgreen,var->green.length); |
var | 2406 | arch/m68k/atari/atafb.c | hblue=CNVT_FROMHW(hblue,var->blue.length); |
var | 2407 | arch/m68k/atari/atafb.c | htransp=CNVT_FROMHW(htransp,var->transp.length); |
var | 2429 | arch/m68k/atari/atafb.c | do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, int kspc) |
var | 2456 | arch/m68k/atari/atafb.c | hred=CNVT_TOHW(hred,var->red.length); |
var | 2457 | arch/m68k/atari/atafb.c | hgreen=CNVT_TOHW(hgreen,var->green.length); |
var | 2458 | arch/m68k/atari/atafb.c | hblue=CNVT_TOHW(hblue,var->blue.length); |
var | 2459 | arch/m68k/atari/atafb.c | htransp=CNVT_TOHW(htransp,var->transp.length); |
var | 2476 | arch/m68k/atari/atafb.c | do_fb_set_cmap(&disp[con].cmap, &(disp[con].var), 1); |
var | 2479 | arch/m68k/atari/atafb.c | disp[con].var.bits_per_pixel), &(disp[con].var), 1); |
var | 2564 | arch/m68k/atari/atafb.c | fbhw->decode_var(&disp[con].var,&par); |
var | 2569 | arch/m68k/atari/atafb.c | atari_fb_get_var(struct fb_var_screeninfo *var, int con) |
var | 2574 | arch/m68k/atari/atafb.c | fbhw->encode_var(var, &par); |
var | 2577 | arch/m68k/atari/atafb.c | *var=disp[con].var; |
var | 2605 | arch/m68k/atari/atafb.c | atari_fb_set_var(struct fb_var_screeninfo *var, int con) |
var | 2608 | arch/m68k/atari/atafb.c | if ((err=do_fb_set_var(var, con==currcon))) |
var | 2610 | arch/m68k/atari/atafb.c | if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) { |
var | 2611 | arch/m68k/atari/atafb.c | oldxres=disp[con].var.xres; |
var | 2612 | arch/m68k/atari/atafb.c | oldyres=disp[con].var.yres; |
var | 2613 | arch/m68k/atari/atafb.c | oldxres_virtual=disp[con].var.xres_virtual; |
var | 2614 | arch/m68k/atari/atafb.c | oldbpp=disp[con].var.bits_per_pixel; |
var | 2615 | arch/m68k/atari/atafb.c | oldyoffset=disp[con].var.yoffset; |
var | 2616 | arch/m68k/atari/atafb.c | disp[con].var=*var; |
var | 2617 | arch/m68k/atari/atafb.c | if (oldxres != var->xres || oldyres != var->yres |
var | 2618 | arch/m68k/atari/atafb.c | || oldxres_virtual != var->xres_virtual |
var | 2619 | arch/m68k/atari/atafb.c | || oldbpp != var->bits_per_pixel |
var | 2620 | arch/m68k/atari/atafb.c | || oldyoffset != var->yoffset) { |
var | 2627 | arch/m68k/atari/atafb.c | var->activate=0; |
var | 2637 | arch/m68k/atari/atafb.c | return do_fb_get_cmap(cmap, &(disp[con].var), kspc); |
var | 2643 | arch/m68k/atari/atafb.c | disp[con].var.bits_per_pixel), cmap, kspc ? 0 : 2); |
var | 2653 | arch/m68k/atari/atafb.c | 1 << disp[con].var.bits_per_pixel, 0))) |
var | 2657 | arch/m68k/atari/atafb.c | return do_fb_set_cmap(cmap, &(disp[con].var), kspc); |
var | 2664 | arch/m68k/atari/atafb.c | atari_fb_pan_display(struct fb_var_screeninfo *var, int con) |
var | 2666 | arch/m68k/atari/atafb.c | int xoffset = var->xoffset; |
var | 2667 | arch/m68k/atari/atafb.c | int yoffset = var->yoffset; |
var | 2670 | arch/m68k/atari/atafb.c | if ( xoffset < 0 || xoffset + disp[con].var.xres > disp[con].var.xres_virtual |
var | 2671 | arch/m68k/atari/atafb.c | || yoffset < 0 || yoffset + disp[con].var.yres > disp[con].var.yres_virtual) |
var | 2676 | arch/m68k/atari/atafb.c | if ((err = fbhw->pan_display(var, ¤t_par))) |
var | 2682 | arch/m68k/atari/atafb.c | disp[con].var.xoffset = var->xoffset; |
var | 2683 | arch/m68k/atari/atafb.c | disp[con].var.yoffset = var->yoffset; |
var | 2727 | arch/m68k/atari/atafb.c | struct fb_var_screeninfo var; |
var | 2732 | arch/m68k/atari/atafb.c | var=atari_fb_predefined[default_par-1]; |
var | 2733 | arch/m68k/atari/atafb.c | var.activate = FB_ACTIVATE_TEST; |
var | 2734 | arch/m68k/atari/atafb.c | if (do_fb_set_var(&var,1)) |
var | 2739 | arch/m68k/atari/atafb.c | var=atari_fb_predefined[detected_mode-1]; /* autodetect */ |
var | 2740 | arch/m68k/atari/atafb.c | var.activate = FB_ACTIVATE_TEST; |
var | 2741 | arch/m68k/atari/atafb.c | if (!do_fb_set_var(&var,1)) |
var | 2752 | arch/m68k/atari/atafb.c | var=atari_fb_predefined[default_par-1]; |
var | 2753 | arch/m68k/atari/atafb.c | var.activate = FB_ACTIVATE_TEST; |
var | 2754 | arch/m68k/atari/atafb.c | if (! do_fb_set_var(&var,1)) |
var | 2758 | arch/m68k/atari/atafb.c | min_mem=var.xres_virtual * var.yres_virtual * var.bits_per_pixel/8; |
var | 2768 | arch/m68k/atari/atafb.c | do_fb_get_cmap(&disp[currcon].cmap, &(disp[currcon].var), 1); |
var | 2769 | arch/m68k/atari/atafb.c | do_fb_set_var(&disp[con].var,1); |
var | 2791 | arch/m68k/atari/atafb.c | do_fb_set_cmap(&cmap, &(disp[currcon].var), 1); |
var | 2804 | arch/m68k/atari/atafb.c | struct fb_var_screeninfo *var; |
var | 2891 | arch/m68k/atari/atafb.c | var=atari_fb_predefined+default_par-1; |
var | 2892 | arch/m68k/atari/atafb.c | do_fb_set_var(var,1); |
var | 2895 | arch/m68k/atari/atafb.c | atari_fb_get_var(&disp[0].var, -1); |
var | 2898 | arch/m68k/atari/atafb.c | disp[0].var.xres, disp[0].var.yres, disp[0].var.bits_per_pixel ); |
var | 15 | arch/m68k/atari/atafb.h | struct fb_var_screeninfo var; /* variable infos */ |
var | 572 | arch/m68k/console/fbcon.c | p->var.xoffset = p->var.yoffset = p->yscroll = 0; /* reset wrap/pan */ |
var | 577 | arch/m68k/console/fbcon.c | getdefaultfont(p->var.xres, p->var.yres, NULL, &p->fontwidth, |
var | 582 | arch/m68k/console/fbcon.c | if (divides(p->ywrapstep, p->fontheight) && divides(p->fontheight, p->var.yres_virtual)) |
var | 585 | arch/m68k/console/fbcon.c | p->var.yres_virtual >= p->var.yres+p->fontheight) |
var | 590 | arch/m68k/console/fbcon.c | conp->vc_cols = p->var.xres/p->fontwidth; |
var | 591 | arch/m68k/console/fbcon.c | conp->vc_rows = p->var.yres/p->fontheight; |
var | 592 | arch/m68k/console/fbcon.c | p->vrows = p->var.yres_virtual/p->fontheight; |
var | 593 | arch/m68k/console/fbcon.c | conp->vc_can_do_color = p->var.bits_per_pixel != 1; |
var | 596 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 1) { |
var | 600 | arch/m68k/console/fbcon.c | p->next_line = p->var.xres_virtual>>3; |
var | 607 | arch/m68k/console/fbcon.c | p->next_line = p->var.xres_virtual*p->var.bits_per_pixel>>3; |
var | 610 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 2) |
var | 615 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 4) |
var | 620 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 8) |
var | 630 | arch/m68k/console/fbcon.c | p->next_line = p->line_length*p->var.bits_per_pixel; |
var | 634 | arch/m68k/console/fbcon.c | p->next_plane = p->type_aux/p->var.bits_per_pixel; |
var | 644 | arch/m68k/console/fbcon.c | p->next_line = p->var.xres_virtual>>3; |
var | 645 | arch/m68k/console/fbcon.c | p->next_plane = p->var.yres_virtual*p->next_line; |
var | 651 | arch/m68k/console/fbcon.c | p->next_line = p->var.xres_virtual*p->var.bits_per_pixel>>3; |
var | 654 | arch/m68k/console/fbcon.c | if (p->var.accel == FB_ACCEL_CYBERVISION) |
var | 659 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 8) |
var | 664 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 16) |
var | 669 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 24) |
var | 674 | arch/m68k/console/fbcon.c | if (p->var.bits_per_pixel == 32) |
var | 689 | arch/m68k/console/fbcon.c | p->next_line = p->var.xres_virtual>>3; |
var | 691 | arch/m68k/console/fbcon.c | p->var.bits_per_pixel = 1; |
var | 699 | arch/m68k/console/fbcon.c | p->fgcol = p->var.bits_per_pixel > 2 ? 7 : (1<<p->var.bits_per_pixel)-1; |
var | 1534 | arch/m68k/console/fbcon.c | p->var.xoffset = 0; |
var | 1535 | arch/m68k/console/fbcon.c | p->var.yoffset = p->yscroll*p->fontheight; |
var | 1536 | arch/m68k/console/fbcon.c | p->var.vmode |= FB_VMODE_YWRAP; |
var | 1547 | arch/m68k/console/fbcon.c | p->var.xoffset = 0; |
var | 1548 | arch/m68k/console/fbcon.c | p->var.yoffset = p->yscroll*p->fontheight; |
var | 1549 | arch/m68k/console/fbcon.c | p->var.vmode &= ~FB_VMODE_YWRAP; |
var | 1572 | arch/m68k/console/fbcon.c | p->var.xoffset = 0; |
var | 1573 | arch/m68k/console/fbcon.c | p->var.yoffset = p->yscroll*p->fontheight; |
var | 1574 | arch/m68k/console/fbcon.c | p->var.vmode |= FB_VMODE_YWRAP; |
var | 1585 | arch/m68k/console/fbcon.c | p->var.xoffset = 0; |
var | 1586 | arch/m68k/console/fbcon.c | p->var.yoffset = p->yscroll*p->fontheight; |
var | 1587 | arch/m68k/console/fbcon.c | p->var.vmode &= ~FB_VMODE_YWRAP; |
var | 1697 | arch/m68k/console/fbcon.c | mymemset(p->screen_base, p->var.xres_virtual*p->var.yres_virtual* |
var | 1698 | arch/m68k/console/fbcon.c | p->var.bits_per_pixel>>3); |
var | 1700 | arch/m68k/console/fbcon.c | mymemclear(p->screen_base, p->var.xres_virtual*p->var.yres_virtual* |
var | 1701 | arch/m68k/console/fbcon.c | p->var.bits_per_pixel>>3); |
var | 1816 | arch/m68k/console/fbcon.c | p->var.xoffset = p->var.yoffset = p->yscroll = 0; /* reset wrap/pan */ |
var | 1820 | arch/m68k/console/fbcon.c | p->var.yres_virtual >= p->var.yres+p->fontheight) |
var | 1825 | arch/m68k/console/fbcon.c | vc_resize_con( p->var.yres/h, p->var.xres/w, unit ); |
var | 2012 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel*height*p->fontheight; i--;) { |
var | 2020 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel*height*p->fontheight; i--;) { |
var | 2042 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { |
var | 2072 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { |
var | 2129 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { |
var | 2159 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { |
var | 2197 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest0 += p->next_plane) { |
var | 2227 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--;) { |
var | 2235 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--;) { |
var | 2249 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--;) { |
var | 2274 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest0 += p->next_plane) { |
var | 2301 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest0 += p->next_plane) { |
var | 2352 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest1 += p->next_plane) { |
var | 2385 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest1 += p->next_plane) { |
var | 2430 | arch/m68k/console/fbcon.c | for (i = p->var.bits_per_pixel; i--; dest0 += p->next_plane) { |
var | 3909 | drivers/block/floppy.c | int *var; |
var | 3951 | drivers/block/floppy.c | if(config_params[i].var) { |
var | 3953 | drivers/block/floppy.c | *config_params[i].var = param; |
var | 108 | drivers/char/fbmem.c | struct fb_var_screeninfo var; |
var | 123 | drivers/char/fbmem.c | i=fb->fb_get_var(&var, PROC_CONSOLE()); |
var | 125 | drivers/char/fbmem.c | var=registered_fb_var[fbidx][vidx-1]; |
var | 126 | drivers/char/fbmem.c | memcpy_tofs((void *) arg, &var, sizeof(var)); |
var | 132 | drivers/char/fbmem.c | memcpy_fromfs(&var, (void *) arg, sizeof(var)); |
var | 133 | drivers/char/fbmem.c | i=fb->fb_set_var(&var, PROC_CONSOLE()); |
var | 134 | drivers/char/fbmem.c | memcpy_tofs((void *) arg, &var, sizeof(var)); |
var | 138 | drivers/char/fbmem.c | registered_fb_var[fbidx][vidx-1]=var; |
var | 191 | drivers/char/fbmem.c | memcpy_fromfs(&var, (void *) arg, sizeof(var)); |
var | 192 | drivers/char/fbmem.c | i=fb->fb_pan_display(&var, PROC_CONSOLE()); |
var | 193 | drivers/char/fbmem.c | memcpy_tofs((void *) arg, &var, sizeof(var)); |
var | 197 | drivers/char/fbmem.c | registered_fb_var[fbidx][vidx-1]=var; |
var | 486 | drivers/sound/configure.c | char *method, *next, *old, *var, *p; |
var | 504 | drivers/sound/configure.c | var = p; |
var | 513 | drivers/sound/configure.c | if (!bin2hex (old, next, var)) |
var | 521 | drivers/sound/configure.c | if (!hex2hex (old, next, var)) |
var | 161 | include/linux/fb.h | struct fb_var_screeninfo var; /* variable infos. yoffset and vmode */ |
var | 173 | scripts/tkgen.c | void inline global(char *var) |
var | 175 | scripts/tkgen.c | printf("\tglobal %s; vfix %s\n", var, var); |
var | 49 | scripts/tkparse.h | union var variable; |
var | 70 | scripts/tkparse.h | union var depend; |