Lines Matching refs:tests
82 * @payload: Payload used in tests
99 * MII, NVRAM and register tests
103 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests)
108 tests->phy_alive = rc ? -1 : 1;
113 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests)
122 tests->nvram = rc ? -1 : 1;
136 struct efx_self_tests *tests)
143 tests->interrupt = -1;
149 tests->interrupt = 0;
172 tests->interrupt = 1;
178 struct efx_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 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests,
264 rc = efx_mcdi_phy_run_tests(efx, tests->phy_ext, flags);
618 static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests,
669 &tests->loopback[mode]);
694 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
706 rc = efx_test_phy_alive(efx, tests);
710 rc = efx_test_nvram(efx, tests);
714 rc = efx_test_interrupts(efx, tests);
718 rc = efx_test_eventq_irq(efx, tests);
726 return efx_test_phy(efx, tests, flags);
737 rc_reset = efx->type->test_chip(efx, tests);
745 if ((tests->memory < 0 || tests->registers < 0) && !rc_test)
750 * for the bist and loopback tests */
757 rc = efx_test_phy(efx, tests, flags);
761 rc = efx_test_loopbacks(efx, tests, efx->loopback_modes);