Lines Matching refs:ndlp

642 	struct lpfc_nodelist *ndlp = NULL;  in lpfc_clr_rrq_active()  local
644 if ((rrq->vport) && NLP_CHK_NODE_ACT(rrq->ndlp)) in lpfc_clr_rrq_active()
645 ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID); in lpfc_clr_rrq_active()
651 if ((!ndlp) && rrq->ndlp) in lpfc_clr_rrq_active()
652 ndlp = rrq->ndlp; in lpfc_clr_rrq_active()
654 if (!ndlp) in lpfc_clr_rrq_active()
657 if (test_and_clear_bit(xritag, ndlp->active_rrqs_xri_bitmap)) { in lpfc_clr_rrq_active()
759 lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_vports_rrqs() argument
770 if (!ndlp) { in lpfc_cleanup_vports_rrqs()
776 if ((rrq->vport == vport) && (!ndlp || rrq->ndlp == ndlp)) in lpfc_cleanup_vports_rrqs()
797 lpfc_test_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_test_rrq_active() argument
800 if (!ndlp) in lpfc_test_rrq_active()
802 if (!ndlp->active_rrqs_xri_bitmap) in lpfc_test_rrq_active()
804 if (test_bit(xritag, ndlp->active_rrqs_xri_bitmap)) in lpfc_test_rrq_active()
826 lpfc_set_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_set_rrq_active() argument
833 if (!ndlp) in lpfc_set_rrq_active()
848 if (NLP_CHK_FREE_REQ(ndlp)) in lpfc_set_rrq_active()
851 if (ndlp->vport && (ndlp->vport->load_flag & FC_UNLOADING)) in lpfc_set_rrq_active()
854 if (!ndlp->active_rrqs_xri_bitmap) in lpfc_set_rrq_active()
857 if (test_and_set_bit(xritag, ndlp->active_rrqs_xri_bitmap)) in lpfc_set_rrq_active()
866 xritag, rxid, ndlp->nlp_DID, send_rrq); in lpfc_set_rrq_active()
876 rrq->ndlp = ndlp; in lpfc_set_rrq_active()
877 rrq->nlp_DID = ndlp->nlp_DID; in lpfc_set_rrq_active()
878 rrq->vport = ndlp->vport; in lpfc_set_rrq_active()
893 xritag, rxid, ndlp->nlp_DID, send_rrq); in lpfc_set_rrq_active()
914 struct lpfc_nodelist *ndlp; in __lpfc_sli_get_sglq() local
919 ndlp = lpfc_cmd->rdata->pnode; in __lpfc_sli_get_sglq()
922 ndlp = piocbq->context_un.ndlp; in __lpfc_sli_get_sglq()
925 ndlp = NULL; in __lpfc_sli_get_sglq()
927 ndlp = piocbq->context_un.ndlp; in __lpfc_sli_get_sglq()
929 ndlp = piocbq->context1; in __lpfc_sli_get_sglq()
937 if (lpfc_test_rrq_active(phba, ndlp, sglq->sli4_lxritag)) { in __lpfc_sli_get_sglq()
951 sglq->ndlp = ndlp; in __lpfc_sli_get_sglq()
1024 sglq->ndlp = NULL; in __lpfc_sli_release_iocbq_s4()
2164 struct lpfc_nodelist *ndlp; in lpfc_sli_def_mbox_cmpl() local
2203 ndlp = (struct lpfc_nodelist *)pmb->context2; in lpfc_sli_def_mbox_cmpl()
2204 lpfc_nlp_put(ndlp); in lpfc_sli_def_mbox_cmpl()
2237 struct lpfc_nodelist *ndlp; in lpfc_sli4_unreg_rpi_cmpl_clr() local
2239 ndlp = pmb->context1; in lpfc_sli4_unreg_rpi_cmpl_clr()
2245 if (ndlp) { in lpfc_sli4_unreg_rpi_cmpl_clr()
2249 vport->vpi, ndlp->nlp_rpi, in lpfc_sli4_unreg_rpi_cmpl_clr()
2250 ndlp->nlp_DID, in lpfc_sli4_unreg_rpi_cmpl_clr()
2251 ndlp->nlp_usg_map, ndlp); in lpfc_sli4_unreg_rpi_cmpl_clr()
2253 lpfc_nlp_put(ndlp); in lpfc_sli4_unreg_rpi_cmpl_clr()
8201 struct lpfc_nodelist *ndlp; in lpfc_sli4_iocb2wqe() local
8251 ndlp = iocbq->context_un.ndlp; in lpfc_sli4_iocb2wqe()
8253 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8302 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8306 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8478 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8516 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8569 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8599 ndlp->nlp_DID); in lpfc_sli4_iocb2wqe()
8959 struct lpfc_nodelist *ndlp = NULL; in lpfc_sli_abts_err_handler() local
8975 ndlp = lpfc_findnode_rpi(vport, rpi); in lpfc_sli_abts_err_handler()
8976 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) in lpfc_sli_abts_err_handler()
8980 lpfc_sli_abts_recover_port(vport, ndlp); in lpfc_sli_abts_err_handler()
9003 struct lpfc_nodelist *ndlp, in lpfc_sli4_abts_err_handler() argument
9009 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_sli4_abts_err_handler()
9016 vport = ndlp->vport; in lpfc_sli4_abts_err_handler()
9020 ndlp->vport->vpi, phba->sli4_hba.rpi_ids[ndlp->nlp_rpi], in lpfc_sli4_abts_err_handler()
9033 lpfc_sli_abts_recover_port(vport, ndlp); in lpfc_sli4_abts_err_handler()
10181 struct lpfc_nodelist *ndlp; in lpfc_sli_abort_taskmgmt() local
10237 ndlp = lpfc_cmd->rdata->pnode; in lpfc_sli_abort_taskmgmt()
10240 (ndlp && ndlp->nlp_state == NLP_STE_MAPPED_NODE)) in lpfc_sli_abort_taskmgmt()
10922 struct lpfc_nodelist *ndlp; in lpfc_sli_sp_intr_handler() local
11122 ndlp = (struct lpfc_nodelist *) in lpfc_sli_sp_intr_handler()
11137 pmb->context2 = ndlp; in lpfc_sli_sp_intr_handler()
11673 struct lpfc_nodelist *ndlp; in lpfc_sli4_sp_handle_mbox_event() local
11725 ndlp = (struct lpfc_nodelist *)pmb->context2; in lpfc_sli4_sp_handle_mbox_event()
11733 pmb->context2 = ndlp; in lpfc_sli4_sp_handle_mbox_event()
15029 struct lpfc_nodelist *ndlp; in lpfc_sli4_seq_abort_rsp_cmpl() local
15032 ndlp = (struct lpfc_nodelist *)cmd_iocbq->context1; in lpfc_sli4_seq_abort_rsp_cmpl()
15033 lpfc_nlp_put(ndlp); in lpfc_sli4_seq_abort_rsp_cmpl()
15034 lpfc_nlp_not_used(ndlp); in lpfc_sli4_seq_abort_rsp_cmpl()
15081 struct lpfc_nodelist *ndlp; in lpfc_sli4_seq_abort_rsp() local
15094 ndlp = lpfc_findnode_did(vport, sid); in lpfc_sli4_seq_abort_rsp()
15095 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15096 ndlp = mempool_alloc(phba->nlp_mem_pool, GFP_KERNEL); in lpfc_sli4_seq_abort_rsp()
15097 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15103 lpfc_nlp_init(vport, ndlp, sid); in lpfc_sli4_seq_abort_rsp()
15105 lpfc_enqueue_node(vport, ndlp); in lpfc_sli4_seq_abort_rsp()
15106 } else if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_sli4_seq_abort_rsp()
15108 ndlp = lpfc_enable_node(vport, ndlp, NLP_STE_UNUSED_NODE); in lpfc_sli4_seq_abort_rsp()
15109 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15137 icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_sli4_seq_abort_rsp()
15138 ctiocb->context1 = lpfc_nlp_get(ndlp); in lpfc_sli4_seq_abort_rsp()
15155 lpfc_set_rrq_active(phba, ndlp, lxri, in lpfc_sli4_seq_abort_rsp()
15209 lpfc_nlp_put(ndlp); in lpfc_sli4_seq_abort_rsp()
15823 lpfc_sli4_resume_rpi(struct lpfc_nodelist *ndlp, in lpfc_sli4_resume_rpi() argument
15827 struct lpfc_hba *phba = ndlp->phba; in lpfc_sli4_resume_rpi()
15836 lpfc_resume_rpi(mboxq, ndlp); in lpfc_sli4_resume_rpi()
15840 mboxq->context2 = ndlp; in lpfc_sli4_resume_rpi()
15843 mboxq->vport = ndlp->vport; in lpfc_sli4_resume_rpi()
16880 struct lpfc_nodelist *ndlp; in lpfc_cleanup_pending_mbox() local
16931 ndlp = (struct lpfc_nodelist *)mb->context2; in lpfc_cleanup_pending_mbox()
16937 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
16956 ndlp = (struct lpfc_nodelist *) mb->context2; in lpfc_cleanup_pending_mbox()
16958 if (ndlp) { in lpfc_cleanup_pending_mbox()
16960 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
16962 lpfc_nlp_put(ndlp); in lpfc_cleanup_pending_mbox()