Lines Matching refs:tests
75 * @payload: Payload used in tests
92 * MII, NVRAM and register tests
96 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests)
102 tests->phy_alive = rc ? -1 : 1;
108 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests)
117 tests->nvram = rc ? -1 : 1;
131 struct ef4_self_tests *tests)
138 tests->interrupt = -1;
144 tests->interrupt = 0;
167 tests->interrupt = 1;
173 struct ef4_self_tests *tests)
221 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1;
222 tests->eventq_int[channel->channel] = int_seen ? 1 : -1;
253 static int ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests,
262 rc = efx->phy_op->run_tests(efx, tests->phy_ext, flags);
613 static int ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests,
664 &tests->loopback[mode]);
689 int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests,
701 rc = ef4_test_phy_alive(efx, tests);
705 rc = ef4_test_nvram(efx, tests);
709 rc = ef4_test_interrupts(efx, tests);
713 rc = ef4_test_eventq_irq(efx, tests);
721 return ef4_test_phy(efx, tests, flags);
732 rc_reset = efx->type->test_chip(efx, tests);
740 if ((tests->memory < 0 || tests->registers < 0) && !rc_test)
745 * for the bist and loopback tests */
752 rc = ef4_test_phy(efx, tests, flags);
756 rc = ef4_test_loopbacks(efx, tests, efx->loopback_modes);