Lines Matching refs:mt
756 struct my_timming* mt, in maven_compute_timming() argument
772 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming()
775 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming()
776 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
777 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
778 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming()
779 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming()
781 if (m->hcorr < mt->HTotal) in maven_compute_timming()
783 if (hcrt > mt->HTotal) in maven_compute_timming()
784 hcrt -= mt->HTotal; in maven_compute_timming()
785 if (hcrt + 2 > mt->HTotal) in maven_compute_timming()
804 m->regs[0xA2] = mt->VTotal - mt->VSyncStart - 1; /* stop vblanking */ in maven_compute_timming()
805 m->regs[0xA3] = (mt->VTotal - mt->VSyncStart - 1) >> 8; in maven_compute_timming()
818 m->regs[0xA8] = mt->VTotal - 1; in maven_compute_timming()
819 m->regs[0xA9] = (mt->VTotal - 1) >> 8; in maven_compute_timming()
824 m->regs[0xAC] = mt->VTotal - 2; in maven_compute_timming()
825 m->regs[0xAD] = (mt->VTotal - 2) >> 8; in maven_compute_timming()
832 unsigned int ibmin = 4 + lmargin + mt->HDisplay; in maven_compute_timming()
838 if (mt->HTotal) in maven_compute_timming()
839 hdec = 94208 / (mt->HTotal); in maven_compute_timming()
847 hlen = 98304 - 128 - ((lmargin + mt->HDisplay - 8) * hdec); in maven_compute_timming()
888 if (mt->VTotal) { in maven_compute_timming()
895 b = (mt->VTotal - 1) * (m->htotal + 2) + m->hcorr + 2; in maven_compute_timming()
901 vdec = m->vlines * 32768 / mt->VTotal; in maven_compute_timming()
907 vlen = (vslen + umargin + mt->VDisplay) * vdec; in maven_compute_timming()
922 DAC1064_calcclock(mt->pixclock, 450000, &a, &bv, &c); in maven_compute_timming()
931 m->regs[0x96] = mt->HTotal; in maven_compute_timming()
932 m->regs[0x97] = mt->HTotal >> 8; in maven_compute_timming()
937 tmpi = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
941 tmpi = mt->HTotal - mt->HSyncStart; in maven_compute_timming()
945 tmpi += mt->HDisplay; in maven_compute_timming()
949 tmpi = mt->HTotal + 1; in maven_compute_timming()
953 tmpi = mt->VSyncEnd - mt->VSyncStart - 1; in maven_compute_timming()
957 tmpi = mt->VTotal - mt->VSyncStart; in maven_compute_timming()
961 tmpi = mt->VTotal - 1; in maven_compute_timming()
968 tmpi = mt->HTotal - mt->delay; in maven_compute_timming()
972 tmpi = mt->VTotal - 2; in maven_compute_timming()
1148 static int maven_out_compute(void* md, struct my_timming* mt) { in maven_out_compute() argument
1151 return maven_compute_timming(md, mt, &minfo->hw.maven); in maven_out_compute()