Lines Matching refs:dlli
211 u32 dll_min[4], dll_max[4], dlli, data, passcnt; in cbrdlli_ast2150() local
218 for (dlli = 0; dlli < 100; dlli++) { in cbrdlli_ast2150()
219 ast_moutdwm(ast, 0x1e6e0068, dlli | (dlli << 8) | (dlli << 16) | (dlli << 24)); in cbrdlli_ast2150()
223 if (dll_min[0] > dlli) in cbrdlli_ast2150()
224 dll_min[0] = dlli; in cbrdlli_ast2150()
225 if (dll_max[0] < dlli) in cbrdlli_ast2150()
226 dll_max[0] = dlli; in cbrdlli_ast2150()
235 dlli = dll_min[0] + (((dll_max[0] - dll_min[0]) * 7) >> 4); in cbrdlli_ast2150()
236 ast_moutdwm(ast, 0x1e6e0068, dlli | (dlli << 8) | (dlli << 16) | (dlli << 24)); in cbrdlli_ast2150()
577 u32 gold_sadj[2], dllmin[16], dllmax[16], dlli, data, cnt, mask, passcnt, retry = 0; in finetuneDQI_L() local
585 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQI_L()
586 ast_moutdwm(ast, 0x1E6E0068, 0x00001400 | (dlli << 16) | (dlli << 24)); in finetuneDQI_L()
593 if (dllmin[cnt] > dlli) { in finetuneDQI_L()
594 dllmin[cnt] = dlli; in finetuneDQI_L()
596 if (dllmax[cnt] < dlli) { in finetuneDQI_L()
597 dllmax[cnt] = dlli; in finetuneDQI_L()
629 dlli = dllmin[cnt]; in finetuneDQI_L()
630 if (gold_sadj[0] >= dlli) { in finetuneDQI_L()
631 dlli = ((gold_sadj[0] - dlli) * 19) >> 5; in finetuneDQI_L()
632 if (dlli > 3) { in finetuneDQI_L()
633 dlli = 3; in finetuneDQI_L()
636 dlli = ((dlli - gold_sadj[0]) * 19) >> 5; in finetuneDQI_L()
637 if (dlli > 4) { in finetuneDQI_L()
638 dlli = 4; in finetuneDQI_L()
640 dlli = (8 - dlli) & 0x7; in finetuneDQI_L()
642 data |= dlli << 21; in finetuneDQI_L()
651 dlli = dllmin[cnt]; in finetuneDQI_L()
652 if (gold_sadj[1] >= dlli) { in finetuneDQI_L()
653 dlli = ((gold_sadj[1] - dlli) * 19) >> 5; in finetuneDQI_L()
654 if (dlli > 3) { in finetuneDQI_L()
655 dlli = 3; in finetuneDQI_L()
657 dlli = (dlli - 1) & 0x7; in finetuneDQI_L()
660 dlli = ((dlli - gold_sadj[1]) * 19) >> 5; in finetuneDQI_L()
661 dlli += 1; in finetuneDQI_L()
662 if (dlli > 4) { in finetuneDQI_L()
663 dlli = 4; in finetuneDQI_L()
665 dlli = (8 - dlli) & 0x7; in finetuneDQI_L()
667 data |= dlli << 21; in finetuneDQI_L()
676 u32 dlli, dqsip, dqidly; in finetuneDQSI() local
688 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQSI()
689 tag[0][dlli] = 0x0; in finetuneDQSI()
690 tag[1][dlli] = 0x0; in finetuneDQSI()
704 for (dlli = 0; dlli < 76; dlli++) { in finetuneDQSI()
705 ast_moutdwm(ast, 0x1E6E0068, 0x00001300 | (dlli << 16) | (dlli << 24)); in finetuneDQSI()
709 if (dlli == 0) in finetuneDQSI()
712 tag[dqsip][dlli] = 'P'; in finetuneDQSI()
713 if (dlli < pass[dqidly][dqsip][0]) in finetuneDQSI()
714 pass[dqidly][dqsip][0] = (u16) dlli; in finetuneDQSI()
715 if (dlli > pass[dqidly][dqsip][1]) in finetuneDQSI()
716 pass[dqidly][dqsip][1] = (u16) dlli; in finetuneDQSI()
739 for (dlli = pass[dqidly][dqsip][0]; dlli > 0 && tag[dqsip][dlli] != 0; dlli--, passcnt[0]++); in finetuneDQSI()
740 for (dlli = pass[dqidly][dqsip][1]; dlli < 76 && tag[dqsip][dlli] != 0; dlli++, passcnt[1]++); in finetuneDQSI()
766 u32 dllmin[2], dllmax[2], dlli, data, passcnt, retry = 0; in cbr_dll2() local
777 for (dlli = 0; dlli < 76; dlli++) { in cbr_dll2()
778 ast_moutdwm(ast, 0x1E6E0068, 0x00001300 | (dlli << 16) | (dlli << 24)); in cbr_dll2()
783 if (dllmin[0] > dlli) { in cbr_dll2()
784 dllmin[0] = dlli; in cbr_dll2()
786 if (dllmax[0] < dlli) { in cbr_dll2()
787 dllmax[0] = dlli; in cbr_dll2()
791 if (dllmin[1] > dlli) { in cbr_dll2()
792 dllmin[1] = dlli; in cbr_dll2()
794 if (dllmax[1] < dlli) { in cbr_dll2()
795 dllmax[1] = dlli; in cbr_dll2()
813 dlli = (dllmin[1] + dllmax[1]) >> 1; in cbr_dll2()
814 dlli <<= 8; in cbr_dll2()
815 dlli += (dllmin[0] + dllmax[0]) >> 1; in cbr_dll2()
816 ast_moutdwm(ast, 0x1E6E0068, ast_mindwm(ast, 0x1E720058) | (dlli << 16)); in cbr_dll2()