Lines Matching refs:tests
103 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument
108 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive()
113 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
122 tests->nvram = rc ? -1 : 1; in efx_test_nvram()
136 struct efx_self_tests *tests) in efx_test_interrupts() argument
143 tests->interrupt = -1; in efx_test_interrupts()
149 tests->interrupt = 0; in efx_test_interrupts()
172 tests->interrupt = 1; in efx_test_interrupts()
178 struct efx_self_tests *tests) in efx_test_eventq_irq() argument
226 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in efx_test_eventq_irq()
227 tests->eventq_int[channel->channel] = int_seen ? 1 : -1; in efx_test_eventq_irq()
258 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy() argument
264 rc = efx_mcdi_phy_run_tests(efx, tests->phy_ext, flags); in efx_test_phy()
618 static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_loopbacks() argument
669 &tests->loopback[mode]); in efx_test_loopbacks()
694 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, in efx_selftest() argument
706 rc = efx_test_phy_alive(efx, tests); in efx_selftest()
710 rc = efx_test_nvram(efx, tests); in efx_selftest()
714 rc = efx_test_interrupts(efx, tests); in efx_selftest()
718 rc = efx_test_eventq_irq(efx, tests); in efx_selftest()
726 return efx_test_phy(efx, tests, flags); in efx_selftest()
737 rc_reset = efx->type->test_chip(efx, tests); in efx_selftest()
745 if ((tests->memory < 0 || tests->registers < 0) && !rc_test) in efx_selftest()
757 rc = efx_test_phy(efx, tests, flags); in efx_selftest()
761 rc = efx_test_loopbacks(efx, tests, efx->loopback_modes); in efx_selftest()