Searched refs:var (Results 276 - 300 of 598) sorted by path

<<11121314151617181920>>

/linux-master/drivers/video/fbdev/aty/
H A Dradeon_pm.c2775 fb_pan_display(info, &info->var);
H A Dradeonfb.h444 static inline int var_to_depth(const struct fb_var_screeninfo *var) argument
446 if (var->bits_per_pixel != 16)
447 return var->bits_per_pixel;
448 return (var->green.length == 5) ? 15 : 16;
/linux-master/drivers/video/fbdev/
H A Dau1100fb.c135 * Set hardware with var settings. This will enable the controller with a specific
147 /* Update var-dependent FB info */
149 if (info->var.bits_per_pixel <= 8) {
151 info->var.red.offset = 0;
152 info->var.red.length = info->var.bits_per_pixel;
153 info->var.red.msb_right = 0;
155 info->var.green.offset = 0;
156 info->var.green.length = info->var
294 au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi) argument
[all...]
H A Dau1200fb.c1006 /* Update var-dependent FB info */
1008 if (fbi->var.bits_per_pixel <= 8) {
1011 fbi->fix.line_length = fbi->var.xres_virtual /
1012 (8/fbi->var.bits_per_pixel);
1016 fbi->fix.line_length = fbi->var.xres_virtual * (fbi->var.bits_per_pixel / 8);
1021 fbi->fix.line_length = fbi->var.xres_virtual / 8;
1024 fbi->screen_size = fbi->fix.line_length * fbi->var.yres_virtual;
1026 print_dbg("bits_per_pixel: %d\n", fbi->var.bits_per_pixel);
1034 * Validate var setting
1036 au1200fb_fb_check_var(struct fb_var_screeninfo *var, struct fb_info *fbi) argument
[all...]
H A Dbroadsheetfb.c784 int xres = par->info->var.xres;
785 int yres = par->info->var.yres;
879 args[3] = cpu_to_le16(par->info->var.xres);
886 buf += y1 * par->info->var.xres;
887 broadsheet_burst_write(par, ((1 + y2 - y1) * par->info->var.xres)/2,
938 u16 yres = info->var.yres;
939 u16 xres = info->var.xres;
1057 info->var = broadsheetfb_var;
H A Dbw2.c236 info->var.xres = info->var.xres_virtual = 1600;
237 info->var.yres = info->var.yres_virtual = 1280;
289 sbusfb_fill_var(&info->var, dp, 1);
291 info->var.xres);
293 info->var.red.length = info->var.green.length =
294 info->var.blue.length = info->var
[all...]
H A Dcarminefb.c129 static int carmine_find_mode(const struct fb_var_screeninfo *var) argument
134 if (car_modes[i].hdp == var->xres &&
135 car_modes[i].vdp == var->yres)
180 static int carmine_check_var(struct fb_var_screeninfo *var, argument
185 ret = carmine_find_mode(var);
189 if (var->grayscale || var->rotate || var->nonstd)
192 var->xres_virtual = var
[all...]
H A Dcg14.c211 static int cg14_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
223 if (var->xoffset || var->yoffset || var->vmode)
290 kmdi.mdi_height = info->var.yres;
291 kmdi.mdi_width = info->var.xres;
475 sbusfb_fill_var(&info->var, dp, 8);
476 info->var.red.length = 8;
477 info->var.green.length = 8;
478 info->var
[all...]
H A Dcg3.c254 static void cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var, argument
267 if (var->xres != ww ||
268 var->yres != hh) {
269 var->xres = var->xres_virtual = ww;
270 var->yres = var->yres_virtual = hh;
363 sbusfb_fill_var(&info->var, dp, 8);
364 info->var.red.length = 8;
365 info->var
[all...]
H A Dcg6.c297 static int cg6_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
306 if (var->xoffset || var->yoffset || var->vmode)
718 sbus_writel(info->var.xres - 1, &fbc->clipmaxx);
719 sbus_writel(info->var.yres - 1, &fbc->clipmaxy);
761 sbusfb_fill_var(&info->var, dp, 8);
762 info->var.red.length = 8;
763 info->var.green.length = 8;
764 info->var
[all...]
H A Dchipsfb.c44 #define read_ind(num, var, ap, dp) do { \
45 outb((num), (ap)); var = inb((dp)); \
50 #define read_xr(num, var) read_ind(num, var, 0x3d6, 0x3d7)
53 #define read_fr(num, var) read_ind(num, var, 0x3d0, 0x3d1)
56 #define read_cr(num, var) read_ind(num, var, 0x3d4, 0x3d5)
59 #define read_gr(num, var) read_ind(num, var,
93 chipsfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
[all...]
H A Dcirrusfb.c376 static int cirrusfb_pan_display(struct fb_var_screeninfo *var,
473 static int cirrusfb_check_pixclock(struct fb_var_screeninfo *var, argument
479 unsigned maxclockidx = var->bits_per_pixel >> 3;
482 freq = PICOS2KHZ(var->pixclock ? : 1);
490 var->pixclock = KHZ2PICOS(maxclock);
492 while ((freq = PICOS2KHZ(var->pixclock)) > maxclock)
493 var->pixclock++;
501 if (var->bits_per_pixel == 8) {
523 var->bits_per_pixel == 16) {
530 static int cirrusfb_check_var(struct fb_var_screeninfo *var, argument
662 struct fb_var_screeninfo *var = &info->var; local
1314 cirrusfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
1980 struct fb_var_screeninfo *var = &info->var; local
[all...]
H A Dclps711x-fb.c50 if (regno >= BIT(info->var.bits_per_pixel))
67 static int clps711x_fb_check_var(struct fb_var_screeninfo *var, argument
72 if (var->bits_per_pixel < 1 ||
73 var->bits_per_pixel > CLPS711X_FB_BPP_MAX)
76 if (!var->pixclock)
79 val = DIV_ROUND_UP(var->xres, 16) - 1;
83 val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128);
88 var
[all...]
H A Dcontrolfb.c203 * Set screen start address according to var offset values
417 * This routine takes a user-supplied var, and picks the best vmode/cmode
421 static int control_var_to_par(struct fb_var_screeninfo *var, argument
432 switch (var->bits_per_pixel) {
478 par->xres = (var->xres + hstep) & ~hstep;
479 par->vxres = (var->xres_virtual + hstep) & ~hstep;
480 par->xoffset = (var->xoffset + hstep) & ~hstep;
485 par->yres = var->yres;
486 par->vyres = var->yres_virtual;
487 par->yoffset = var
558 control_par_to_var(struct fb_par_control *par, struct fb_var_screeninfo *var) argument
630 controlfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) argument
670 controlfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) argument
840 struct fb_var_screeninfo var; local
[all...]
/linux-master/drivers/video/fbdev/core/
H A Dbitblit.c210 unsigned int rw = info->var.xres - (vc->vc_cols*cw);
211 unsigned int bh = info->var.yres - (vc->vc_rows*ch);
212 unsigned int rs = info->var.xres - rw;
213 unsigned int bs = info->var.yres - bh;
220 region.dx = info->var.xoffset + rs;
223 region.height = info->var.yres_virtual;
228 region.dx = info->var.xoffset;
229 region.dy = info->var.yoffset + bs;
381 err = fb_pan_display(info, &ops->var);
382 ops->var
[all...]
H A Dcfbcopyarea.c410 dst_idx += dy*bits_per_line + dx*p->var.bits_per_pixel;
411 src_idx += sy*bits_per_line + sx*p->var.bits_per_pixel;
422 width*p->var.bits_per_pixel, bswapmask);
428 width*p->var.bits_per_pixel, bswapmask);
H A Dcfbfillrect.c283 u32 bpp = p->var.bits_per_pixel;
H A Dcfbimgblt.c83 int i, n, bpp = p->var.bits_per_pixel;
143 u32 shift, color = 0, bpp = p->var.bits_per_pixel;
219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel;
321 u32 bpl = sizeof(u32), bpp = p->var.bits_per_pixel;
H A Dfb_chrdev.c66 struct fb_var_screeninfo var; local
76 var = info->var;
79 ret = copy_to_user(argp, &var, sizeof(var)) ? -EFAULT : 0;
82 if (copy_from_user(&var, argp, sizeof(var)))
85 var.activate &= ~FB_ACTIVATE_KD_TEXT;
88 ret = fbcon_modechange_possible(info, &var);
90 ret = fb_set_var(info, &var);
[all...]
H A Dfb_io_fops.c155 if (info->var.accel_flags)
H A Dfb_logo.c67 redmask = mask[info->var.red.length < 8 ? info->var.red.length : 8];
68 greenmask = mask[info->var.green.length < 8 ? info->var.green.length : 8];
69 bluemask = mask[info->var.blue.length < 8 ? info->var.blue.length : 8];
70 redshift = info->var.red.offset - (8 - info->var.red.length);
71 greenshift = info->var.green.offset - (8 - info->var
[all...]
H A Dfbcon.c182 static void fbcon_set_disp(struct fb_info *info, struct fb_var_screeninfo *var,
284 int depth = fb_get_color_depth(&info->var, &info->fix);
570 if (fb_get_color_depth(&info->var, &info->fix) == 1)
794 fbcon_set_disp(info, &info->var, unit);
878 struct fb_var_screeninfo *var,
881 disp->xres_virtual = var->xres_virtual;
882 disp->yres_virtual = var->yres_virtual;
883 disp->bits_per_pixel = var->bits_per_pixel;
884 disp->grayscale = var->grayscale;
885 disp->nonstd = var
877 var_to_display(struct fbcon_display *disp, struct fb_var_screeninfo *var, struct fb_info *info) argument
901 display_to_var(struct fb_var_screeninfo *var, struct fbcon_display *disp) argument
1331 fbcon_set_disp(struct fb_info *info, struct fb_var_screeninfo *var, int unit) argument
2000 struct fb_var_screeninfo var = info->var; local
2063 struct fb_var_screeninfo var; local
2207 struct fb_var_screeninfo var = info->var; local
2720 fbcon_modechange_possible(struct fb_info *info, struct fb_var_screeninfo *var) argument
3024 struct fb_var_screeninfo var; local
[all...]
H A Dfbcon.h68 struct fb_var_screeninfo var; /* copy of the current fb_var_screeninfo */ member in struct:fbcon_ops
114 max_len = max(info->var.green.length, info->var.red.length);
115 max_len = max(info->var.blue.length, max_len);
245 if (fb_get_color_depth(&info->var, &info->fix) == 1) {
H A Dfbcon_ccw.c196 unsigned int rw = info->var.yres - (vc->vc_cols*cw);
197 unsigned int bh = info->var.xres - (vc->vc_rows*ch);
206 region.dy = info->var.yoffset;
208 region.width = info->var.xres_virtual;
213 region.dx = info->var.xoffset + bs;
215 region.height = info->var.yres_virtual;
384 yoffset = (vyres - info->var.yres) - ops->var.xoffset;
385 ops->var.xoffset = ops->var
[all...]
H A Dfbcon_cw.c179 unsigned int rw = info->var.yres - (vc->vc_cols*cw);
180 unsigned int bh = info->var.xres - (vc->vc_rows*ch);
181 unsigned int rs = info->var.yres - rw;
189 region.dy = info->var.yoffset + rs;
191 region.width = info->var.xres_virtual;
196 region.dx = info->var.xoffset;
197 region.dy = info->var.yoffset;
198 region.height = info->var.yres;
367 xoffset = vxres - (info->var.xres + ops->var
[all...]

Completed in 230 milliseconds

<<11121314151617181920>>