Lines Matching refs:localport

120 	struct nvme_fc_local_port	localport;  member
192 return container_of(portptr, struct nvme_fc_lport, localport); in localport_to_lport()
247 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport()
255 ida_free(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport()
287 if (lport->localport.node_name != pinfo->node_name || in nvme_fc_attach_to_unreg_lport()
288 lport->localport.port_name != pinfo->port_name) in nvme_fc_attach_to_unreg_lport()
296 if (lport->localport.port_state != FC_OBJSTATE_DELETED) { in nvme_fc_attach_to_unreg_lport()
313 lport->localport.port_role = pinfo->port_role; in nvme_fc_attach_to_unreg_lport()
314 lport->localport.port_id = pinfo->port_id; in nvme_fc_attach_to_unreg_lport()
315 lport->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_attach_to_unreg_lport()
382 *portptr = &newrec->localport; in nvme_fc_register_localport()
414 newrec->localport.private = &newrec[1]; in nvme_fc_register_localport()
416 newrec->localport.private = NULL; in nvme_fc_register_localport()
417 newrec->localport.node_name = pinfo->node_name; in nvme_fc_register_localport()
418 newrec->localport.port_name = pinfo->port_name; in nvme_fc_register_localport()
419 newrec->localport.port_role = pinfo->port_role; in nvme_fc_register_localport()
420 newrec->localport.port_id = pinfo->port_id; in nvme_fc_register_localport()
421 newrec->localport.port_state = FC_OBJSTATE_ONLINE; in nvme_fc_register_localport()
422 newrec->localport.port_num = idx; in nvme_fc_register_localport()
431 *portptr = &newrec->localport; in nvme_fc_register_localport()
475 lport->ops->localport_delete(&lport->localport); in nvme_fc_unregister_localport()
506 lport->localport.node_name, lport->localport.port_name); in nvme_fc_signal_discovery_scan()
519 localport_to_lport(rport->remoteport.localport); in nvme_fc_free_rport()
665 nvme_fc_register_remoteport(struct nvme_fc_local_port *localport, in nvme_fc_register_remoteport() argument
669 struct nvme_fc_lport *lport = localport_to_lport(localport); in nvme_fc_register_remoteport()
722 newrec->remoteport.localport = &lport->localport; in nvme_fc_register_remoteport()
771 rport->lport->ops->ls_abort(&rport->lport->localport, in nvme_fc_abort_lsops()
1095 ret = rport->lport->ops->ls_req(&rport->lport->localport, in __nvme_fc_send_ls_req()
1489 ret = lport->ops->xmt_ls_rsp(&lport->localport, &rport->remoteport, in nvme_fc_xmt_ls_rsp()
1860 ctrl->lport->ops->fcp_abort(&ctrl->lport->localport, in __nvme_fc_abort_op()
2298 ctrl->lport->ops->delete_queue(&ctrl->lport->localport, qidx, in __nvme_fc_delete_hw_queue()
2320 ret = ctrl->lport->ops->create_queue(&ctrl->lport->localport, in __nvme_fc_create_hw_queue()
2747 ret = ctrl->lport->ops->fcp_io(&ctrl->lport->localport, in nvme_fc_start_fcp_op()
2875 ctrl->lport->ops->map_queues(&ctrl->lport->localport, in nvme_fc_map_queues()
3013 if (cnt == 0 && lport->localport.port_state == FC_OBJSTATE_DELETED) in nvme_fc_rport_inactive_on_lport()
3014 lport->ops->localport_delete(&lport->localport); in nvme_fc_rport_inactive_on_lport()
3076 ctrl->cnum, ctrl->lport->localport.port_name, in nvme_fc_create_association()
3700 if (lport->localport.node_name != laddr.nn || in nvme_fc_create_ctrl()
3701 lport->localport.port_name != laddr.pn || in nvme_fc_create_ctrl()
3702 lport->localport.port_state != FC_OBJSTATE_ONLINE) in nvme_fc_create_ctrl()