Lines Matching defs:rport
77 lpfc_terminate_rport_io(struct fc_rport *rport)
83 rdata = rport->dd_data;
87 if (rport->roles & FC_RPORT_ROLE_FCP_TARGET)
90 rport->port_id);
97 "rport terminate: sid:x%x did:x%x flg:x%x",
111 lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
123 rdata = rport->dd_data;
132 "rport devlosscb: sid:x%x did:x%x flg:x%x",
136 "3181 dev_loss_callbk x%06x, rport x%px flg x%x\n",
137 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag);
141 * appropriately we just need to cleanup the ndlp rport info here.
145 put_rport = ndlp->rport != NULL;
147 ndlp->rport = NULL;
151 put_device(&rport->dev);
158 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn))
160 "6789 rport name %llx != node port name %llx",
161 rport->port_name,
168 "6790 rport name %llx dev_loss_evt pending",
169 rport->port_name);
208 struct fc_rport *rport;
218 rport = ndlp->rport;
226 if (!rport)
236 "rport devlosstmo:did:x%x type:x%x id:x%x",
237 ndlp->nlp_DID, ndlp->nlp_type, rport->scsi_target_id);
240 "3182 dev_loss_tmo_handler x%06x, rport x%px flg x%x\n",
241 ndlp->nlp_DID, ndlp->rport, ndlp->nlp_flag);
244 * lpfc_nlp_remove if reached with dangling rport drops the
245 * reference. To make sure that does not happen clear rport
248 rdata = rport->dd_data;
252 * appropriately we just need to cleanup the ndlp rport info here.
263 ndlp->rport = NULL;
266 put_device(&rport->dev);
284 ndlp->rport = NULL;
287 put_device(&rport->dev);
4167 struct fc_rport *rport;
4182 * We leave our node pointer in rport->dd_data when we unregister a
4184 * rport->dd_data points. So, if we're reusing a previously
4188 rport = ndlp->rport;
4189 if (rport) {
4190 rdata = rport->dd_data;
4192 ndlp->rport = NULL;
4199 put_device(&rport->dev);
4203 "rport add: did:x%x flg:x%x type x%x",
4210 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids);
4211 if (!rport || !get_device(&rport->dev)) {
4218 rport->maxframe_size = ndlp->nlp_maxframe;
4219 rport->supported_classes = ndlp->nlp_class_sup;
4220 rdata = rport->dd_data;
4235 fc_remote_port_rolechg(rport, rport_ids.roles);
4238 "3183 rport register x%06x, rport x%px role x%x\n",
4239 ndlp->nlp_DID, rport, rport_ids.roles);
4241 if ((rport->scsi_target_id != -1) &&
4242 (rport->scsi_target_id < LPFC_MAX_TARGET)) {
4243 ndlp->nlp_sid = rport->scsi_target_id;
4251 struct fc_rport *rport = ndlp->rport;
4258 "rport delete: did:x%x flg:x%x type x%x",
4262 "3184 rport unregister x%06x, rport x%px\n",
4263 ndlp->nlp_DID, rport);
4265 fc_remote_port_delete(rport);
4327 if (ndlp->rport) {
4360 /* Notify the NVME transport of this new rport. */
4364 /* Register this rport with the transport.
4405 (!ndlp->rport ||
4406 ndlp->rport->scsi_target_id == -1 ||
4407 ndlp->rport->scsi_target_id >= LPFC_MAX_TARGET)) {
5287 struct fc_rport *rport;
5328 * ndlp->rport must be set to NULL before it reaches here
5329 * i.e. break rport/node link before doing lpfc_nlp_put for
5330 * registered rport and then drop the reference of rport.
5332 if (ndlp->rport) {
5335 * for registered rport so need to cleanup rport
5339 "rpi %d rport not null x%px\n",
5341 ndlp->rport);
5342 rport = ndlp->rport;
5343 rdata = rport->dd_data;
5345 ndlp->rport = NULL;
5346 put_device(&rport->dev);
5531 /* The NVME Target does not want to actively manage an rport.
5550 /* NVME Target mode waits until rport is known to be
6594 if (NLP_CHK_NODE_ACT(ndlp) && ndlp->rport &&
6595 (ndlp->rport->roles & FC_RPORT_ROLE_FCP_TARGET)) {