• Home
  • Raw
  • Download

Lines Matching refs:value

23 void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value)  in svga_wcrt_multi()  argument
33 if (value & 1) regval = regval | bitval; in svga_wcrt_multi()
35 value = value >> 1; in svga_wcrt_multi()
43 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wseq_multi() argument
53 if (value & 1) regval = regval | bitval; in svga_wseq_multi()
55 value = value >> 1; in svga_wseq_multi()
445 u32 value; in svga_check_timings() local
453 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
454 if (((value / 8) - 5) >= svga_regset_size (tm->h_total_regs)) in svga_check_timings()
458 value = var->xres; 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()
465 value = var->xres + var->right_margin; in svga_check_timings()
466 if (((value / 8) - 1) >= svga_regset_size (tm->h_sync_start_regs)) in svga_check_timings()
470 value = var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
471 if ((value == 0) || ((value / 8) >= svga_regset_size (tm->h_blank_end_regs))) in svga_check_timings()
475 value = var->hsync_len; in svga_check_timings()
476 if ((value == 0) || ((value / 8) >= svga_regset_size (tm->h_sync_end_regs))) in svga_check_timings()
480 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
481 if ((value - 1) >= svga_regset_size(tm->v_total_regs)) in svga_check_timings()
485 value = var->yres; 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()
492 value = var->yres + var->lower_margin; in svga_check_timings()
493 if ((value - 1) >= svga_regset_size(tm->v_sync_start_regs)) in svga_check_timings()
497 value = var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
498 if ((value == 0) || (value >= svga_regset_size (tm->v_blank_end_regs))) in svga_check_timings()
502 value = var->vsync_len; in svga_check_timings()
503 if ((value == 0) || (value >= svga_regset_size (tm->v_sync_end_regs))) in svga_check_timings()
515 u32 value; in svga_set_timings() local
517 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
518 value = (value * hmul) / hdiv; in svga_set_timings()
519 pr_debug("fb%d: horizontal total : %d\n", node, value); in svga_set_timings()
520 svga_wcrt_multi(regbase, tm->h_total_regs, (value / 8) - 5); in svga_set_timings()
522 value = var->xres; in svga_set_timings()
523 value = (value * hmul) / hdiv; in svga_set_timings()
524 pr_debug("fb%d: horizontal display : %d\n", node, value); in svga_set_timings()
525 svga_wcrt_multi(regbase, tm->h_display_regs, (value / 8) - 1); in svga_set_timings()
527 value = var->xres; in svga_set_timings()
528 value = (value * hmul) / hdiv; in svga_set_timings()
529 pr_debug("fb%d: horizontal blank start: %d\n", node, value); in svga_set_timings()
530 svga_wcrt_multi(regbase, tm->h_blank_start_regs, (value / 8) - 1 + hborder); in svga_set_timings()
532 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
533 value = (value * hmul) / hdiv; in svga_set_timings()
534 pr_debug("fb%d: horizontal blank end : %d\n", node, value); in svga_set_timings()
535 svga_wcrt_multi(regbase, tm->h_blank_end_regs, (value / 8) - 1 - hborder); in svga_set_timings()
537 value = var->xres + var->right_margin; in svga_set_timings()
538 value = (value * hmul) / hdiv; in svga_set_timings()
539 pr_debug("fb%d: horizontal sync start : %d\n", node, value); in svga_set_timings()
540 svga_wcrt_multi(regbase, tm->h_sync_start_regs, (value / 8)); in svga_set_timings()
542 value = var->xres + var->right_margin + var->hsync_len; in svga_set_timings()
543 value = (value * hmul) / hdiv; in svga_set_timings()
544 pr_debug("fb%d: horizontal sync end : %d\n", node, value); in svga_set_timings()
545 svga_wcrt_multi(regbase, tm->h_sync_end_regs, (value / 8)); in svga_set_timings()
547 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
548 value = (value * vmul) / vdiv; in svga_set_timings()
549 pr_debug("fb%d: vertical total : %d\n", node, value); in svga_set_timings()
550 svga_wcrt_multi(regbase, tm->v_total_regs, value - 2); in svga_set_timings()
552 value = var->yres; in svga_set_timings()
553 value = (value * vmul) / vdiv; in svga_set_timings()
554 pr_debug("fb%d: vertical display : %d\n", node, value); in svga_set_timings()
555 svga_wcrt_multi(regbase, tm->v_display_regs, value - 1); in svga_set_timings()
557 value = var->yres; in svga_set_timings()
558 value = (value * vmul) / vdiv; in svga_set_timings()
559 pr_debug("fb%d: vertical blank start : %d\n", node, value); in svga_set_timings()
560 svga_wcrt_multi(regbase, tm->v_blank_start_regs, value); in svga_set_timings()
562 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
563 value = (value * vmul) / vdiv; in svga_set_timings()
564 pr_debug("fb%d: vertical blank end : %d\n", node, value); in svga_set_timings()
565 svga_wcrt_multi(regbase, tm->v_blank_end_regs, value - 2); in svga_set_timings()
567 value = var->yres + var->lower_margin; in svga_set_timings()
568 value = (value * vmul) / vdiv; in svga_set_timings()
569 pr_debug("fb%d: vertical sync start : %d\n", node, value); in svga_set_timings()
570 svga_wcrt_multi(regbase, tm->v_sync_start_regs, value); in svga_set_timings()
572 value = var->yres + var->lower_margin + var->vsync_len; in svga_set_timings()
573 value = (value * vmul) / vdiv; in svga_set_timings()
574 pr_debug("fb%d: vertical sync end : %d\n", node, value); in svga_set_timings()
575 svga_wcrt_multi(regbase, tm->v_sync_end_regs, value); in svga_set_timings()