Lines Matching refs:dlli
244 u32 dll_min[4], dll_max[4], dlli, data, passcnt; in cbrdlli_ast2150() local
251 for (dlli = 0; dlli < 100; dlli++) { in cbrdlli_ast2150()
252 ast_moutdwm(ast, 0x1e6e0068, dlli | (dlli << 8) | (dlli << 16) | (dlli << 24)); in cbrdlli_ast2150()
256 if (dll_min[0] > dlli) in cbrdlli_ast2150()
257 dll_min[0] = dlli; in cbrdlli_ast2150()
258 if (dll_max[0] < dlli) in cbrdlli_ast2150()
259 dll_max[0] = dlli; in cbrdlli_ast2150()
268 dlli = dll_min[0] + (((dll_max[0] - dll_min[0]) * 7) >> 4); in cbrdlli_ast2150()
269 ast_moutdwm(ast, 0x1e6e0068, dlli | (dlli << 8) | (dlli << 16) | (dlli << 24)); in cbrdlli_ast2150()
620 u32 gold_sadj[2], dllmin[16], dllmax[16], dlli, data, cnt, mask, passcnt, retry = 0; in finetuneDQI_L() local
628 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQI_L()
629 ast_moutdwm(ast, 0x1E6E0068, 0x00001400 | (dlli << 16) | (dlli << 24)); in finetuneDQI_L()
636 if (dllmin[cnt] > dlli) { in finetuneDQI_L()
637 dllmin[cnt] = dlli; in finetuneDQI_L()
639 if (dllmax[cnt] < dlli) { in finetuneDQI_L()
640 dllmax[cnt] = dlli; in finetuneDQI_L()
672 dlli = dllmin[cnt]; in finetuneDQI_L()
673 if (gold_sadj[0] >= dlli) { in finetuneDQI_L()
674 dlli = ((gold_sadj[0] - dlli) * 19) >> 5; in finetuneDQI_L()
675 if (dlli > 3) { in finetuneDQI_L()
676 dlli = 3; in finetuneDQI_L()
679 dlli = ((dlli - gold_sadj[0]) * 19) >> 5; in finetuneDQI_L()
680 if (dlli > 4) { in finetuneDQI_L()
681 dlli = 4; in finetuneDQI_L()
683 dlli = (8 - dlli) & 0x7; in finetuneDQI_L()
685 data |= dlli << 21; in finetuneDQI_L()
694 dlli = dllmin[cnt]; in finetuneDQI_L()
695 if (gold_sadj[1] >= dlli) { in finetuneDQI_L()
696 dlli = ((gold_sadj[1] - dlli) * 19) >> 5; in finetuneDQI_L()
697 if (dlli > 3) { in finetuneDQI_L()
698 dlli = 3; in finetuneDQI_L()
700 dlli = (dlli - 1) & 0x7; in finetuneDQI_L()
703 dlli = ((dlli - gold_sadj[1]) * 19) >> 5; in finetuneDQI_L()
704 dlli += 1; in finetuneDQI_L()
705 if (dlli > 4) { in finetuneDQI_L()
706 dlli = 4; in finetuneDQI_L()
708 dlli = (8 - dlli) & 0x7; in finetuneDQI_L()
710 data |= dlli << 21; in finetuneDQI_L()
719 u32 dlli, dqsip, dqidly; in finetuneDQSI() local
731 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQSI()
732 tag[0][dlli] = 0x0; in finetuneDQSI()
733 tag[1][dlli] = 0x0; in finetuneDQSI()
747 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQSI()
748 ast_moutdwm(ast, 0x1E6E0068, 0x00001300 | (dlli << 16) | (dlli << 24)); in finetuneDQSI()
752 if (dlli == 0) in finetuneDQSI()
755 tag[dqsip][dlli] = 'P'; in finetuneDQSI()
756 if (dlli < pass[dqidly][dqsip][0]) in finetuneDQSI()
757 pass[dqidly][dqsip][0] = (u16) dlli; in finetuneDQSI()
758 if (dlli > pass[dqidly][dqsip][1]) in finetuneDQSI()
759 pass[dqidly][dqsip][1] = (u16) dlli; in finetuneDQSI()
782 for (dlli = pass[dqidly][dqsip][0]; dlli > 0 && tag[dqsip][dlli] != 0; dlli--, passcnt[0]++); in finetuneDQSI()
783 for (dlli = pass[dqidly][dqsip][1]; dlli < 76 && tag[dqsip][dlli] != 0; dlli++, passcnt[1]++); in finetuneDQSI()
809 u32 dllmin[2], dllmax[2], dlli, data, passcnt, retry = 0; in cbr_dll2() local
820 for (dlli = 0; dlli < 76; dlli++) { in cbr_dll2()
821 ast_moutdwm(ast, 0x1E6E0068, 0x00001300 | (dlli << 16) | (dlli << 24)); in cbr_dll2()
826 if (dllmin[0] > dlli) { in cbr_dll2()
827 dllmin[0] = dlli; in cbr_dll2()
829 if (dllmax[0] < dlli) { in cbr_dll2()
830 dllmax[0] = dlli; in cbr_dll2()
834 if (dllmin[1] > dlli) { in cbr_dll2()
835 dllmin[1] = dlli; in cbr_dll2()
837 if (dllmax[1] < dlli) { in cbr_dll2()
838 dllmax[1] = dlli; in cbr_dll2()
856 dlli = (dllmin[1] + dllmax[1]) >> 1; in cbr_dll2()
857 dlli <<= 8; in cbr_dll2()
858 dlli += (dllmin[0] + dllmax[0]) >> 1; in cbr_dll2()
859 ast_moutdwm(ast, 0x1E6E0068, ast_mindwm(ast, 0x1E720058) | (dlli << 16)); in cbr_dll2()