Lines Matching refs:port_state
167 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names)
168 fc_enum_name_match(port_state, fc_port_state, fc_port_state_names)
425 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup()
661 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn()
995 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
996 (rport->port_state == FC_PORTSTATE_DELETED) || \
997 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
1013 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
1014 (rport->port_state == FC_PORTSTATE_DELETED) || \
1015 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
1156 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in fc_rport_set_dev_loss_tmo()
1157 (rport->port_state == FC_PORTSTATE_DELETED) || in fc_rport_set_dev_loss_tmo()
1158 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in fc_rport_set_dev_loss_tmo()
1244 enum fc_port_state port_state; in fc_rport_set_marginal_state() local
1247 ret = get_fc_port_state_match(buf, &port_state); in fc_rport_set_marginal_state()
1250 if (port_state == FC_PORTSTATE_MARGINAL) { in fc_rport_set_marginal_state()
1256 if (rport->port_state == FC_PORTSTATE_ONLINE) in fc_rport_set_marginal_state()
1257 rport->port_state = port_state; in fc_rport_set_marginal_state()
1258 else if (port_state != rport->port_state) in fc_rport_set_marginal_state()
1260 } else if (port_state == FC_PORTSTATE_ONLINE) { in fc_rport_set_marginal_state()
1266 if (rport->port_state == FC_PORTSTATE_MARGINAL) in fc_rport_set_marginal_state()
1267 rport->port_state = port_state; in fc_rport_set_marginal_state()
1268 else if (port_state != rport->port_state) in fc_rport_set_marginal_state()
1282 name = get_fc_port_state_name(rport->port_state); in show_fc_rport_port_state()
1289 static FC_DEVICE_ATTR(rport, port_state, 0444 | 0200,
1317 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in store_fc_rport_fast_io_fail_tmo()
1318 (rport->port_state == FC_PORTSTATE_DELETED) || in store_fc_rport_fast_io_fail_tmo()
1319 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in store_fc_rport_fast_io_fail_tmo()
1977 fc_host_rd_enum_attr(port_state, FC_PORTSTATE_MAX_NAMELEN);
2025 rport->port_state = FC_PORTSTATE_DELETED; in store_fc_private_host_tgtid_bind_type()
2540 if (rport->port_state == FC_PORTSTATE_BLOCKED) in fc_eh_timed_out()
2564 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_user_scan_tgt()
2565 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_user_scan_tgt()
2701 SETUP_HOST_ATTRIBUTE_RD(port_state); in fc_attach_transport()
2733 SETUP_PRIVATE_RPORT_ATTRIBUTE_RW(port_state); in fc_attach_transport()
2899 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
2906 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
3076 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_create()
3199 if ((rport->port_state == FC_PORTSTATE_BLOCKED || in fc_remote_port_add()
3200 rport->port_state == FC_PORTSTATE_NOTPRESENT) && in fc_remote_port_add()
3227 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3337 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3429 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_remote_port_delete()
3430 (rport->port_state != FC_PORTSTATE_MARGINAL)) { in fc_remote_port_delete()
3448 rport->port_state = FC_PORTSTATE_BLOCKED; in fc_remote_port_delete()
3572 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_timeout_deleted_rport()
3573 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_timeout_deleted_rport()
3586 if (rport->port_state != FC_PORTSTATE_BLOCKED) { in fc_timeout_deleted_rport()
3598 rport->port_state = FC_PORTSTATE_DELETED; in fc_timeout_deleted_rport()
3626 rport->port_state = FC_PORTSTATE_NOTPRESENT; in fc_timeout_deleted_rport()
3639 if (rport->port_state == FC_PORTSTATE_NOTPRESENT) { /* still missing */ in fc_timeout_deleted_rport()
3696 if (rport->port_state != FC_PORTSTATE_BLOCKED) in fc_timeout_fail_rport_io()
3716 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_scsi_scan_rport()
3717 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_scsi_scan_rport()
3750 while (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_block_rport()
3803 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_eh_should_retry_cmd()
4057 if (rport && rport->port_state == FC_PORTSTATE_BLOCKED) in fc_bsg_job_timeout()
4239 if (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_bsg_rport_prep()
4243 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_bsg_rport_prep()
4244 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_bsg_rport_prep()