Lines Matching refs:remoteport

132 	struct nvme_fc_remote_port	remoteport;
198 return container_of(portptr, struct nvme_fc_rport, remoteport);
501 if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY))
509 rport->remoteport.node_name, rport->remoteport.port_name);
519 localport_to_lport(rport->remoteport.localport);
522 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED);
531 ida_free(&lport->endp_cnt, rport->remoteport.port_num);
592 if (rport->remoteport.node_name != pinfo->node_name ||
593 rport->remoteport.port_name != pinfo->port_name)
606 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) {
613 rport->remoteport.port_role = pinfo->port_role;
614 rport->remoteport.port_id = pinfo->port_id;
615 rport->remoteport.port_state = FC_OBJSTATE_ONLINE;
643 rport->remoteport.dev_loss_tmo = pinfo->dev_loss_tmo;
645 rport->remoteport.dev_loss_tmo = NVME_FC_DEFAULT_DEV_LOSS_TMO;
680 * look to see if there is already a remoteport that is waiting
696 *portptr = &newrec->remoteport;
700 /* nothing found - allocate a new remoteport struct */
722 newrec->remoteport.localport = &lport->localport;
727 newrec->remoteport.private = &newrec[1];
729 newrec->remoteport.private = NULL;
730 newrec->remoteport.port_role = pinfo->port_role;
731 newrec->remoteport.node_name = pinfo->node_name;
732 newrec->remoteport.port_name = pinfo->port_name;
733 newrec->remoteport.port_id = pinfo->port_id;
734 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE;
735 newrec->remoteport.port_num = idx;
745 *portptr = &newrec->remoteport;
772 &rport->remoteport,
796 * (max_retries * connect_delay) expires or the remoteport's
813 * remoteport's dev_loss_tmo expires.
897 * @remoteport: pointer to the (registered) remote port that is to be
903 nvme_fc_rescan_remoteport(struct nvme_fc_remote_port *remoteport)
905 struct nvme_fc_rport *rport = remoteport_to_rport(remoteport);
926 rport->remoteport.dev_loss_tmo = dev_loss_tmo;
1066 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
1096 &rport->remoteport, lsreq);
1489 ret = lport->ops->xmt_ls_rsp(&lport->localport, &rport->remoteport,
1677 if (rport->remoteport.port_state == FC_OBJSTATE_ONLINE) {
1717 * was received from. The remoteport is associated with
1792 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE) {
1861 &ctrl->rport->remoteport,
2681 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
2748 &ctrl->rport->remoteport,
2774 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE &&
2798 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE ||
3044 if (rport->remoteport.port_state == FC_OBJSTATE_DELETED)
3045 lport->ops->remoteport_delete(&rport->remoteport);
3067 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
3077 ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
3297 struct nvme_fc_remote_port *portptr = &rport->remoteport;
3337 "while waiting for remoteport connectivity.\n",
3361 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE) {
3452 if (!(rport->remoteport.port_role &
3706 if (rport->remoteport.node_name != raddr.nn ||
3707 rport->remoteport.port_name != raddr.pn ||
3708 rport->remoteport.port_state != FC_OBJSTATE_ONLINE)