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
114 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
128 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk()
136 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
138 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
142 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
152 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) { in lpfc_dev_loss_tmo_callbk()
155 (unsigned long)rport->port_name, in lpfc_dev_loss_tmo_callbk()
159 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
161 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
164 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
169 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
171 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
175 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
215 struct fc_rport *rport; in lpfc_dev_loss_tmo_handler() local
224 rport = ndlp->rport; in lpfc_dev_loss_tmo_handler()
226 if (!rport) { in lpfc_dev_loss_tmo_handler()
231 rdata = rport->dd_data; in lpfc_dev_loss_tmo_handler()
241 ndlp->nlp_DID, ndlp->nlp_type, rport->scsi_target_id); in lpfc_dev_loss_tmo_handler()
245 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_handler()
259 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_handler()
261 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
266 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
285 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_handler()
287 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
292 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
325 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_handler()
327 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
332 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
3903 struct fc_rport *rport; in lpfc_register_remote_port() local
3921 if (ndlp->rport && ndlp->rport->dd_data && in lpfc_register_remote_port()
3922 ((struct lpfc_rport_data *) ndlp->rport->dd_data)->pnode == ndlp) in lpfc_register_remote_port()
3933 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); in lpfc_register_remote_port()
3934 if (!rport || !get_device(&rport->dev)) { in lpfc_register_remote_port()
3941 rport->maxframe_size = ndlp->nlp_maxframe; in lpfc_register_remote_port()
3942 rport->supported_classes = ndlp->nlp_class_sup; in lpfc_register_remote_port()
3943 rdata = rport->dd_data; in lpfc_register_remote_port()
3952 fc_remote_port_rolechg(rport, rport_ids.roles); in lpfc_register_remote_port()
3956 ndlp->nlp_DID, rport, rport_ids.roles); in lpfc_register_remote_port()
3958 if ((rport->scsi_target_id != -1) && in lpfc_register_remote_port()
3959 (rport->scsi_target_id < LPFC_MAX_TARGET)) { in lpfc_register_remote_port()
3960 ndlp->nlp_sid = rport->scsi_target_id; in lpfc_register_remote_port()
3968 struct fc_rport *rport = ndlp->rport; in lpfc_unregister_remote_port() local
3976 ndlp->nlp_DID, rport); in lpfc_unregister_remote_port()
3978 fc_remote_port_delete(rport); in lpfc_unregister_remote_port()
4037 if (ndlp->rport && (old_state == NLP_STE_MAPPED_NODE || in lpfc_nlp_state_cleanup()
4076 (!ndlp->rport || in lpfc_nlp_state_cleanup()
4077 ndlp->rport->scsi_target_id == -1 || in lpfc_nlp_state_cleanup()
4078 ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) { in lpfc_nlp_state_cleanup()
4805 if (ndlp->rport) { in lpfc_nlp_remove()
4806 rdata = ndlp->rport->dd_data; in lpfc_nlp_remove()
4808 ndlp->rport = NULL; in lpfc_nlp_remove()
5918 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport && in lpfc_fcf_inuse()
5919 (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) { in lpfc_fcf_inuse()