Lines Matching refs:rport
70 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument
76 rdata = rport->dd_data; in lpfc_terminate_rport_io()
80 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io()
83 rport->port_id); in lpfc_terminate_rport_io()
104 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument
115 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
129 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk()
137 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
139 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
143 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
150 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) in lpfc_dev_loss_tmo_callbk()
153 rport->port_name, in lpfc_dev_loss_tmo_callbk()
161 rport->port_name); in lpfc_dev_loss_tmo_callbk()
200 struct fc_rport *rport; in lpfc_dev_loss_tmo_handler() local
209 rport = ndlp->rport; in lpfc_dev_loss_tmo_handler()
217 if (!rport) in lpfc_dev_loss_tmo_handler()
228 ndlp->nlp_DID, ndlp->nlp_type, rport->scsi_target_id); in lpfc_dev_loss_tmo_handler()
232 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_handler()
239 rdata = rport->dd_data; in lpfc_dev_loss_tmo_handler()
254 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
257 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
275 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
278 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
3891 struct fc_rport *rport; in lpfc_register_remote_port() local
3909 rport = ndlp->rport; in lpfc_register_remote_port()
3910 if (rport) { in lpfc_register_remote_port()
3911 rdata = rport->dd_data; in lpfc_register_remote_port()
3913 ndlp->rport = NULL; in lpfc_register_remote_port()
3918 put_device(&rport->dev); in lpfc_register_remote_port()
3929 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); in lpfc_register_remote_port()
3930 if (!rport || !get_device(&rport->dev)) { in lpfc_register_remote_port()
3937 rport->maxframe_size = ndlp->nlp_maxframe; in lpfc_register_remote_port()
3938 rport->supported_classes = ndlp->nlp_class_sup; in lpfc_register_remote_port()
3939 rdata = rport->dd_data; in lpfc_register_remote_port()
3948 fc_remote_port_rolechg(rport, rport_ids.roles); in lpfc_register_remote_port()
3952 ndlp->nlp_DID, rport, rport_ids.roles); in lpfc_register_remote_port()
3954 if ((rport->scsi_target_id != -1) && in lpfc_register_remote_port()
3955 (rport->scsi_target_id < LPFC_MAX_TARGET)) { in lpfc_register_remote_port()
3956 ndlp->nlp_sid = rport->scsi_target_id; in lpfc_register_remote_port()
3964 struct fc_rport *rport = ndlp->rport; in lpfc_unregister_remote_port() local
3972 ndlp->nlp_DID, rport); in lpfc_unregister_remote_port()
3974 fc_remote_port_delete(rport); in lpfc_unregister_remote_port()
4033 if (ndlp->rport && (old_state == NLP_STE_MAPPED_NODE || in lpfc_nlp_state_cleanup()
4072 (!ndlp->rport || in lpfc_nlp_state_cleanup()
4073 ndlp->rport->scsi_target_id == -1 || in lpfc_nlp_state_cleanup()
4074 ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) { in lpfc_nlp_state_cleanup()
4769 struct fc_rport *rport; in lpfc_nlp_remove() local
4811 if (ndlp->rport) { in lpfc_nlp_remove()
4819 ndlp, ndlp->nlp_DID, ndlp->rport); in lpfc_nlp_remove()
4820 rport = ndlp->rport; in lpfc_nlp_remove()
4821 rdata = rport->dd_data; in lpfc_nlp_remove()
4823 ndlp->rport = NULL; in lpfc_nlp_remove()
4824 put_device(&rport->dev); in lpfc_nlp_remove()
5944 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport && in lpfc_fcf_inuse()
5945 (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) { in lpfc_fcf_inuse()