Lines Matching refs:tests
78 * @payload: Payload used in tests
95 * MII, NVRAM and register tests
99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests)
104 tests->phy_alive = rc ? -1 : 1;
109 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests)
118 tests->nvram = rc ? -1 : 1;
132 struct efx_self_tests *tests)
139 tests->interrupt = -1;
145 tests->interrupt = 0;
168 tests->interrupt = 1;
174 struct efx_self_tests *tests)
222 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1;
223 tests->eventq_int[channel->channel] = int_seen ? 1 : -1;
254 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests,
260 rc = efx_mcdi_phy_run_tests(efx, tests->phy_ext, flags);
611 static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests,
662 &tests->loopback[mode]);
687 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
699 rc = efx_test_phy_alive(efx, tests);
703 rc = efx_test_nvram(efx, tests);
707 rc = efx_test_interrupts(efx, tests);
711 rc = efx_test_eventq_irq(efx, tests);
719 return efx_test_phy(efx, tests, flags);
730 rc_reset = efx->type->test_chip(efx, tests);
738 if ((tests->memory < 0 || tests->registers < 0) && !rc_test)
743 * for the bist and loopback tests */
750 rc = efx_test_phy(efx, tests, flags);
754 rc = efx_test_loopbacks(efx, tests, efx->loopback_modes);