Lines Matching refs:current
81 static void eth_setup_loopback_test(struct udevice *current, int speed) in eth_setup_loopback_test() argument
84 struct eth_pdata *pdata = dev_get_platdata(current); in eth_setup_loopback_test()
125 static int eth_run_loopback_test(struct udevice *current, int speed, int delay_test) in eth_run_loopback_test() argument
148 gmac_set_rgmii(current, i, j); in eth_run_loopback_test()
165 length = eth_get_ops(current)->recv(current, flags, &rx_packet); in eth_run_loopback_test()
184 if (length >= 0 && eth_get_ops(current)->free_pkt) in eth_run_loopback_test()
185 eth_get_ops(current)->free_pkt(current, rx_packet, in eth_run_loopback_test()
221 struct udevice *current; in eth_loopback_test() local
224 current = eth_get_dev(); in eth_loopback_test()
225 if (!current || !device_active(current)) in eth_loopback_test()
228 eth_setup_loopback_test(current, speed); in eth_loopback_test()
235 ret = eth_run_loopback_test(current, speed, delay_test); in eth_loopback_test()
251 struct udevice *current; in do_test_eth() local
257 current = eth_get_dev(); in do_test_eth()
258 if (!current || !device_active(current)) in do_test_eth()
285 gmac_set_rgmii(current, tx_delay, rx_delay); in do_test_eth()