Lines Matching defs:need
32 * need for some recovery.
125 enum zfcp_erp_act_type need = want;
132 need = 0;
136 need = 0;
141 need = 0;
150 need = 0;
158 return need;
166 enum zfcp_erp_act_type need = want;
181 need = ZFCP_ERP_ACTION_REOPEN_PORT;
186 need = ZFCP_ERP_ACTION_REOPEN_PORT;
197 return need;
199 need = ZFCP_ERP_ACTION_REOPEN_ADAPTER;
210 return need;
213 static struct zfcp_erp_action *zfcp_erp_setup_act(enum zfcp_erp_act_type need,
222 if (WARN_ON_ONCE(need != ZFCP_ERP_ACTION_REOPEN_LUN &&
223 need != ZFCP_ERP_ACTION_REOPEN_PORT &&
224 need != ZFCP_ERP_ACTION_REOPEN_PORT_FORCED &&
225 need != ZFCP_ERP_ACTION_REOPEN_ADAPTER))
228 switch (need) {
275 erp_action->type = need;
287 enum zfcp_erp_act_type need;
290 need = zfcp_erp_handle_failed(want, adapter, port, sdev);
291 if (!need) {
292 need = ZFCP_ERP_ACTION_FAILED; /* marker for trace */
297 need = ZFCP_ERP_ACTION_NONE; /* marker for trace */
301 need = zfcp_erp_required_act(want, adapter, port, sdev);
302 if (!need)
305 act = zfcp_erp_setup_act(need, act_status, adapter, port, sdev);
307 need |= ZFCP_ERP_ACTION_NONE; /* marker for trace */
315 zfcp_dbf_rec_trig(dbftag, adapter, port, sdev, want, need);
836 * handlers. We need to make up for that now, and make all the updates
1664 * there are no pending erp_actions which would need to be handled