• Home
  • Raw
  • Download

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()
990 !((rport->port_state == FC_PORTSTATE_BLOCKED) || \
991 (rport->port_state == FC_PORTSTATE_DELETED) || \
992 (rport->port_state == FC_PORTSTATE_NOTPRESENT))) \
1008 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || \
1009 (rport->port_state == FC_PORTSTATE_DELETED) || \
1010 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) \
1151 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in fc_rport_set_dev_loss_tmo()
1152 (rport->port_state == FC_PORTSTATE_DELETED) || in fc_rport_set_dev_loss_tmo()
1153 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in fc_rport_set_dev_loss_tmo()
1239 enum fc_port_state port_state; in fc_rport_set_marginal_state() local
1242 ret = get_fc_port_state_match(buf, &port_state); in fc_rport_set_marginal_state()
1245 if (port_state == FC_PORTSTATE_MARGINAL) { in fc_rport_set_marginal_state()
1251 if (rport->port_state == FC_PORTSTATE_ONLINE) in fc_rport_set_marginal_state()
1252 rport->port_state = port_state; in fc_rport_set_marginal_state()
1255 } else if (port_state == FC_PORTSTATE_ONLINE) { in fc_rport_set_marginal_state()
1261 if (rport->port_state == FC_PORTSTATE_MARGINAL) in fc_rport_set_marginal_state()
1262 rport->port_state = port_state; in fc_rport_set_marginal_state()
1277 name = get_fc_port_state_name(rport->port_state); in show_fc_rport_port_state()
1284 static FC_DEVICE_ATTR(rport, port_state, 0444 | 0200,
1312 if ((rport->port_state == FC_PORTSTATE_BLOCKED) || in store_fc_rport_fast_io_fail_tmo()
1313 (rport->port_state == FC_PORTSTATE_DELETED) || in store_fc_rport_fast_io_fail_tmo()
1314 (rport->port_state == FC_PORTSTATE_NOTPRESENT)) in store_fc_rport_fast_io_fail_tmo()
1972 fc_host_rd_enum_attr(port_state, FC_PORTSTATE_MAX_NAMELEN);
2020 rport->port_state = FC_PORTSTATE_DELETED; in store_fc_private_host_tgtid_bind_type()
2535 if (rport->port_state == FC_PORTSTATE_BLOCKED) in fc_eh_timed_out()
2559 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_user_scan_tgt()
2560 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_user_scan_tgt()
2696 SETUP_HOST_ATTRIBUTE_RD(port_state); in fc_attach_transport()
2728 SETUP_PRIVATE_RPORT_ATTRIBUTE_RW(port_state); in fc_attach_transport()
2894 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
2901 rport->port_state = FC_PORTSTATE_DELETED; in fc_remove_host()
3071 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_create()
3194 if ((rport->port_state == FC_PORTSTATE_BLOCKED || in fc_remote_port_add()
3195 rport->port_state == FC_PORTSTATE_NOTPRESENT) && in fc_remote_port_add()
3222 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3332 rport->port_state = FC_PORTSTATE_ONLINE; in fc_remote_port_add()
3424 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_remote_port_delete()
3425 (rport->port_state != FC_PORTSTATE_MARGINAL)) { in fc_remote_port_delete()
3443 rport->port_state = FC_PORTSTATE_BLOCKED; in fc_remote_port_delete()
3567 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_timeout_deleted_rport()
3568 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_timeout_deleted_rport()
3581 if (rport->port_state != FC_PORTSTATE_BLOCKED) { in fc_timeout_deleted_rport()
3593 rport->port_state = FC_PORTSTATE_DELETED; in fc_timeout_deleted_rport()
3621 rport->port_state = FC_PORTSTATE_NOTPRESENT; in fc_timeout_deleted_rport()
3634 if (rport->port_state == FC_PORTSTATE_NOTPRESENT) { /* still missing */ in fc_timeout_deleted_rport()
3691 if (rport->port_state != FC_PORTSTATE_BLOCKED) in fc_timeout_fail_rport_io()
3711 if (((rport->port_state == FC_PORTSTATE_ONLINE) || in fc_scsi_scan_rport()
3712 (rport->port_state == FC_PORTSTATE_MARGINAL)) && in fc_scsi_scan_rport()
3745 while (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_block_rport()
3798 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_eh_should_retry_cmd()
4052 if (rport && rport->port_state == FC_PORTSTATE_BLOCKED) in fc_bsg_job_timeout()
4234 if (rport->port_state == FC_PORTSTATE_BLOCKED && in fc_bsg_rport_prep()
4238 if ((rport->port_state != FC_PORTSTATE_ONLINE) && in fc_bsg_rport_prep()
4239 (rport->port_state != FC_PORTSTATE_MARGINAL)) in fc_bsg_rport_prep()