Lines Matching defs:method
2072 * Note that the kernel will ignore our return code; this method
2345 void ef4_reset_down(struct ef4_nic *efx, enum reset_type method)
2353 if (efx->port_initialized && method != RESET_TYPE_INVISIBLE &&
2354 method != RESET_TYPE_DATAPATH)
2364 int ef4_reset_up(struct ef4_nic *efx, enum reset_type method, bool ok)
2380 if (efx->port_initialized && method != RESET_TYPE_INVISIBLE &&
2381 method != RESET_TYPE_DATAPATH) {
2413 /* Reset the NIC using the specified method. Note that the reset may
2418 int ef4_reset(struct ef4_nic *efx, enum reset_type method)
2424 RESET_TYPE(method));
2427 ef4_reset_down(efx, method);
2429 rc = efx->type->reset(efx, method);
2438 if (method < RESET_TYPE_MAX_METHOD)
2439 efx->reset_pending &= -(1 << (method + 1));
2441 __clear_bit(method, &efx->reset_pending);
2452 method == RESET_TYPE_DISABLE ||
2453 method == RESET_TYPE_RECOVER_OR_DISABLE;
2454 rc2 = ef4_reset_up(efx, method, !disabled);
2503 enum reset_type method;
2506 method = fls(pending) - 1;
2508 if ((method == RESET_TYPE_RECOVER_OR_DISABLE ||
2509 method == RESET_TYPE_RECOVER_OR_ALL) &&
2523 (void)ef4_reset(efx, method);
2530 enum reset_type method;
2547 method = type;
2549 RESET_TYPE(method));
2552 method = efx->type->map_reset_reason(type);
2555 RESET_TYPE(method), RESET_TYPE(type));
2559 set_bit(method, &efx->reset_pending);