Lines Matching refs:port_state
166 fc_enum_name_search(port_state, fc_port_state, fc_port_state_names)
167 fc_enum_name_match(port_state, fc_port_state, fc_port_state_names)
424 fc_host->port_state = FC_PORTSTATE_UNKNOWN; in fc_host_setup()
658 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn()
997 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
998 (rport->port_state == FC_PORTSTATE_DELETED) || \
999 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
1015 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
1016 (rport->port_state == FC_PORTSTATE_DELETED) || \
1017 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
1158 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in fc_rport_set_dev_loss_tmo()
1159 (rport->port_state == FC_PORTSTATE_DELETED) || in fc_rport_set_dev_loss_tmo()
1160 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in fc_rport_set_dev_loss_tmo()
1246 enum fc_port_state port_state; in fc_rport_set_marginal_state() local
1249 ret = get_fc_port_state_match(buf, &port_state); in fc_rport_set_marginal_state()
1252 if (port_state == FC_PORTSTATE_MARGINAL) { in fc_rport_set_marginal_state()
1258 if (rport->port_state == FC_PORTSTATE_ONLINE) in fc_rport_set_marginal_state()
1259 rport->port_state = port_state; in fc_rport_set_marginal_state()
1262 } else if (port_state == FC_PORTSTATE_ONLINE) { in fc_rport_set_marginal_state()
1268 if (rport->port_state == FC_PORTSTATE_MARGINAL) in fc_rport_set_marginal_state()
1269 rport->port_state = port_state; in fc_rport_set_marginal_state()
1284 name = get_fc_port_state_name(rport->port_state); in show_fc_rport_port_state()
1291 static FC_DEVICE_ATTR(rport, port_state, 0444 | 0200,
1319 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in store_fc_rport_fast_io_fail_tmo()
1320 (rport->port_state == FC_PORTSTATE_DELETED) || in store_fc_rport_fast_io_fail_tmo()
1321 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in store_fc_rport_fast_io_fail_tmo()
1979 fc_host_rd_enum_attr(port_state, FC_PORTSTATE_MAX_NAMELEN);
2027 rport->port_state = FC_PORTSTATE_DELETED; in store_fc_private_host_tgtid_bind_type()
2543 if (rport->port_state == FC_PORTSTATE_BLOCKED) in fc_eh_timed_out()
2567 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_user_scan_tgt()
2568 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_user_scan_tgt()
2704 SETUP_HOST_ATTRIBUTE_RD(port_state); in fc_attach_transport()
2736 SETUP_PRIVATE_RPORT_ATTRIBUTE_RW(port_state); in fc_attach_transport()
2902 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
2909 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
3079 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_create()
3202 if ((rport->port_state == FC_PORTSTATE_BLOCKED || in fc_remote_port_add()
3203 rport->port_state == FC_PORTSTATE_NOTPRESENT) && in fc_remote_port_add()
3230 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3340 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3432 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_remote_port_delete()
3433 (rport->port_state != FC_PORTSTATE_MARGINAL)) { in fc_remote_port_delete()
3451 rport->port_state = FC_PORTSTATE_BLOCKED; in fc_remote_port_delete()
3575 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_timeout_deleted_rport()
3576 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_timeout_deleted_rport()
3589 if (rport->port_state != FC_PORTSTATE_BLOCKED) { in fc_timeout_deleted_rport()
3601 rport->port_state = FC_PORTSTATE_DELETED; in fc_timeout_deleted_rport()
3629 rport->port_state = FC_PORTSTATE_NOTPRESENT; in fc_timeout_deleted_rport()
3642 if (rport->port_state == FC_PORTSTATE_NOTPRESENT) { /* still missing */ in fc_timeout_deleted_rport()
3699 if (rport->port_state != FC_PORTSTATE_BLOCKED) in fc_timeout_fail_rport_io()
3719 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_scsi_scan_rport()
3720 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_scsi_scan_rport()
3753 while (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_block_rport()
3806 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_eh_should_retry_cmd()
4060 if (rport && rport->port_state == FC_PORTSTATE_BLOCKED) in fc_bsg_job_timeout()
4242 if (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_bsg_rport_prep()
4246 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_bsg_rport_prep()
4247 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_bsg_rport_prep()