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()
2252 ndlp->nlp_flag &= ~NLP_LOGO_ACC; in lpfc_sli4_unreg_rpi_cmpl_clr()
2253 lpfc_nlp_put(ndlp); in lpfc_sli4_unreg_rpi_cmpl_clr()
8171 struct lpfc_nodelist *ndlp; in lpfc_sli4_iocb2wqe() local
8221 ndlp = iocbq->context_un.ndlp; in lpfc_sli4_iocb2wqe()
8223 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8272 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8276 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8448 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8486 phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]); in lpfc_sli4_iocb2wqe()
8539 ndlp = (struct lpfc_nodelist *)iocbq->context1; in lpfc_sli4_iocb2wqe()
8569 ndlp->nlp_DID); in lpfc_sli4_iocb2wqe()
8941 struct lpfc_nodelist *ndlp = NULL; in lpfc_sli_abts_err_handler() local
8957 ndlp = lpfc_findnode_rpi(vport, rpi); in lpfc_sli_abts_err_handler()
8958 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) in lpfc_sli_abts_err_handler()
8962 lpfc_sli_abts_recover_port(vport, ndlp); in lpfc_sli_abts_err_handler()
8985 struct lpfc_nodelist *ndlp, in lpfc_sli4_abts_err_handler() argument
8991 if (!ndlp || !NLP_CHK_NODE_ACT(ndlp)) { in lpfc_sli4_abts_err_handler()
8998 vport = ndlp->vport; in lpfc_sli4_abts_err_handler()
9002 ndlp->vport->vpi, phba->sli4_hba.rpi_ids[ndlp->nlp_rpi], in lpfc_sli4_abts_err_handler()
9015 lpfc_sli_abts_recover_port(vport, ndlp); in lpfc_sli4_abts_err_handler()
10163 struct lpfc_nodelist *ndlp; in lpfc_sli_abort_taskmgmt() local
10219 ndlp = lpfc_cmd->rdata->pnode; in lpfc_sli_abort_taskmgmt()
10222 (ndlp && ndlp->nlp_state == NLP_STE_MAPPED_NODE)) in lpfc_sli_abort_taskmgmt()
10904 struct lpfc_nodelist *ndlp; in lpfc_sli_sp_intr_handler() local
11104 ndlp = (struct lpfc_nodelist *) in lpfc_sli_sp_intr_handler()
11119 pmb->context2 = ndlp; in lpfc_sli_sp_intr_handler()
11655 struct lpfc_nodelist *ndlp; in lpfc_sli4_sp_handle_mbox_event() local
11707 ndlp = (struct lpfc_nodelist *)pmb->context2; in lpfc_sli4_sp_handle_mbox_event()
11715 pmb->context2 = ndlp; in lpfc_sli4_sp_handle_mbox_event()
15005 struct lpfc_nodelist *ndlp; in lpfc_sli4_seq_abort_rsp_cmpl() local
15008 ndlp = (struct lpfc_nodelist *)cmd_iocbq->context1; in lpfc_sli4_seq_abort_rsp_cmpl()
15009 lpfc_nlp_put(ndlp); in lpfc_sli4_seq_abort_rsp_cmpl()
15010 lpfc_nlp_not_used(ndlp); in lpfc_sli4_seq_abort_rsp_cmpl()
15057 struct lpfc_nodelist *ndlp; in lpfc_sli4_seq_abort_rsp() local
15070 ndlp = lpfc_findnode_did(vport, sid); in lpfc_sli4_seq_abort_rsp()
15071 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15072 ndlp = mempool_alloc(phba->nlp_mem_pool, GFP_KERNEL); in lpfc_sli4_seq_abort_rsp()
15073 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15079 lpfc_nlp_init(vport, ndlp, sid); in lpfc_sli4_seq_abort_rsp()
15081 lpfc_enqueue_node(vport, ndlp); in lpfc_sli4_seq_abort_rsp()
15082 } else if (!NLP_CHK_NODE_ACT(ndlp)) { in lpfc_sli4_seq_abort_rsp()
15084 ndlp = lpfc_enable_node(vport, ndlp, NLP_STE_UNUSED_NODE); in lpfc_sli4_seq_abort_rsp()
15085 if (!ndlp) { in lpfc_sli4_seq_abort_rsp()
15113 icmd->ulpContext = phba->sli4_hba.rpi_ids[ndlp->nlp_rpi]; in lpfc_sli4_seq_abort_rsp()
15114 ctiocb->context1 = lpfc_nlp_get(ndlp); in lpfc_sli4_seq_abort_rsp()
15131 lpfc_set_rrq_active(phba, ndlp, lxri, in lpfc_sli4_seq_abort_rsp()
15185 lpfc_nlp_put(ndlp); in lpfc_sli4_seq_abort_rsp()
15799 lpfc_sli4_resume_rpi(struct lpfc_nodelist *ndlp, in lpfc_sli4_resume_rpi() argument
15803 struct lpfc_hba *phba = ndlp->phba; in lpfc_sli4_resume_rpi()
15812 lpfc_resume_rpi(mboxq, ndlp); in lpfc_sli4_resume_rpi()
15816 mboxq->context2 = ndlp; in lpfc_sli4_resume_rpi()
15819 mboxq->vport = ndlp->vport; in lpfc_sli4_resume_rpi()
16854 struct lpfc_nodelist *ndlp; in lpfc_cleanup_pending_mbox() local
16905 ndlp = (struct lpfc_nodelist *)mb->context2; in lpfc_cleanup_pending_mbox()
16911 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
16930 ndlp = (struct lpfc_nodelist *) mb->context2; in lpfc_cleanup_pending_mbox()
16932 if (ndlp) { in lpfc_cleanup_pending_mbox()
16934 ndlp->nlp_flag &= ~NLP_IGNR_REG_CMPL; in lpfc_cleanup_pending_mbox()
16936 lpfc_nlp_put(ndlp); in lpfc_cleanup_pending_mbox()