Lines Matching refs:rport
77 lpfc_terminate_rport_io(struct fc_rport *rport) in lpfc_terminate_rport_io() argument
83 rdata = rport->dd_data; in lpfc_terminate_rport_io()
87 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET) in lpfc_terminate_rport_io()
90 rport->port_id); in lpfc_terminate_rport_io()
111 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) in lpfc_dev_loss_tmo_callbk() argument
123 rdata = rport->dd_data; in lpfc_dev_loss_tmo_callbk()
137 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_callbk()
145 put_rport = ndlp->rport != NULL; in lpfc_dev_loss_tmo_callbk()
147 ndlp->rport = NULL; in lpfc_dev_loss_tmo_callbk()
151 put_device(&rport->dev); in lpfc_dev_loss_tmo_callbk()
158 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) in lpfc_dev_loss_tmo_callbk()
161 rport->port_name, in lpfc_dev_loss_tmo_callbk()
169 rport->port_name); in lpfc_dev_loss_tmo_callbk()
208 struct fc_rport *rport; in lpfc_dev_loss_tmo_handler() local
218 rport = ndlp->rport; in lpfc_dev_loss_tmo_handler()
226 if (!rport) in lpfc_dev_loss_tmo_handler()
237 ndlp->nlp_DID, ndlp->nlp_type, rport->scsi_target_id); in lpfc_dev_loss_tmo_handler()
241 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag); in lpfc_dev_loss_tmo_handler()
248 rdata = rport->dd_data; in lpfc_dev_loss_tmo_handler()
263 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
266 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
284 ndlp->rport = NULL; in lpfc_dev_loss_tmo_handler()
287 put_device(&rport->dev); in lpfc_dev_loss_tmo_handler()
4167 struct fc_rport *rport; in lpfc_register_remote_port() local
4188 rport = ndlp->rport; in lpfc_register_remote_port()
4189 if (rport) { in lpfc_register_remote_port()
4190 rdata = rport->dd_data; in lpfc_register_remote_port()
4192 ndlp->rport = NULL; in lpfc_register_remote_port()
4199 put_device(&rport->dev); in lpfc_register_remote_port()
4210 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); in lpfc_register_remote_port()
4211 if (!rport || !get_device(&rport->dev)) { in lpfc_register_remote_port()
4218 rport->maxframe_size = ndlp->nlp_maxframe; in lpfc_register_remote_port()
4219 rport->supported_classes = ndlp->nlp_class_sup; in lpfc_register_remote_port()
4220 rdata = rport->dd_data; in lpfc_register_remote_port()
4235 fc_remote_port_rolechg(rport, rport_ids.roles); in lpfc_register_remote_port()
4239 ndlp->nlp_DID, rport, rport_ids.roles); in lpfc_register_remote_port()
4241 if ((rport->scsi_target_id != -1) && in lpfc_register_remote_port()
4242 (rport->scsi_target_id < LPFC_MAX_TARGET)) { in lpfc_register_remote_port()
4243 ndlp->nlp_sid = rport->scsi_target_id; in lpfc_register_remote_port()
4251 struct fc_rport *rport = ndlp->rport; in lpfc_unregister_remote_port() local
4263 ndlp->nlp_DID, rport); in lpfc_unregister_remote_port()
4265 fc_remote_port_delete(rport); in lpfc_unregister_remote_port()
4327 if (ndlp->rport) { in lpfc_nlp_state_cleanup()
4405 (!ndlp->rport || in lpfc_nlp_state_cleanup()
4406 ndlp->rport->scsi_target_id == -1 || in lpfc_nlp_state_cleanup()
4407 ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) { in lpfc_nlp_state_cleanup()
5287 struct fc_rport *rport; in lpfc_nlp_remove() local
5332 if (ndlp->rport) { in lpfc_nlp_remove()
5341 ndlp->rport); in lpfc_nlp_remove()
5342 rport = ndlp->rport; in lpfc_nlp_remove()
5343 rdata = rport->dd_data; in lpfc_nlp_remove()
5345 ndlp->rport = NULL; in lpfc_nlp_remove()
5346 put_device(&rport->dev); in lpfc_nlp_remove()
6594 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport && in lpfc_fcf_inuse()
6595 (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) { in lpfc_fcf_inuse()