Lines Matching refs:tm
443 int svga_check_timings(const struct svga_timing_regs *tm, struct fb_var_screeninfo *var, int node) in svga_check_timings() argument
454 if (((value / 8) - 5) >= svga_regset_size (tm->h_total_regs)) in svga_check_timings()
459 if (((value / 8) - 1) >= svga_regset_size (tm->h_display_regs)) in svga_check_timings()
461 if (((value / 8) - 1) >= svga_regset_size (tm->h_blank_start_regs)) in svga_check_timings()
466 if (((value / 8) - 1) >= svga_regset_size (tm->h_sync_start_regs)) in svga_check_timings()
471 if ((value == 0) || ((value / 8) >= svga_regset_size (tm->h_blank_end_regs))) in svga_check_timings()
476 if ((value == 0) || ((value / 8) >= svga_regset_size (tm->h_sync_end_regs))) in svga_check_timings()
481 if ((value - 1) >= svga_regset_size(tm->v_total_regs)) in svga_check_timings()
486 if ((value - 1) >= svga_regset_size(tm->v_display_regs)) in svga_check_timings()
488 if ((value - 1) >= svga_regset_size(tm->v_blank_start_regs)) in svga_check_timings()
493 if ((value - 1) >= svga_regset_size(tm->v_sync_start_regs)) in svga_check_timings()
498 if ((value == 0) || (value >= svga_regset_size (tm->v_blank_end_regs))) in svga_check_timings()
503 if ((value == 0) || (value >= svga_regset_size (tm->v_sync_end_regs))) in svga_check_timings()
510 void svga_set_timings(void __iomem *regbase, const struct svga_timing_regs *tm, in svga_set_timings() argument
520 svga_wcrt_multi(regbase, tm->h_total_regs, (value / 8) - 5); in svga_set_timings()
525 svga_wcrt_multi(regbase, tm->h_display_regs, (value / 8) - 1); in svga_set_timings()
530 svga_wcrt_multi(regbase, tm->h_blank_start_regs, (value / 8) - 1 + hborder); in svga_set_timings()
535 svga_wcrt_multi(regbase, tm->h_blank_end_regs, (value / 8) - 1 - hborder); in svga_set_timings()
540 svga_wcrt_multi(regbase, tm->h_sync_start_regs, (value / 8)); in svga_set_timings()
545 svga_wcrt_multi(regbase, tm->h_sync_end_regs, (value / 8)); in svga_set_timings()
550 svga_wcrt_multi(regbase, tm->v_total_regs, value - 2); in svga_set_timings()
555 svga_wcrt_multi(regbase, tm->v_display_regs, value - 1); in svga_set_timings()
560 svga_wcrt_multi(regbase, tm->v_blank_start_regs, value); in svga_set_timings()
565 svga_wcrt_multi(regbase, tm->v_blank_end_regs, value - 2); in svga_set_timings()
570 svga_wcrt_multi(regbase, tm->v_sync_start_regs, value); in svga_set_timings()
575 svga_wcrt_multi(regbase, tm->v_sync_end_regs, value); in svga_set_timings()