Lines Matching refs:ndlp
532 __lpfc_set_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in __lpfc_set_rrq_active() argument
541 if (!ndlp) in __lpfc_set_rrq_active()
551 did = ndlp->nlp_DID; in __lpfc_set_rrq_active()
558 if (NLP_CHK_FREE_REQ(ndlp)) in __lpfc_set_rrq_active()
561 if (ndlp->vport && (ndlp->vport->load_flag & FC_UNLOADING)) in __lpfc_set_rrq_active()
564 if (test_and_set_bit(adj_xri, ndlp->active_rrqs.xri_bitmap)) in __lpfc_set_rrq_active()
572 rrq->ndlp = ndlp; in __lpfc_set_rrq_active()
573 rrq->nlp_DID = ndlp->nlp_DID; in __lpfc_set_rrq_active()
574 rrq->vport = ndlp->vport; in __lpfc_set_rrq_active()
607 struct lpfc_nodelist *ndlp = NULL; in lpfc_clr_rrq_active() local
609 if ((rrq->vport) && NLP_CHK_NODE_ACT(rrq->ndlp)) in lpfc_clr_rrq_active()
610 ndlp = lpfc_findnode_did(rrq->vport, rrq->nlp_DID); in lpfc_clr_rrq_active()
616 if ((!ndlp) && rrq->ndlp) in lpfc_clr_rrq_active()
617 ndlp = rrq->ndlp; in lpfc_clr_rrq_active()
619 if (!ndlp) in lpfc_clr_rrq_active()
623 if (test_and_clear_bit(adj_xri, ndlp->active_rrqs.xri_bitmap)) { in lpfc_clr_rrq_active()
724 lpfc_cleanup_vports_rrqs(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) in lpfc_cleanup_vports_rrqs() argument
735 if (!ndlp) { in lpfc_cleanup_vports_rrqs()
741 if ((rrq->vport == vport) && (!ndlp || rrq->ndlp == ndlp)) in lpfc_cleanup_vports_rrqs()
796 lpfc_test_rrq_active(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, in lpfc_test_rrq_active() argument
802 if (!ndlp) in lpfc_test_rrq_active()
804 if (test_bit(adj_xri, 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 ret = __lpfc_set_rrq_active(phba, ndlp, xritag, rxid, send_rrq); in lpfc_set_rrq_active()
856 struct lpfc_nodelist *ndlp; in __lpfc_sli_get_sglq() local
861 ndlp = lpfc_cmd->rdata->pnode; in __lpfc_sli_get_sglq()
864 ndlp = piocbq->context_un.ndlp; in __lpfc_sli_get_sglq()
866 ndlp = piocbq->context1; in __lpfc_sli_get_sglq()
875 if (lpfc_test_rrq_active(phba, ndlp, sglq->sli4_xritag)) { in __lpfc_sli_get_sglq()
889 sglq->ndlp = ndlp; in __lpfc_sli_get_sglq()
959 sglq->ndlp = NULL; in __lpfc_sli_release_iocbq_s4()
2096 struct lpfc_nodelist *ndlp; in lpfc_sli_def_mbox_cmpl() local
2135 ndlp = (struct lpfc_nodelist *)pmb->context2; in lpfc_sli_def_mbox_cmpl()
2136 lpfc_nlp_put(ndlp); in lpfc_sli_def_mbox_cmpl()
8703 struct lpfc_nodelist *ndlp; in lpfc_sli_sp_intr_handler() local
8903 ndlp = (struct lpfc_nodelist *) in lpfc_sli_sp_intr_handler()
8918 pmb->context2 = ndlp; in lpfc_sli_sp_intr_handler()
9382 struct lpfc_nodelist *ndlp; in lpfc_sli4_sp_handle_mbox_event() local
9429 ndlp = (struct lpfc_nodelist *)pmb->context2; in lpfc_sli4_sp_handle_mbox_event()
9437 pmb->context2 = ndlp; in lpfc_sli4_sp_handle_mbox_event()
12138 struct lpfc_nodelist *ndlp; in lpfc_sli4_seq_abort_rsp() local
12151 ndlp = lpfc_findnode_did(phba->pport, sid); in lpfc_sli4_seq_abort_rsp()
12152 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
12161 lpfc_set_rrq_active(phba, ndlp, rxid, oxid, 0); in lpfc_sli4_seq_abort_rsp()
12183 icmd->ulpContext = ndlp->nlp_rpi; in lpfc_sli4_seq_abort_rsp()
12184 ctiocb->context1 = ndlp; in lpfc_sli4_seq_abort_rsp()
12750 lpfc_sli4_resume_rpi(struct lpfc_nodelist *ndlp) in lpfc_sli4_resume_rpi() argument
12753 struct lpfc_hba *phba = ndlp->phba; in lpfc_sli4_resume_rpi()
12762 lpfc_resume_rpi(mboxq, ndlp); in lpfc_sli4_resume_rpi()
13493 struct lpfc_nodelist *ndlp; in lpfc_cleanup_pending_mbox() local
13544 ndlp = (struct lpfc_nodelist *)mb->context2; in lpfc_cleanup_pending_mbox()
13550 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
13569 ndlp = (struct lpfc_nodelist *) mb->context2; in lpfc_cleanup_pending_mbox()
13571 if (ndlp) { in lpfc_cleanup_pending_mbox()
13573 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
13575 lpfc_nlp_put(ndlp); in lpfc_cleanup_pending_mbox()