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()
660 if (rport->port_state != FC_PORTSTATE_ONLINE) in fc_find_rport_by_wwpn()
992 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
993 (rport->port_state == FC_PORTSTATE_DELETED) || \
994 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
1010 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
1011 (rport->port_state == FC_PORTSTATE_DELETED) || \
1012 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
1153 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in fc_rport_set_dev_loss_tmo()
1154 (rport->port_state == FC_PORTSTATE_DELETED) || in fc_rport_set_dev_loss_tmo()
1155 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in fc_rport_set_dev_loss_tmo()
1241 enum fc_port_state port_state; in fc_rport_set_marginal_state() local
1244 ret = get_fc_port_state_match(buf, &port_state); in fc_rport_set_marginal_state()
1247 if (port_state == FC_PORTSTATE_MARGINAL) { in fc_rport_set_marginal_state()
1253 if (rport->port_state == FC_PORTSTATE_ONLINE) in fc_rport_set_marginal_state()
1254 rport->port_state = port_state; in fc_rport_set_marginal_state()
1257 } else if (port_state == FC_PORTSTATE_ONLINE) { in fc_rport_set_marginal_state()
1263 if (rport->port_state == FC_PORTSTATE_MARGINAL) in fc_rport_set_marginal_state()
1264 rport->port_state = port_state; in fc_rport_set_marginal_state()
1279 name = get_fc_port_state_name(rport->port_state); in show_fc_rport_port_state()
1286 static FC_DEVICE_ATTR(rport, port_state, 0444 | 0200,
1314 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in store_fc_rport_fast_io_fail_tmo()
1315 (rport->port_state == FC_PORTSTATE_DELETED) || in store_fc_rport_fast_io_fail_tmo()
1316 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in store_fc_rport_fast_io_fail_tmo()
1974 fc_host_rd_enum_attr(port_state, FC_PORTSTATE_MAX_NAMELEN);
2022 rport->port_state = FC_PORTSTATE_DELETED; in store_fc_private_host_tgtid_bind_type()
2538 if (rport->port_state == FC_PORTSTATE_BLOCKED) in fc_eh_timed_out()
2562 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_user_scan_tgt()
2563 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_user_scan_tgt()
2699 SETUP_HOST_ATTRIBUTE_RD(port_state); in fc_attach_transport()
2731 SETUP_PRIVATE_RPORT_ATTRIBUTE_RW(port_state); in fc_attach_transport()
2897 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
2904 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
3074 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_create()
3197 if ((rport->port_state == FC_PORTSTATE_BLOCKED || in fc_remote_port_add()
3198 rport->port_state == FC_PORTSTATE_NOTPRESENT) && in fc_remote_port_add()
3225 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3335 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3427 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_remote_port_delete()
3428 (rport->port_state != FC_PORTSTATE_MARGINAL)) { in fc_remote_port_delete()
3446 rport->port_state = FC_PORTSTATE_BLOCKED; in fc_remote_port_delete()
3570 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_timeout_deleted_rport()
3571 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_timeout_deleted_rport()
3584 if (rport->port_state != FC_PORTSTATE_BLOCKED) { in fc_timeout_deleted_rport()
3596 rport->port_state = FC_PORTSTATE_DELETED; in fc_timeout_deleted_rport()
3624 rport->port_state = FC_PORTSTATE_NOTPRESENT; in fc_timeout_deleted_rport()
3637 if (rport->port_state == FC_PORTSTATE_NOTPRESENT) { /* still missing */ in fc_timeout_deleted_rport()
3694 if (rport->port_state != FC_PORTSTATE_BLOCKED) in fc_timeout_fail_rport_io()
3714 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_scsi_scan_rport()
3715 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_scsi_scan_rport()
3748 while (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_block_rport()
3801 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_eh_should_retry_cmd()
4055 if (rport && rport->port_state == FC_PORTSTATE_BLOCKED) in fc_bsg_job_timeout()
4237 if (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_bsg_rport_prep()
4241 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_bsg_rport_prep()
4242 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_bsg_rport_prep()