Lines Matching refs:tests

99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests)  in efx_test_phy_alive()  argument
105 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive()
111 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
120 tests->nvram = rc ? -1 : 1; in efx_test_nvram()
134 struct efx_self_tests *tests) in efx_test_interrupts() argument
141 tests->interrupt = -1; in efx_test_interrupts()
147 tests->interrupt = 0; in efx_test_interrupts()
170 tests->interrupt = 1; in efx_test_interrupts()
176 struct efx_self_tests *tests) in efx_test_eventq_irq() argument
224 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in efx_test_eventq_irq()
225 tests->eventq_int[channel->channel] = int_seen ? 1 : -1; in efx_test_eventq_irq()
256 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy() argument
265 rc = efx->phy_op->run_tests(efx, tests->phy_ext, flags); in efx_test_phy()
616 static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_loopbacks() argument
667 &tests->loopback[mode]); in efx_test_loopbacks()
692 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, in efx_selftest() argument
704 rc = efx_test_phy_alive(efx, tests); in efx_selftest()
708 rc = efx_test_nvram(efx, tests); in efx_selftest()
712 rc = efx_test_interrupts(efx, tests); in efx_selftest()
716 rc = efx_test_eventq_irq(efx, tests); in efx_selftest()
724 return efx_test_phy(efx, tests, flags); in efx_selftest()
735 rc_reset = efx->type->test_chip(efx, tests); in efx_selftest()
743 if ((tests->memory < 0 || tests->registers < 0) && !rc_test) in efx_selftest()
755 rc = efx_test_phy(efx, tests, flags); in efx_selftest()
759 rc = efx_test_loopbacks(efx, tests, efx->loopback_modes); in efx_selftest()