Lines Matching refs:par
134 static void platinum_set_par(const struct fb_par_platinum *par, struct fb_info_platinum *info);
136 const struct fb_par_platinum *par,
139 struct fb_par_platinum *par,
142 const struct fb_par_platinum *par,
174 struct fb_par_platinum par; in platinum_get_fix() local
177 par = info->default_par; in platinum_get_fix()
179 platinum_var_to_par(&fb_display[con].var, &par, info); in platinum_get_fix()
181 platinum_encode_fix(fix, &par, info); in platinum_get_fix()
230 struct fb_par_platinum par; in platinum_set_var() local
238 if((err = platinum_var_to_par(var, &par, info))) { in platinum_set_var()
243 platinum_par_to_var(var, &par, info); in platinum_set_var()
250 init = platinum_reg_init[par.vmode-1]; in platinum_set_var()
264 platinum_encode_fix(&fix, &par, info); in platinum_set_var()
274 platinum_set_dispsw(display, info, par.cmode, 0); in platinum_set_var()
282 platinum_set_par(&par, info); in platinum_set_var()
335 struct fb_par_platinum par; in platinum_switch() local
342 platinum_var_to_par(&fb_display[con].var, &par, info); in platinum_switch()
343 platinum_set_par(&par, info); in platinum_switch()
344 platinum_set_dispsw(&fb_display[con], info, par.cmode, 0); in platinum_switch()
488 static void platinum_set_par(const struct fb_par_platinum *par, struct fb_info_platinum *info) in platinum_set_par() argument
496 info->current_par = *par; in platinum_set_par()
498 vmode = par->vmode; in platinum_set_par()
499 cmode = par->cmode; in platinum_set_par()
539 display_info.height = par->yres; in platinum_set_par()
540 display_info.width = par->xres; in platinum_set_par()
774 struct fb_par_platinum *par, in platinum_var_to_par() argument
777 if(mac_var_to_vmode(var, &par->vmode, &par->cmode) != 0) { in platinum_var_to_par()
789 if(!platinum_reg_init[par->vmode-1]) { in platinum_var_to_par()
790 printk(KERN_ERR "platinum_var_to_par, vmode %d not valid.\n", par->vmode); in platinum_var_to_par()
794 if (platinum_vram_reqd(info, par->vmode, par->cmode) > info->total_vram) { in platinum_var_to_par()
795 …printk(KERN_ERR "platinum_var_to_par, not enough ram for vmode %d, cmode %d.\n", par->vmode, par->… in platinum_var_to_par()
799 par->xres = vmode_attrs[par->vmode-1].hres; in platinum_var_to_par()
800 par->yres = vmode_attrs[par->vmode-1].vres; in platinum_var_to_par()
801 par->xoffset = 0; in platinum_var_to_par()
802 par->yoffset = 0; in platinum_var_to_par()
803 par->vxres = par->xres; in platinum_var_to_par()
804 par->vyres = par->yres; in platinum_var_to_par()
810 const struct fb_par_platinum *par, in platinum_par_to_var() argument
813 return mac_vmode_to_var(par->vmode, par->cmode, var); in platinum_par_to_var()
817 const struct fb_par_platinum *par, in platinum_encode_fix() argument
822 init = platinum_reg_init[par->vmode-1]; in platinum_encode_fix()
835 fix->visual = (par->cmode == CMODE_8) ? in platinum_encode_fix()
837 fix->line_length = vmode_attrs[par->vmode-1].hres * (1<<par->cmode) + 0x20; in platinum_encode_fix()
838 fixup_pitch(fix->line_length, info, par->cmode); in platinum_encode_fix()