Lines Matching refs:remoteport
132 struct nvme_fc_remote_port remoteport; member
198 return container_of(portptr, struct nvme_fc_rport, remoteport); in remoteport_to_rport()
508 if (!(rport->remoteport.port_role & FC_PORT_ROLE_NVME_DISCOVERY)) in nvme_fc_signal_discovery_scan()
516 rport->remoteport.node_name, rport->remoteport.port_name); in nvme_fc_signal_discovery_scan()
526 localport_to_lport(rport->remoteport.localport); in nvme_fc_free_rport()
529 WARN_ON(rport->remoteport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_rport()
538 ida_free(&lport->endp_cnt, rport->remoteport.port_num); in nvme_fc_free_rport()
599 if (rport->remoteport.node_name != pinfo->node_name || in nvme_fc_attach_to_suspended_rport()
600 rport->remoteport.port_name != pinfo->port_name) in nvme_fc_attach_to_suspended_rport()
613 if (rport->remoteport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_suspended_rport()
620 rport->remoteport.port_role = pinfo->port_role; in nvme_fc_attach_to_suspended_rport()
621 rport->remoteport.port_id = pinfo->port_id; in nvme_fc_attach_to_suspended_rport()
622 rport->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_suspended_rport()
650 rport->remoteport.dev_loss_tmo = pinfo->dev_loss_tmo; in __nvme_fc_set_dev_loss_tmo()
652 rport->remoteport.dev_loss_tmo = NVME_FC_DEFAULT_DEV_LOSS_TMO; in __nvme_fc_set_dev_loss_tmo()
703 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
729 newrec->remoteport.localport = &lport->localport; in nvme_fc_register_remoteport()
734 newrec->remoteport.private = &newrec[1]; in nvme_fc_register_remoteport()
736 newrec->remoteport.private = NULL; in nvme_fc_register_remoteport()
737 newrec->remoteport.port_role = pinfo->port_role; in nvme_fc_register_remoteport()
738 newrec->remoteport.node_name = pinfo->node_name; in nvme_fc_register_remoteport()
739 newrec->remoteport.port_name = pinfo->port_name; in nvme_fc_register_remoteport()
740 newrec->remoteport.port_id = pinfo->port_id; in nvme_fc_register_remoteport()
741 newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_remoteport()
742 newrec->remoteport.port_num = idx; in nvme_fc_register_remoteport()
752 *portptr = &newrec->remoteport; in nvme_fc_register_remoteport()
779 &rport->remoteport, in nvme_fc_abort_lsops()
910 nvme_fc_rescan_remoteport(struct nvme_fc_remote_port *remoteport) in nvme_fc_rescan_remoteport() argument
912 struct nvme_fc_rport *rport = remoteport_to_rport(remoteport); in nvme_fc_rescan_remoteport()
933 rport->remoteport.dev_loss_tmo = dev_loss_tmo; in nvme_fc_set_remoteport_devloss()
1073 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE) in __nvme_fc_send_ls_req()
1103 &rport->remoteport, lsreq); in __nvme_fc_send_ls_req()
1494 ret = lport->ops->xmt_ls_rsp(&lport->localport, &rport->remoteport, in nvme_fc_xmt_ls_rsp()
1682 if (rport->remoteport.port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_handle_ls_rqst_work()
1788 if (rport->remoteport.port_state != FC_OBJSTATE_ONLINE) { in nvme_fc_rcv_ls_req()
1855 &ctrl->rport->remoteport, in __nvme_fc_abort_op()
2684 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE) in nvme_fc_start_fcp_op()
2751 &ctrl->rport->remoteport, in nvme_fc_start_fcp_op()
2777 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE && in nvme_fc_start_fcp_op()
2801 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE || in nvme_fc_queue_rq()
3066 if (rport->remoteport.port_state == FC_OBJSTATE_DELETED) in nvme_fc_ctlr_inactive_on_rport()
3067 lport->ops->remoteport_delete(&rport->remoteport); in nvme_fc_ctlr_inactive_on_rport()
3089 if (ctrl->rport->remoteport.port_state != FC_OBJSTATE_ONLINE) in nvme_fc_create_association()
3099 ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn); in nvme_fc_create_association()
3318 struct nvme_fc_remote_port *portptr = &rport->remoteport; in nvme_fc_reconnect_or_delete()
3382 if (ctrl->rport->remoteport.port_state == FC_OBJSTATE_ONLINE) { in nvme_fc_reset_ctrl_work()
3473 if (!(rport->remoteport.port_role & in nvme_fc_init_ctrl()
3756 if (rport->remoteport.node_name != raddr.nn || in nvme_fc_create_ctrl()
3757 rport->remoteport.port_name != raddr.pn || in nvme_fc_create_ctrl()
3758 rport->remoteport.port_state != FC_OBJSTATE_ONLINE) in nvme_fc_create_ctrl()