Lines Matching refs:mac_eng
1440 MAC_ENGINE mac_eng; in mac_test() local
1444 ret = init_mac_engine(&mac_eng, mode); in mac_test()
1451 print_usage(&mac_eng); in mac_test()
1455 mac_eng.arg.mac_idx = simple_strtol(argv[1], NULL, 16); in mac_test()
1458 mac_eng.arg.mdio_idx = mac_eng.arg.mac_idx; in mac_test()
1460 parse_arg_dedicated(argc, argv, &mac_eng); in mac_test()
1462 parse_arg_ncsi(argc, argv, &mac_eng); in mac_test()
1464 ret = setup_running(&mac_eng); in mac_test()
1468 dump_setting(&mac_eng); in mac_test()
1474 if (mac_eng.arg.ctrl.b.rmii_50m_out && 0 == mac_eng.run.is_rgmii) { in mac_test()
1475 mac_set_rmii_50m_output_enable(&mac_eng); in mac_test()
1478 push_reg(&mac_eng); in mac_test()
1479 disable_wdt(&mac_eng); in mac_test()
1481 mac_set_addr(&mac_eng); in mac_test()
1482 if (mac_eng.arg.ctrl.b.mac_int_loopback) in mac_test()
1483 mac_set_interal_loopback(&mac_eng); in mac_test()
1485 scu_set_pinmux(&mac_eng); in mac_test()
1487 scu_disable_mac(&mac_eng); in mac_test()
1488 scu_enable_mac(&mac_eng); in mac_test()
1489 if (mac_eng.arg.run_mode == MODE_DEDICATED) { in mac_test()
1490 if (1 == phy_find_addr(&mac_eng)) { in mac_test()
1491 phy_select(&mac_eng, &phy_eng); in mac_test()
1496 setup_data(&mac_eng); in mac_test()
1498 mac_eng.flg.all_fail = 1; in mac_test()
1499 mac_eng.io.init_done = 1; in mac_test()
1501 mac_eng.run.speed_sel[i] = mac_eng.run.speed_cfg[i]; in mac_test()
1507 test_start(&mac_eng, &phy_eng); in mac_test()