Lines Matching refs:mode

316 	struct fb_videomode *mode = info->mode;  in tmiofb_hw_mode()  local
323 data->lcd_mode(dev, mode); in tmiofb_hw_mode()
332 tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE); in tmiofb_hw_mode()
333 tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS); in tmiofb_hw_mode()
334 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT); in tmiofb_hw_mode()
335 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP); in tmiofb_hw_mode()
337 tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE); in tmiofb_hw_mode()
338 tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS); in tmiofb_hw_mode()
339 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN); in tmiofb_hw_mode()
340 tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT); in tmiofb_hw_mode()
440 TMIOFB_ACC_DSADR((rect->dy * fbi->mode->xres + rect->dx) * 2), in tmiofb_fillrect()
460 TMIOFB_ACC_DSADR((area->dy * fbi->mode->xres + area->dx) * 2), in tmiofb_copyarea()
463 TMIOFB_ACC_SSADR((area->sy * fbi->mode->xres + area->sx) * 2), in tmiofb_copyarea()
482 .width = info->mode->xres, in tmiofb_clearscreen()
483 .height = info->mode->yres, in tmiofb_clearscreen()
494 struct fb_videomode *mode = fbi->mode; in tmiofb_vblank() local
496 unsigned int vds = mode->vsync_len + mode->upper_margin; in tmiofb_vblank()
502 if (vcount < mode->vsync_len) in tmiofb_vblank()
505 if (vcount < vds || vcount > vds + mode->yres) in tmiofb_vblank()
565 struct fb_videomode *mode = data->modes + i; in tmiofb_find_mode() local
567 if (mode->xres >= var->xres && mode->yres >= var->yres in tmiofb_find_mode()
568 && (!best || (mode->xres < best->xres in tmiofb_find_mode()
569 && mode->yres < best->yres))) in tmiofb_find_mode()
570 best = mode; in tmiofb_find_mode()
579 struct fb_videomode *mode; in tmiofb_check_var() local
582 mode = tmiofb_find_mode(info, var); in tmiofb_check_var()
583 if (!mode || var->bits_per_pixel > 16) in tmiofb_check_var()
586 fb_videomode_to_var(var, mode); in tmiofb_check_var()
588 var->xres_virtual = mode->xres; in tmiofb_check_var()
589 var->yres_virtual = info->screen_size / (mode->xres * 2); in tmiofb_check_var()
616 struct fb_videomode *mode; in tmiofb_set_par() local
618 mode = tmiofb_find_mode(info, var); in tmiofb_set_par()
619 if (!mode) in tmiofb_set_par()
622 info->mode = mode; in tmiofb_set_par()
623 info->fix.line_length = info->mode->xres * in tmiofb_set_par()