Lines Matching refs:method
2579 void efx_reset_down(struct efx_nic *efx, enum reset_type method) in efx_reset_down() argument
2583 if (method == RESET_TYPE_MCDI_TIMEOUT) in efx_reset_down()
2590 if (efx->port_initialized && method != RESET_TYPE_INVISIBLE && in efx_reset_down()
2591 method != RESET_TYPE_DATAPATH) in efx_reset_down()
2601 int efx_reset_up(struct efx_nic *efx, enum reset_type method, bool ok) in efx_reset_up() argument
2607 if (method == RESET_TYPE_MCDI_TIMEOUT) in efx_reset_up()
2620 if (efx->port_initialized && method != RESET_TYPE_INVISIBLE && in efx_reset_up()
2621 method != RESET_TYPE_DATAPATH) { in efx_reset_up()
2668 int efx_reset(struct efx_nic *efx, enum reset_type method) in efx_reset() argument
2674 RESET_TYPE(method)); in efx_reset()
2677 efx_reset_down(efx, method); in efx_reset()
2679 rc = efx->type->reset(efx, method); in efx_reset()
2688 if (method < RESET_TYPE_MAX_METHOD) in efx_reset()
2689 efx->reset_pending &= -(1 << (method + 1)); in efx_reset()
2691 __clear_bit(method, &efx->reset_pending); in efx_reset()
2702 method == RESET_TYPE_DISABLE || in efx_reset()
2703 method == RESET_TYPE_RECOVER_OR_DISABLE; in efx_reset()
2704 rc2 = efx_reset_up(efx, method, !disabled); in efx_reset()
2771 enum reset_type method; in efx_reset_work() local
2774 method = fls(pending) - 1; in efx_reset_work()
2776 if (method == RESET_TYPE_MC_BIST) in efx_reset_work()
2779 if ((method == RESET_TYPE_RECOVER_OR_DISABLE || in efx_reset_work()
2780 method == RESET_TYPE_RECOVER_OR_ALL) && in efx_reset_work()
2794 (void)efx_reset(efx, method); in efx_reset_work()
2801 enum reset_type method; in efx_schedule_reset() local
2820 method = type; in efx_schedule_reset()
2822 RESET_TYPE(method)); in efx_schedule_reset()
2825 method = efx->type->map_reset_reason(type); in efx_schedule_reset()
2828 RESET_TYPE(method), RESET_TYPE(type)); in efx_schedule_reset()
2832 set_bit(method, &efx->reset_pending); in efx_schedule_reset()