Lines Matching refs:ndlp
57 lpfc_get_nvme_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp,
359 struct lpfc_nodelist *ndlp; in lpfc_nvme_remoteport_delete() local
361 ndlp = rport->ndlp; in lpfc_nvme_remoteport_delete()
362 if (!ndlp) in lpfc_nvme_remoteport_delete()
365 vport = ndlp->vport; in lpfc_nvme_remoteport_delete()
381 if (ndlp->upcall_flags & NLP_WAIT_FOR_UNREG) { in lpfc_nvme_remoteport_delete()
382 ndlp->nrport = NULL; in lpfc_nvme_remoteport_delete()
383 ndlp->upcall_flags &= ~NLP_WAIT_FOR_UNREG; in lpfc_nvme_remoteport_delete()
389 lpfc_nlp_put(ndlp); in lpfc_nvme_remoteport_delete()
426 vport = axchg->ndlp->vport; in lpfc_nvme_handle_lsreq()
427 lpfc_rport = axchg->ndlp->nrport; in lpfc_nvme_handle_lsreq()
475 struct lpfc_nodelist *ndlp; in __lpfc_nvme_ls_req_cmp() local
479 ndlp = (struct lpfc_nodelist *)cmdwqe->context1; in __lpfc_nvme_ls_req_cmp()
486 pnvme_lsreq, ndlp ? ndlp->nlp_DID : 0, in __lpfc_nvme_ls_req_cmp()
489 cmdwqe, pnvme_lsreq, cmdwqe->context3, ndlp); in __lpfc_nvme_ls_req_cmp()
506 pnvme_lsreq, ndlp ? ndlp->nlp_DID : 0, in __lpfc_nvme_ls_req_cmp()
508 if (ndlp) { in __lpfc_nvme_ls_req_cmp()
509 lpfc_nlp_put(ndlp); in __lpfc_nvme_ls_req_cmp()
546 struct lpfc_nodelist *ndlp, uint32_t num_entry, in lpfc_nvme_gen_req() argument
569 genwqe->context1 = lpfc_nlp_get(ndlp); in lpfc_nvme_gen_req()
613 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_nvme_gen_req()
648 genwqe->sli4_xritag, genwqe->iotag, ndlp->nlp_DID); in lpfc_nvme_gen_req()
655 ndlp->nlp_DID, genwqe->iotag, in lpfc_nvme_gen_req()
665 ndlp->nlp_DID, genwqe->sli4_xritag, in lpfc_nvme_gen_req()
687 __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in __lpfc_nvme_ls_req() argument
698 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in __lpfc_nvme_ls_req()
702 ndlp); in __lpfc_nvme_ls_req()
706 ntype = ndlp->nlp_type; in __lpfc_nvme_ls_req()
707 nstate = ndlp->nlp_state; in __lpfc_nvme_ls_req()
713 ndlp->nlp_DID, ntype, nstate); in __lpfc_nvme_ls_req()
737 ndlp->nlp_DID); in __lpfc_nvme_ls_req()
746 ndlp->nlp_DID); in __lpfc_nvme_ls_req()
770 ndlp->nlp_DID, pnvme_lsreq, pnvme_lsreq->rqstlen, in __lpfc_nvme_ls_req()
775 pnvme_lsreq, gen_req_cmp, ndlp, 2, in __lpfc_nvme_ls_req()
781 pnvme_lsreq, ret, ndlp->nlp_DID); in __lpfc_nvme_ls_req()
824 ret = __lpfc_nvme_ls_req(vport, rport->ndlp, pnvme_lsreq, in lpfc_nvme_ls_req()
847 __lpfc_nvme_ls_abort(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, in __lpfc_nvme_ls_abort() argument
855 if (!ndlp) { in __lpfc_nvme_ls_abort()
859 ndlp, ndlp ? ndlp->nlp_DID : 0); in __lpfc_nvme_ls_abort()
947 struct lpfc_nodelist *ndlp; in lpfc_nvme_ls_abort() local
959 ndlp = lpfc_findnode_did(vport, pnvme_rport->port_id); in lpfc_nvme_ls_abort()
961 ret = __lpfc_nvme_ls_abort(vport, ndlp, pnvme_lsreq); in lpfc_nvme_ls_abort()
1085 struct lpfc_nodelist *ndlp; in lpfc_nvme_io_cmd_wqe_cmpl() local
1139 ndlp = lpfc_ncmd->ndlp; in lpfc_nvme_io_cmd_wqe_cmpl()
1140 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_nvme_io_cmd_wqe_cmpl()
1616 struct lpfc_nodelist *ndlp; in lpfc_nvme_fcp_io_submit() local
1675 ndlp = rport->ndlp; in lpfc_nvme_fcp_io_submit()
1676 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_nvme_fcp_io_submit()
1680 rport, ndlp, pnvme_rport->port_id); in lpfc_nvme_fcp_io_submit()
1687 if ((ndlp->nlp_type & NLP_NVME_TARGET) && in lpfc_nvme_fcp_io_submit()
1688 (ndlp->nlp_state != NLP_STE_MAPPED_NODE)) { in lpfc_nvme_fcp_io_submit()
1693 ndlp->nlp_state, ndlp->nlp_type, in lpfc_nvme_fcp_io_submit()
1694 ndlp->upcall_flags); in lpfc_nvme_fcp_io_submit()
1715 if (lpfc_ndlp_check_qdepth(phba, ndlp)) { in lpfc_nvme_fcp_io_submit()
1716 if ((atomic_read(&ndlp->cmd_pending) >= ndlp->cmd_qdepth) && in lpfc_nvme_fcp_io_submit()
1721 lpfc_queue_info->index, ndlp->nlp_DID, in lpfc_nvme_fcp_io_submit()
1722 atomic_read(&ndlp->cmd_pending), in lpfc_nvme_fcp_io_submit()
1723 ndlp->cmd_qdepth); in lpfc_nvme_fcp_io_submit()
1738 lpfc_ncmd = lpfc_get_nvme_buf(phba, ndlp, idx, expedite); in lpfc_nvme_fcp_io_submit()
1744 lpfc_queue_info->index, ndlp->nlp_DID); in lpfc_nvme_fcp_io_submit()
1765 lpfc_ncmd->ndlp = ndlp; in lpfc_nvme_fcp_io_submit()
1779 lpfc_nvme_prep_io_cmd(vport, lpfc_ncmd, ndlp, cstat); in lpfc_nvme_fcp_io_submit()
1785 lpfc_queue_info->index, ndlp->nlp_DID); in lpfc_nvme_fcp_io_submit()
1793 lpfc_queue_info->index, ndlp->nlp_DID); in lpfc_nvme_fcp_io_submit()
1801 ret, vport->fc_myDID, ndlp->nlp_DID, in lpfc_nvme_fcp_io_submit()
2090 lpfc_get_nvme_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_get_nvme_buf() argument
2126 if (lpfc_ndlp_check_qdepth(phba, ndlp)) { in lpfc_get_nvme_buf()
2127 atomic_inc(&ndlp->cmd_pending); in lpfc_get_nvme_buf()
2155 if ((lpfc_ncmd->flags & LPFC_SBUF_BUMP_QDEPTH) && lpfc_ncmd->ndlp) in lpfc_release_nvme_buf()
2156 atomic_dec(&lpfc_ncmd->ndlp->cmd_pending); in lpfc_release_nvme_buf()
2158 lpfc_ncmd->ndlp = NULL; in lpfc_release_nvme_buf()
2422 lpfc_nvme_register_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_nvme_register_port() argument
2433 struct fc_rport *srport = ndlp->rport; in lpfc_nvme_register_port()
2435 lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_NVME_DISC, in lpfc_nvme_register_port()
2437 ndlp->nlp_DID, ndlp->nlp_type); in lpfc_nvme_register_port()
2452 rpinfo.port_id = ndlp->nlp_DID; in lpfc_nvme_register_port()
2453 if (ndlp->nlp_type & NLP_NVME_TARGET) in lpfc_nvme_register_port()
2455 if (ndlp->nlp_type & NLP_NVME_INITIATOR) in lpfc_nvme_register_port()
2458 if (ndlp->nlp_type & NLP_NVME_DISCOVERY) in lpfc_nvme_register_port()
2461 rpinfo.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_nvme_register_port()
2462 rpinfo.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn); in lpfc_nvme_register_port()
2469 oldrport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_register_port()
2471 prev_ndlp = oldrport->ndlp; in lpfc_nvme_register_port()
2475 lpfc_nlp_get(ndlp); in lpfc_nvme_register_port()
2488 ndlp->upcall_flags &= ~NLP_WAIT_FOR_UNREG; in lpfc_nvme_register_port()
2498 ndlp->nrport = NULL; in lpfc_nvme_register_port()
2499 ndlp->upcall_flags &= ~NLP_WAIT_FOR_UNREG; in lpfc_nvme_register_port()
2501 rport->ndlp = NULL; in lpfc_nvme_register_port()
2508 if (prev_ndlp && prev_ndlp != ndlp) { in lpfc_nvme_register_port()
2518 rport->ndlp = ndlp; in lpfc_nvme_register_port()
2520 ndlp->nrport = rport; in lpfc_nvme_register_port()
2531 ndlp, prev_ndlp); in lpfc_nvme_register_port()
2537 ret, ndlp->nlp_DID); in lpfc_nvme_register_port()
2554 lpfc_nvme_rescan_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_nvme_rescan_port() argument
2561 nrport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_rescan_port()
2569 ndlp->nlp_DID, ndlp->nlp_type, ndlp->nlp_state, in lpfc_nvme_rescan_port()
2577 ndlp->nlp_state == NLP_STE_MAPPED_NODE) { in lpfc_nvme_rescan_port()
2583 ndlp->nlp_DID, remoteport->port_state); in lpfc_nvme_rescan_port()
2606 lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_nvme_unregister_port() argument
2628 rport = lpfc_ndlp_get_nrport(ndlp); in lpfc_nvme_unregister_port()
2640 ndlp->nlp_type); in lpfc_nvme_unregister_port()
2646 if (ndlp->nlp_type & NLP_NVME_TARGET) { in lpfc_nvme_unregister_port()
2650 ndlp->upcall_flags |= NLP_WAIT_FOR_UNREG; in lpfc_nvme_unregister_port()
2662 lpfc_nlp_put(ndlp); in lpfc_nvme_unregister_port()
2675 vport->localport, ndlp->rport, ndlp->nlp_DID); in lpfc_nvme_unregister_port()
2695 struct lpfc_nodelist *ndlp = lpfc_ncmd->ndlp; in lpfc_sli4_nvme_xri_aborted() local
2698 if (ndlp) in lpfc_sli4_nvme_xri_aborted()
2699 lpfc_sli4_abts_err_handler(phba, ndlp, axri); in lpfc_sli4_nvme_xri_aborted()