Lines Matching refs:tests
80 * @payload: Payload used in tests
97 * MII, NVRAM and register tests
101 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests)
107 tests->phy_alive = rc ? -1 : 1;
113 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests)
122 tests->nvram = rc ? -1 : 1;
136 struct ef4_self_tests *tests)
143 tests->interrupt = -1;
149 tests->interrupt = 0;
172 tests->interrupt = 1;
178 struct ef4_self_tests *tests)
226 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1;
227 tests->eventq_int[channel->channel] = int_seen ? 1 : -1;
258 static int ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests,
267 rc = efx->phy_op->run_tests(efx, tests->phy_ext, flags);
625 static int ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests,
676 &tests->loopback[mode]);
701 int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests,
713 rc = ef4_test_phy_alive(efx, tests);
717 rc = ef4_test_nvram(efx, tests);
721 rc = ef4_test_interrupts(efx, tests);
725 rc = ef4_test_eventq_irq(efx, tests);
733 return ef4_test_phy(efx, tests, flags);
744 rc_reset = efx->type->test_chip(efx, tests);
752 if ((tests->memory < 0 || tests->registers < 0) && !rc_test)
757 * for the bist and loopback tests */
764 rc = ef4_test_phy(efx, tests, flags);
768 rc = ef4_test_loopbacks(efx, tests, efx->loopback_modes);