Lines Matching refs:rx_d
154 int tx_d, rx_d; in get_mac_1g_delay_1() local
159 rx_d = reg.b.rx_delay_1; in get_mac_1g_delay_1()
162 rx_d = (-1) * rx_d; in get_mac_1g_delay_1()
166 *p_rx_d = rx_d; in get_mac_1g_delay_1()
168 rx_d, tx_d); in get_mac_1g_delay_1()
173 int tx_d, rx_d; in get_mac_1g_delay_2() local
178 rx_d = reg.b.rx_delay_2; in get_mac_1g_delay_2()
181 rx_d = (-1) * rx_d; in get_mac_1g_delay_2()
185 *p_rx_d = rx_d; in get_mac_1g_delay_2()
187 rx_d, tx_d); in get_mac_1g_delay_2()
192 int tx_d, rx_d; in get_mac_100_10_delay_1() local
197 rx_d = reg.b.rx_delay_1; in get_mac_100_10_delay_1()
200 rx_d = (-1) * rx_d; in get_mac_100_10_delay_1()
204 *p_rx_d = rx_d; in get_mac_100_10_delay_1()
206 rx_d, tx_d); in get_mac_100_10_delay_1()
211 int tx_d, rx_d; in get_mac_100_10_delay_2() local
216 rx_d = reg.b.rx_delay_2; in get_mac_100_10_delay_2()
219 rx_d = (-1) * rx_d; in get_mac_100_10_delay_2()
223 *p_rx_d = rx_d; in get_mac_100_10_delay_2()
225 rx_d, tx_d); in get_mac_100_10_delay_2()
444 static void set_mac_1g_delay_1(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_1g_delay_1() argument
450 if (rx_d < 0) { in set_mac_1g_delay_1()
452 rx_d = abs(rx_d); in set_mac_1g_delay_1()
455 reg.b.rx_delay_1 = rx_d; in set_mac_1g_delay_1()
460 rx_d, tx_d); in set_mac_1g_delay_1()
463 static void set_mac_1g_delay_2(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_1g_delay_2() argument
469 if (rx_d < 0) { in set_mac_1g_delay_2()
471 rx_d = abs(rx_d); in set_mac_1g_delay_2()
474 reg.b.rx_delay_2 = rx_d; in set_mac_1g_delay_2()
479 rx_d, tx_d); in set_mac_1g_delay_2()
482 static void set_mac_100_10_delay_1(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_100_10_delay_1() argument
488 if (rx_d < 0) { in set_mac_100_10_delay_1()
490 rx_d = abs(rx_d); in set_mac_100_10_delay_1()
493 reg.b.rx_delay_1 = rx_d; in set_mac_100_10_delay_1()
498 rx_d, tx_d); in set_mac_100_10_delay_1()
501 static void set_mac_100_10_delay_2(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_100_10_delay_2() argument
507 if (rx_d < 0) { in set_mac_100_10_delay_2()
509 rx_d = abs(rx_d); in set_mac_100_10_delay_2()
512 reg.b.rx_delay_2 = rx_d; in set_mac_100_10_delay_2()
517 rx_d, tx_d); in set_mac_100_10_delay_2()
520 static void set_mac_rmii_delay_1(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_rmii_delay_1() argument
526 reg.b.rx_delay_1 = rx_d; in set_mac_rmii_delay_1()
530 rx_d, tx_d); in set_mac_rmii_delay_1()
533 static void set_mac_rmii_delay_2(uint32_t addr, int32_t rx_d, int32_t tx_d) in set_mac_rmii_delay_2() argument
539 reg.b.rx_delay_2 = rx_d; in set_mac_rmii_delay_2()
543 rx_d, tx_d); in set_mac_rmii_delay_2()
547 static void set_mac1_1g_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac1_1g_delay() argument
549 set_mac_1g_delay_1(p_eng->io.mac12_1g_delay.addr, rx_d, tx_d); in set_mac1_1g_delay()
551 static void set_mac1_100m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac1_100m_delay() argument
553 set_mac_100_10_delay_1(p_eng->io.mac12_100m_delay.addr, rx_d, tx_d); in set_mac1_100m_delay()
555 static void set_mac1_10m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac1_10m_delay() argument
557 set_mac_100_10_delay_1(p_eng->io.mac12_10m_delay.addr, rx_d, tx_d); in set_mac1_10m_delay()
559 static void set_mac2_1g_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac2_1g_delay() argument
561 set_mac_1g_delay_2(p_eng->io.mac12_1g_delay.addr, rx_d, tx_d); in set_mac2_1g_delay()
563 static void set_mac2_100m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac2_100m_delay() argument
565 set_mac_100_10_delay_2(p_eng->io.mac12_100m_delay.addr, rx_d, tx_d); in set_mac2_100m_delay()
567 static void set_mac2_10m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac2_10m_delay() argument
569 set_mac_100_10_delay_2(p_eng->io.mac12_10m_delay.addr, rx_d, tx_d); in set_mac2_10m_delay()
571 static void set_mac3_1g_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac3_1g_delay() argument
573 set_mac_1g_delay_1(p_eng->io.mac34_1g_delay.addr, rx_d, tx_d); in set_mac3_1g_delay()
575 static void set_mac3_100m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac3_100m_delay() argument
577 set_mac_100_10_delay_1(p_eng->io.mac34_100m_delay.addr, rx_d, tx_d); in set_mac3_100m_delay()
579 static void set_mac3_10m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac3_10m_delay() argument
581 set_mac_100_10_delay_1(p_eng->io.mac34_10m_delay.addr, rx_d, tx_d); in set_mac3_10m_delay()
583 static void set_mac4_1g_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac4_1g_delay() argument
585 set_mac_1g_delay_2(p_eng->io.mac34_1g_delay.addr, rx_d, tx_d); in set_mac4_1g_delay()
587 static void set_mac4_100m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac4_100m_delay() argument
589 set_mac_100_10_delay_2(p_eng->io.mac34_100m_delay.addr, rx_d, tx_d); in set_mac4_100m_delay()
591 static void set_mac4_10m_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac4_10m_delay() argument
593 set_mac_100_10_delay_2(p_eng->io.mac34_10m_delay.addr, rx_d, tx_d); in set_mac4_10m_delay()
595 static void set_mac1_rmii_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac1_rmii_delay() argument
597 set_mac_rmii_delay_1(p_eng->io.mac12_1g_delay.addr, rx_d, tx_d); in set_mac1_rmii_delay()
599 static void set_mac2_rmii_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac2_rmii_delay() argument
601 set_mac_rmii_delay_2(p_eng->io.mac12_1g_delay.addr, rx_d, tx_d); in set_mac2_rmii_delay()
604 static void set_mac3_rmii_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac3_rmii_delay() argument
606 set_mac_rmii_delay_1(p_eng->io.mac34_1g_delay.addr, rx_d, tx_d); in set_mac3_rmii_delay()
609 static void set_mac4_rmii_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_mac4_rmii_delay() argument
611 set_mac_rmii_delay_2(p_eng->io.mac34_1g_delay.addr, rx_d, tx_d); in set_mac4_rmii_delay()
614 void set_dummy_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in set_dummy_delay() argument
616 printf("%s: %d, %d\n", __func__, rx_d, tx_d); in set_dummy_delay()
650 void mac_set_delay(MAC_ENGINE *p_eng, int32_t rx_d, int32_t tx_d) in mac_set_delay() argument
656 set_delay_func_tbl[rgmii][mac_idx][speed_idx] (p_eng, rx_d, tx_d); in mac_set_delay()
2105 int32_t rx_d, step, tmp; in PrintIO_Header() local
2129 for (rx_d = eng->io.rx_delay_scan.begin; rx_d <= eng->io.rx_delay_scan.end; rx_d += step) { in PrintIO_Header()
2131 if (rx_d < 0) { in PrintIO_Header()
2139 for (rx_d = eng->io.rx_delay_scan.begin; rx_d <= eng->io.rx_delay_scan.end; rx_d += step) { in PrintIO_Header()
2140 tmp = (abs(rx_d) >> 4) & 0xf; in PrintIO_Header()
2149 for (rx_d = eng->io.rx_delay_scan.begin; in PrintIO_Header()
2150 rx_d <= eng->io.rx_delay_scan.end; rx_d += step) { in PrintIO_Header()
2151 PRINTF(option, "%1x", (uint32_t)abs(rx_d) & 0xf); in PrintIO_Header()
2155 for (rx_d = eng->io.rx_delay_scan.begin; rx_d <= eng->io.rx_delay_scan.end; rx_d += step) { in PrintIO_Header()
2156 if (eng->io.rx_delay_scan.orig == rx_d) { in PrintIO_Header()