Lines Matching defs:rport
86 /* The source of a terminate rport I/O is either a dev_loss_tmo
87 * event or a call to fc_remove_host. While the rport should be
93 lpfc_rport_invalid(struct fc_rport *rport)
98 if (!rport) {
99 pr_err("**** %s: NULL rport, exit.\n", __func__);
103 rdata = rport->dd_data;
105 pr_err("**** %s: NULL dd_data on rport x%px SID x%x\n",
106 __func__, rport, rport->scsi_target_id);
112 pr_info("**** %s: NULL ndlp on rport x%px SID x%x\n",
113 __func__, rport, rport->scsi_target_id);
118 pr_err("**** %s: Null vport on ndlp x%px, DID x%x rport x%px "
119 "SID x%x\n", __func__, ndlp, ndlp->nlp_DID, rport,
120 rport->scsi_target_id);
127 lpfc_terminate_rport_io(struct fc_rport *rport)
133 if (lpfc_rport_invalid(rport))
136 rdata = rport->dd_data;
140 "rport terminate: sid:x%x did:x%x flg:x%x",
151 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
159 ndlp = ((struct lpfc_rport_data *)rport->dd_data)->pnode;
167 "rport devlosscb: sid:x%x did:x%x flg:x%x",
171 "3181 dev_loss_callbk x%06x, rport x%px flg x%x "
173 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag,
180 ndlp->rport = NULL;
182 /* The scsi_transport is done with the rport so lpfc cannot
217 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn))
219 "6789 rport name %llx != node port name %llx",
220 rport->port_name,
227 "6790 rport name %llx dev_loss_evt pending\n",
228 rport->port_name);
243 * rport. Remove the association between rport and ndlp.
246 ((struct lpfc_rport_data *)rport->dd_data)->pnode = NULL;
247 ndlp->rport = NULL;
266 " rport x%px flg x%x load_flag x%x refcnt "
268 ndlp->rport, ndlp->nlp_flag,
449 "rport devlosstmo:did:x%x type:x%x id:x%x",
457 /* If the driver is recovering the rport, ignore devloss. */
4502 struct fc_rport *rport;
4519 "rport add: did:x%x flg:x%x type x%x",
4526 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids);
4527 if (!rport) {
4534 rport->maxframe_size = ndlp->nlp_maxframe;
4535 rport->supported_classes = ndlp->nlp_class_sup;
4536 rdata = rport->dd_data;
4540 "Warning - node ref failed. Unreg rport\n");
4541 fc_remote_port_delete(rport);
4542 ndlp->rport = NULL;
4562 fc_remote_port_rolechg(rport, rport_ids.roles);
4565 "3183 %s rport x%px DID x%x, role x%x refcnt %d\n",
4566 __func__, rport, rport->port_id, rport->roles,
4569 if ((rport->scsi_target_id != -1) &&
4570 (rport->scsi_target_id < LPFC_MAX_TARGET)) {
4571 ndlp->nlp_sid = rport->scsi_target_id;
4580 struct fc_rport *rport = ndlp->rport;
4587 "rport delete: did:x%x flg:x%x type x%x",
4591 "3184 rport unregister x%06x, rport x%px "
4593 ndlp->nlp_DID, rport, ndlp->fc4_xpt_flags,
4596 fc_remote_port_delete(rport);
4675 /* Notify the NVME transport of this new rport. */
4679 /* Register this rport with the transport.
4707 "0999 %s Not regd: ndlp x%px rport x%px DID "
4709 __func__, ndlp, ndlp->rport, ndlp->nlp_DID,
4717 if (ndlp->rport &&
4721 } else if (!ndlp->rport) {
4832 (!ndlp->rport ||
4833 ndlp->rport->scsi_target_id == -1 ||
4834 ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) {
5750 /* The NVME Target does not want to actively manage an rport.
5769 /* NVME Target mode waits until rport is known to be
6104 * calls lpfc_nlp_state_cleanup, the ndlp->rport is unregistered
6776 if (ndlp->rport &&
6777 (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) {