Lines Matching refs:dqs
84 static inline int test_loop(int k, int dqs, u32 test_dqs, u32 *coarse_dqs, in test_loop() argument
101 if (dqs > 0) in test_loop()
103 (((k == 1) ? coarse_dqs[dqs] : test_dqs) << 12) | in test_loop()
108 (((k == 1) ? coarse_dqs[dqs] : test_dqs) << 4) | in test_loop()
143 int dqs = 0; in ddr_calibrate() local
181 dqs = 0; in ddr_calibrate()
209 flag = test_loop(k, dqs, test_dqs, max_coarse_dqs, in ddr_calibrate()
218 max_coarse_dqs[dqs] = test_dqs; in ddr_calibrate()
223 max_coarse_dqs[dqs]--; in ddr_calibrate()
224 max_fine_dqs[dqs] = 0xf; in ddr_calibrate()
226 max_fine_dqs[dqs] = test_dqs; in ddr_calibrate()
240 flag = test_loop(k, dqs, test_dqs, min_coarse_dqs, in ddr_calibrate()
267 min_coarse_dqs[dqs] = test_dqs; in ddr_calibrate()
270 min_coarse_dqs[dqs]++; in ddr_calibrate()
271 min_fine_dqs[dqs] = 0x0; in ddr_calibrate()
273 min_fine_dqs[dqs] = test_dqs; in ddr_calibrate()
278 if (dqs == 0) { in ddr_calibrate()
279 dqs = 1; in ddr_calibrate()