Lines Matching refs:remoteport
131 struct nvme_fc_remote_port remoteport;
197 return container_of(portptr, struct nvme_fc_rport, remoteport);
507 if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY))
515 rport->remoteport.node_name, rport->remoteport.port_name);
525 localport_to_lport(rport->remoteport.localport);
528 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED);
537 ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num);
598 if (rport->remoteport.node_name != pinfo->node_name ||
599 rport->remoteport.port_name != pinfo->port_name)
612 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) {
619 rport->remoteport.port_role = pinfo->port_role;
620 rport->remoteport.port_id = pinfo->port_id;
621 rport->remoteport.port_state = FC_OBJSTATE_ONLINE;
649 rport->remoteport.dev_loss_tmo = pinfo->dev_loss_tmo;
651 rport->remoteport.dev_loss_tmo = NVME_FC_DEFAULT_DEV_LOSS_TMO;
686 * look to see if there is already a remoteport that is waiting
702 *portptr = &newrec->remoteport;
706 /* nothing found - allocate a new remoteport struct */
728 newrec->remoteport.localport = &lport->localport;
733 newrec->remoteport.private = &newrec[1];
735 newrec->remoteport.private = NULL;
736 newrec->remoteport.port_role = pinfo->port_role;
737 newrec->remoteport.node_name = pinfo->node_name;
738 newrec->remoteport.port_name = pinfo->port_name;
739 newrec->remoteport.port_id = pinfo->port_id;
740 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE;
741 newrec->remoteport.port_num = idx;
751 *portptr = &newrec->remoteport;
778 &rport->remoteport,
802 * (max_retries * connect_delay) expires or the remoteport's
819 * remoteport's dev_loss_tmo expires.
903 * @remoteport: pointer to the (registered) remote port that is to be
909 nvme_fc_rescan_remoteport(struct nvme_fc_remote_port *remoteport)
911 struct nvme_fc_rport *rport = remoteport_to_rport(remoteport);
932 rport->remoteport.dev_loss_tmo = dev_loss_tmo;
1072 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
1102 &rport->remoteport, lsreq);
1493 ret = lport->ops->xmt_ls_rsp(&lport->localport, &rport->remoteport,
1681 if (rport->remoteport.port_state == FC_OBJSTATE_ONLINE) {
1711 * @remoteport: pointer to the (registered) remote port that the LS
1712 * was received from. The remoteport is associated with
1787 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE) {
1854 &ctrl->rport->remoteport,
2664 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
2731 &ctrl->rport->remoteport,
2757 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE &&
2783 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE ||
3029 if (rport->remoteport.port_state == FC_OBJSTATE_DELETED)
3030 lport->ops->remoteport_delete(&rport->remoteport);
3052 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE)
3062 ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
3274 struct nvme_fc_remote_port *portptr = &rport->remoteport;
3307 "while waiting for remoteport connectivity.\n",
3331 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE) {
3422 if (!(rport->remoteport.port_role &
3705 if (rport->remoteport.node_name != raddr.nn ||
3706 rport->remoteport.port_name != raddr.pn ||
3707 rport->remoteport.port_state != FC_OBJSTATE_ONLINE)