Lines Matching refs:state

131  * NOTE: the caller must make sure that state and or flags will prevent
242 * lock. This causes a timing hole regarding state change. To close the
246 * make sure that state and or flags will prevent interrupt handler from
285 dev_dbg(&vscsi->dev, "free_command_q: flags 0x%x, state 0x%hx, acr_flags 0x%x, acr_state 0x%hx\n",
286 vscsi->flags, vscsi->state, vscsi->phyp_acr_flags,
403 * the state of the adapter.
422 dev_dbg(&vscsi->dev, "disconnect: flags 0x%x, state 0x%hx\n",
423 vscsi->flags, vscsi->state);
426 * check which state we are in and see if we
427 * should transitition to the new state
429 switch (vscsi->state) {
430 /* Should never be called while in this state. */
433 * Can never transition from this state;
439 /* can transition from this state to UNCONFIGURING */
442 vscsi->state = new_state;
446 * Can transition from this state to to unconfiguring
453 vscsi->state = new_state;
463 /* can transition from this state to UNCONFIGURING */
466 vscsi->state = new_state;
472 vscsi->state = new_state;
487 dev_err(&vscsi->dev, "disconnect: invalid state %d for WAIT_IDLE\n",
488 vscsi->state);
497 vscsi->state = new_state;
504 vscsi->state = new_state;
521 vscsi->state = new_state;
524 /* can transition from this state to UNCONFIGURING */
527 vscsi->state = new_state;
565 * the new state (if the one passed in is more "severe" than the
574 uint state;
576 /* check the validity of the new state */
585 dev_err(&vscsi->dev, "post_disconnect: Invalid new state %d\n",
592 dev_dbg(&vscsi->dev, "post_disconnect: new_state 0x%x, flag_bits 0x%x, vscsi->flags 0x%x, state %hx\n",
593 new_state, flag_bits, vscsi->flags, vscsi->state);
603 state = vscsi->new_state;
605 state = vscsi->state;
607 switch (state) {
657 switch (vscsi->state) {
668 vscsi->state = CONNECTED;
677 dev_err(&vscsi->dev, "init_msg: invalid state %d to get init compl msg\n",
678 vscsi->state);
696 switch (vscsi->state) {
701 vscsi->state = CONNECTED;
743 dev_err(&vscsi->dev, "init_msg: invalid state %d to get init msg\n",
744 vscsi->state);
764 dev_dbg(&vscsi->dev, "init_msg: state 0x%hx\n", vscsi->state);
845 vscsi->state = UNDEFINED;
888 vscsi->state = WAIT_CONNECTION;
893 vscsi->state = WAIT_CONNECTION;
906 vscsi->state = ERR_DISCONNECTED;
911 vscsi->state = ERR_DISCONNECTED;
983 dev_dbg(&vscsi->dev, "ready_suspend: flags 0x%x, state 0x%hx crq_valid:%x\n",
984 vscsi->flags, vscsi->state, (int)crq->valid);
999 vscsi->state = ERR_DISCONNECT_RECONNECT;
1002 } else if (vscsi->state == CONNECTED) {
1035 dev_dbg(&vscsi->dev, "trans_event: format %d, flags 0x%x, state 0x%hx\n",
1036 (int)crq->format, vscsi->flags, vscsi->state);
1045 switch (vscsi->state) {
1098 switch (vscsi->state) {
1105 vscsi->resume_state = vscsi->state;
1118 dev_err(&vscsi->dev, "Invalid state for Prepare for Suspend Trans Event: 0x%x\n",
1119 vscsi->state);
1151 dev_dbg(&vscsi->dev, "Leaving trans_event: flags 0x%x, state 0x%hx, rc %ld\n",
1152 vscsi->flags, vscsi->state, rc);
1174 dev_dbg(&vscsi->dev, "poll_cmd_q: flags 0x%x, state 0x%hx, q index %ud\n",
1175 vscsi->flags, vscsi->state, vscsi->cmd_q.index);
1193 * in an error state, dont break out until all
1316 dev_dbg(&vscsi->dev, "adapter_idle: flags 0x%x, state 0x%hx\n",
1317 vscsi->flags, vscsi->state);
1320 if (vscsi->state != WAIT_CONNECTION || vscsi->flags & TRANS_EVENT)
1323 switch (vscsi->state) {
1344 vscsi->state = ERR_DISCONNECTED;
1346 vscsi->state = WAIT_ENABLED;
1347 dev_dbg(&vscsi->dev, "adapter_idle, disc: flags 0x%x, state 0x%hx\n",
1348 vscsi->flags, vscsi->state);
1356 vscsi->state = vscsi->resume_state;
1363 vscsi->state = WAIT_CONNECTION;
1366 vscsi->state = CONNECTED;
1370 dev_dbg(&vscsi->dev, "adapter_idle, wait: flags 0x%x, state 0x%hx\n",
1371 vscsi->flags, vscsi->state);
1377 dev_dbg(&vscsi->dev, "adapter_idle, disconnected: flags 0x%x, state 0x%hx\n",
1378 vscsi->flags, vscsi->state);
1382 dev_err(&vscsi->dev, "adapter_idle: in invalid state %d\n",
1383 vscsi->state);
1395 * made with a "more severe" state (DISCONNECT or UNCONFIGURING).
1402 * Fix is that free command queue sets acr state and acr flags if there
1404 * note free command queue writes to this state it clears it
1419 dev_dbg(&vscsi->dev, "adapter_idle: flags 0x%x, state 0x%hx, acr_flags 0x%x, acr_state 0x%hx\n",
1420 vscsi->flags, vscsi->state, vscsi->phyp_acr_flags,
1424 dev_dbg(&vscsi->dev, "Leaving adapter_idle: flags 0x%x, state 0x%hx, new_state 0x%x\n",
1425 vscsi->flags, vscsi->state, vscsi->new_state);
1746 if (vscsi->state == CONNECTED) {
1782 if (!(vscsi->state & (ERR_DISCONNECT |
1785 dev_err(&vscsi->dev, "snd_msg_failed: setting RESPONSE_Q_DOWN, state 0x%hx, flags 0x%x, rc %ld\n",
1786 vscsi->state, vscsi->flags, rc);
1801 * or more children will be in a state where
1809 (vscsi->state == SRP_PROCESSING)) {
1850 if (!(vscsi->state & (ERR_DISCONNECT |
2032 switch (vscsi->state) {
2039 dev_dbg(&vscsi->dev, "mad: in Wait Connection state, ignoring MAD, flags %d\n",
2056 dev_err(&vscsi->dev, "mad: invalid adapter state %d for mad\n",
2057 vscsi->state);
2305 if (vscsi->state == SRP_PROCESSING)
2324 vscsi->state = SRP_PROCESSING;
2405 if (vscsi->state == SRP_PROCESSING) {
2450 } else if (srp->opcode == SRP_LOGIN_REQ && vscsi->state == CONNECTED) {
2454 dev_err(&vscsi->dev, "Invalid state %d to handle srp cmd\n",
2455 vscsi->state);
2968 * ibmvscsis_enable_change_state() - Set new state based on enabled status
2971 * This function determines our new state now that we are enabled. This
2984 vscsi->state = WAIT_CONNECTION;
2989 vscsi->state = ERR_DISCONNECTED;
3051 vscsi->state = NO_QUEUE;
3183 dev_err(&vscsi->dev, "build_response: error copying to client, rc %ld, flags 0x%x, state 0x%hx\n",
3184 rc, vscsi->flags, vscsi->state);
3351 dev_dbg(&vscsi->dev, "handle_crq, don't process: flags 0x%x, state 0x%hx\n",
3352 vscsi->flags, vscsi->state);
3379 * in an error state, dont break out until all
3422 dev_dbg(&vscsi->dev, "handle_crq, error: flags 0x%x, state 0x%hx, crq index 0x%x\n",
3423 vscsi->flags, vscsi->state, vscsi->cmd_q.index);
3426 dev_dbg(&vscsi->dev, "Leaving handle_crq: schedule_q empty %d, flags 0x%x, state 0x%hx\n",
3428 vscsi->state);
3565 vscsi->state = WAIT_ENABLED;
4000 dev_err(&vscsi->dev, "enable_change_state failed, rc %ld state %d\n",
4001 lrc, vscsi->state);
4011 dev_dbg(&vscsi->dev, "tpg_enable_store, tmp %ld, state %d\n", tmp,
4012 vscsi->state);