Lines Matching defs:pup
45 u32 pup = 0, bit = 0, if_id = 0, all_lock = 0, cs_num = 0;
83 for (pup = 0; pup < octets_per_if_num; pup++) {
84 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
87 min_adll_per_pup[if_id][pup] =
89 pup_state[if_id][pup] = 0x3;
90 adll_shift_lock[if_id][pup] = 1;
91 max_adll_per_pup[if_id][pup] = 0x0;
96 for (pup = 0; pup < octets_per_if_num; pup++) {
97 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
103 bit + pup * BUS_WIDTH_IN_BITS],
109 ("FP I/F %d, bit:%d, pup:%d res0 0x%x\n",
110 if_id, bit, pup,
112 if (pup_state[if_id][pup] != 3)
114 /* if not EBA state than move to next pup */
120 pup_state[if_id][pup] = 1;
121 adll_shift_lock[if_id][pup] = 0;
129 if_id, bit, pup,
131 pup_state[if_id][pup] = 4;
132 /* this pup move to EEBA */
133 adll_shift_lock[if_id][pup] = 0;
146 max_adll_per_pup[if_id][pup] =
147 (max_adll_per_pup[if_id][pup] <
150 max_adll_per_pup[if_id][pup];
151 min_adll_per_pup[if_id][pup] =
153 min_adll_per_pup[if_id][pup]) ?
154 min_adll_per_pup[if_id][pup] :
162 adll_shift_val[if_id][pup] =
164 max_adll_per_pup[if_id][pup] :
165 min_adll_per_pup[if_id][pup];
172 for (pup = 0; pup < octets_per_if_num; pup++) {
173 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
177 if (pup_state[if_id][pup] != 4)
180 * if pup state different from EEBA than move to
181 * next pup
188 ACCESS_TYPE_UNICAST, pup, DDR_PHY_DATA,
195 ACCESS_TYPE_UNICAST, pup, DDR_PHY_DATA,
198 adll_shift_val[if_id][pup] = 0;
199 min_adll_per_pup[if_id][pup] =
201 max_adll_per_pup[if_id][pup] = 0x0;
221 bit + pup *
225 ("FP I/F %d, bit:%d, pup:%d res0 0x%x\n",
226 if_id, bit, pup,
241 pup_state[if_id][pup] = 2;
242 adll_shift_lock[if_id][pup] = 0;
250 ACCESS_TYPE_UNICAST, pup,
260 ACCESS_TYPE_UNICAST, pup,
270 /* this pup move to SBA */
271 pup_state[if_id][pup] = 2;
272 adll_shift_lock[if_id][pup] = 0;
280 ACCESS_TYPE_UNICAST, pup,
290 ACCESS_TYPE_UNICAST, pup,
295 adll_shift_lock[if_id][pup] = 1;
306 max_adll_per_pup[if_id][pup] =
307 (max_adll_per_pup[if_id][pup] <
310 max_adll_per_pup[if_id][pup];
311 min_adll_per_pup[if_id][pup] =
313 min_adll_per_pup[if_id][pup]) ?
314 min_adll_per_pup[if_id][pup] :
321 adll_shift_val[if_id][pup] =
323 max_adll_per_pup[if_id][pup] :
324 min_adll_per_pup[if_id][pup];
331 for (pup = 0; pup < octets_per_if_num; pup++) {
332 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
336 ("FP I/F %d, ADLL Shift for EBA: pup[%d] Lock status = %d Lock Val = %d,%d\n",
337 if_id, pup,
338 adll_shift_lock[if_id][pup],
339 max_adll_per_pup[if_id][pup],
340 min_adll_per_pup[if_id][pup]));
346 for (pup = 0; pup < octets_per_if_num; pup++) {
347 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
350 if (adll_shift_lock[if_id][pup] != 1)
352 /* if pup not locked continue to next pup */
359 ACCESS_TYPE_UNICAST, pup, DDR_PHY_DATA,
360 reg_addr, adll_shift_val[if_id][pup]));
362 ("FP I/F %d, Pup[%d] = %d\n", if_id,
363 pup, adll_shift_val[if_id][pup]));
369 for (pup = 0; pup < octets_per_if_num; pup++) {
370 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
373 max_pbs_per_pup[if_id][pup] = 0x0;
374 min_pbs_per_pup[if_id][pup] = 0x1f;
377 result_all_bit[bit + pup * BUS_WIDTH_IN_BITS +
396 for (pup = 0; pup < octets_per_if_num; pup++) {
397 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
400 if (adll_shift_lock[if_id][pup] != 1) {
401 /* if pup not lock continue to next pup */
411 pup * BUS_WIDTH_IN_BITS],
414 ("Per Bit Skew search, FP I/F %d, bit:%d, pup:%d res0 0x%x\n",
415 if_id, bit, pup,
426 adll_shift_lock[if_id][pup] = 0;
428 pup_state[if_id][pup] = 2;
429 max_pbs_per_pup[if_id][pup] = 0x0;
430 min_pbs_per_pup[if_id][pup] = 0x1f;
435 max_pbs_per_pup[if_id][pup] =
437 max_pbs_per_pup[if_id][pup]) ?
439 max_pbs_per_pup[if_id][pup];
440 min_pbs_per_pup[if_id][pup] =
442 min_pbs_per_pup[if_id][pup]) ?
444 min_pbs_per_pup[if_id][pup];
446 pup * BUS_WIDTH_IN_BITS +
455 /* Check all Pup lock */
457 for (pup = 0; pup < octets_per_if_num; pup++) {
458 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
461 all_lock = all_lock * adll_shift_lock[if_id][pup];
474 for (pup = 0; pup < octets_per_if_num; pup++) {
475 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
479 if (adll_shift_lock[if_id][pup] == 1) {
480 /*if pup lock continue to next pup */
484 adll_shift_lock[if_id][pup] = 0;
490 if_id, ACCESS_TYPE_UNICAST, pup,
497 if_id, ACCESS_TYPE_UNICAST, pup,
504 if_id, ACCESS_TYPE_UNICAST, pup,
507 adll_shift_val[if_id][pup] = 0;
508 min_adll_per_pup[if_id][pup] = 0x1f;
509 max_adll_per_pup[if_id][pup] = 0x0;
532 pup *
537 ("FP I/F %d, bit:%d, pup:%d res0 0x%x\n",
538 if_id, bit, pup, res0[if_id]));
543 pup_state[if_id][pup] = 1;
553 adll_shift_lock[if_id][pup]++;
562 max_adll_per_pup[if_id][pup] =
564 [pup] < res0[if_id]) ?
566 max_adll_per_pup[if_id][pup];
567 min_adll_per_pup[if_id][pup] =
570 [pup]) ?
571 min_adll_per_pup[if_id][pup] :
578 adll_shift_val[if_id][pup] =
580 max_adll_per_pup[if_id][pup] :
581 min_adll_per_pup[if_id][pup];
585 adll_shift_lock[if_id][pup] =
586 (adll_shift_lock[if_id][pup] == 8) ?
593 if_id, ACCESS_TYPE_UNICAST, pup,
595 adll_shift_val[if_id][pup]));
599 if_id, pup,
600 adll_shift_lock[if_id][pup]));
623 for (pup = 0; pup < octets_per_if_num; pup++) {
624 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
635 pup *
638 if (pup_state[if_id][pup] != 2) {
640 * if pup is not SBA continue
641 * to next pup
648 ("Per Bit Skew search, PF I/F %d, bit:%d, pup:%d res0 0x%x\n",
649 if_id, bit, pup, res0[if_id]));
655 max_pbs_per_pup[if_id][pup] =
658 bit + pup *
666 max_pbs_per_pup[if_id][pup] =
669 [pup]) ? temp :
671 [if_id][pup];
672 min_pbs_per_pup[if_id][pup] =
675 [pup]) ? temp :
677 [if_id][pup];
679 bit + pup *
684 adll_shift_lock[if_id][pup] = 1;
690 /* Check all Pup state */
692 for (pup = 0; pup < octets_per_if_num; pup++) {
695 * ("pup_state[%d][%d] = %d\n",if_id,pup,pup_state
696 * [if_id][pup]));
703 for (pup = 0; pup < octets_per_if_num; pup++) {
704 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
709 /* if pup not lock continue to next pup */
710 if (adll_shift_lock[if_id][pup] != 1) {
718 result_mat[if_id][pup][bit] = 0;
719 max_pbs_per_pup[if_id][pup] = 0;
720 min_pbs_per_pup[if_id][pup] = 0;
727 result_mat[if_id][pup][bit] =
729 bit + pup *
733 min_pbs_per_pup[if_id][pup];
738 if_id, pup,
739 min_pbs_per_pup[if_id][pup]));
750 for (pup = 0; pup < octets_per_if_num; pup++) {
751 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
755 ("Final Results: if_id %d, pup %d, Pup State: %d\n",
756 if_id, pup, pup_state[if_id][pup]));
765 bit + pup * BUS_WIDTH_IN_BITS +
770 result_mat[if_id][pup]
777 if_id, ACCESS_TYPE_UNICAST, pup,
779 result_mat[if_id][pup][bit]));
782 if (max_pbs_per_pup[if_id][pup] == min_pbs_per_pup[if_id][pup]) {
785 temp = ((max_adll_per_pup[if_id][pup] -
786 min_adll_per_pup[if_id][pup]) *
788 (max_pbs_per_pup[if_id][pup] -
789 min_pbs_per_pup[if_id][pup]));
792 [if_id][pup][effective_cs] = temp;
800 if_id, ACCESS_TYPE_UNICAST, pup,
802 (max_pbs_per_pup[if_id][pup] -
803 min_pbs_per_pup[if_id][pup]) /
808 if_id, ACCESS_TYPE_UNICAST, pup,
810 (max_pbs_per_pup[if_id][pup] -
811 min_pbs_per_pup[if_id][pup]) /
818 if_id, ACCESS_TYPE_UNICAST, pup,
820 result_mat_rx_dqs[if_id][pup]
825 if_id, ACCESS_TYPE_UNICAST, pup,
827 result_mat_rx_dqs[if_id][pup]
835 result_mat_rx_dqs[if_id][pup][effective_cs] =
836 (max_pbs_per_pup[if_id][pup] -
837 min_pbs_per_pup[if_id][pup]) / 2;
843 ((max_pbs_per_pup[if_id][pup] -
844 min_pbs_per_pup[if_id][pup]) *
861 ACCESS_TYPE_UNICAST, pup, DDR_PHY_DATA, reg_addr,
879 for (pup = 0; pup < octets_per_if_num; pup++) {
880 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
885 if (pup_state[if_id][pup] == 1)
939 u32 data_value = 0, bit = 0, if_id = 0, pup = 0;
951 for (pup = 0; pup < octets_per_if_num; pup++) {
952 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
954 pbsdelay_per_pup[pbs_mode][if_id][pup][cs_num]);
965 for (pup = 0; pup <= octets_per_if_num;
966 pup++) {
967 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, pup);
970 ACCESS_TYPE_UNICAST, pup,
989 u32 if_id, pup, bit;
998 for (pup = 0; pup <= octets_per_if_num; pup++) {
1002 if_id, ACCESS_TYPE_UNICAST, pup,