• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/

Lines Matching defs:clk_shift

492 	 * clk_shift is the shift value to get the timings in 35 ns units
517 static u_long pixclock[3]; /* SHRES/HIRES/LORES: index = clk_shift */
518 static u_short maxdepth[3]; /* SHRES/HIRES/LORES: index = clk_shift */
724 u_short clk_shift; /* vmode */
2523 u_short clk_shift, line_shift;
2531 for (clk_shift = TAG_SHRES; clk_shift <= TAG_LORES; clk_shift++)
2532 if (var->pixclock <= pixclock[clk_shift])
2534 if (clk_shift > TAG_LORES) {
2538 par->clk_shift = clk_shift;
2557 if (par->bpp > maxdepth[clk_shift]) {
2558 if (round_down_bpp && maxdepth[clk_shift])
2559 par->bpp = maxdepth[clk_shift];
2612 xres_n = par->xres<<clk_shift;
2614 par->htotal = down8((var->left_margin+par->xres+var->right_margin+var->hsync_len)<<clk_shift);
2618 par->bplcon3 = sprpixmode[clk_shift];
2622 par->diwstop_h = par->htotal-((var->right_margin-var->hsync_len)<<clk_shift);
2666 htotal = PAL_HTOTAL>>clk_shift;
2696 htotal = NTSC_HTOTAL>>clk_shift;
2719 par->hsstrt = var->right_margin<<clk_shift;
2720 par->hsstop = (var->right_margin+var->hsync_len)<<clk_shift;
2721 par->diwstop_h = par->htotal - mod8(par->hsstrt) + 8 - (1 << clk_shift);
2756 htotal = par->htotal>>clk_shift;
2767 fconst = 16<<maxfmode<<clk_shift;
2775 fsize = ((maxfmode+clk_shift <= 1) ? fconst : 64);
2786 fstrt = downx(fconst, par->diwstrt_h-fconst+(1<<clk_shift)-4) - fsize;
2793 fsize = upx(fconst, xres_n + modx(fconst, downx(1<<clk_shift, par->diwstrt_h-4)));
2803 if (maxfmode + clk_shift <= 1) {
2849 par->bplcon0 = BPC0_COLOR | bplpixmode[clk_shift];
2903 u_short clk_shift, line_shift;
2907 clk_shift = par->clk_shift;
2939 var->pixclock = pixclock[clk_shift];
2949 var->hsync_len = (par->hsstop-par->hsstrt)>>clk_shift;
2950 var->right_margin = par->hsstrt>>clk_shift;
2951 var->left_margin = (par->htotal>>clk_shift) - var->xres - var->right_margin - var->hsync_len;
2964 var->hsync_len = (152>>clk_shift) + mod4(par->diwstop_h);
2965 var->right_margin = ((par->htotal - down4(par->diwstop_h))>>clk_shift) + var->hsync_len;
2966 var->left_margin = (par->htotal>>clk_shift) - var->xres - var->right_margin - var->hsync_len;
3012 short clk_shift, vshift, fstrt, fsize, fstop, fconst, shift, move, mod;
3014 clk_shift = par->clk_shift;
3019 fconst = 16<<maxfmode<<clk_shift;
3021 fstrt = par->diwstrt_h - (vshift<<clk_shift) - 4;
3022 fsize = (par->xres+vshift)<<clk_shift;
3025 if (maxfmode + clk_shift > 1) {
3038 move = move - div8((mod-fstrt)>>clk_shift);
3040 mod = par->next_line - div8(fsize>>clk_shift);
3048 par->bpl1mod = -div8(fsize>>clk_shift);
3533 hs = par->diwstrt_h + (mx<<par->clk_shift) - 4;
3676 if (IS_AGA && maxfmode + par->clk_shift == 0)
3698 if (line >= 510 && IS_AGA && maxfmode + par->clk_shift == 0)
3731 if (line > 510 && IS_AGA && maxfmode + par->clk_shift == 0)