Lines Matching defs:tests
83 * @payload: Payload used in tests
100 * MII, NVRAM and register tests
104 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests)
109 tests->phy_alive = rc ? -1 : 1;
114 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests)
123 tests->nvram = rc ? -1 : 1;
137 struct efx_self_tests *tests)
144 tests->interrupt = -1;
150 tests->interrupt = 0;
173 tests->interrupt = 1;
179 struct efx_self_tests *tests)
227 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1;
228 tests->eventq_int[channel->channel] = int_seen ? 1 : -1;
259 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests,
265 rc = efx_siena_mcdi_phy_run_tests(efx, tests->phy_ext, flags);
623 static int efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests,
674 &tests->loopback[mode]);
699 int efx_siena_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
711 rc = efx_test_phy_alive(efx, tests);
715 rc = efx_test_nvram(efx, tests);
719 rc = efx_test_interrupts(efx, tests);
723 rc = efx_test_eventq_irq(efx, tests);
731 return efx_test_phy(efx, tests, flags);
742 rc_reset = efx->type->test_chip(efx, tests);
750 if ((tests->memory < 0 || tests->registers < 0) && !rc_test)
755 * for the bist and loopback tests */
762 rc = efx_test_phy(efx, tests, flags);
766 rc = efx_test_loopbacks(efx, tests, efx->loopback_modes);