Lines Matching refs:mboxq
438 LPFC_MBOXQ_t *mboxq = NULL; in lpfc_issue_reg_vfi() local
454 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_reg_vfi()
455 if (!mboxq) { in lpfc_issue_reg_vfi()
462 rc = lpfc_mbox_rsrc_prep(phba, mboxq); in lpfc_issue_reg_vfi()
467 dmabuf = mboxq->ctx_buf; in lpfc_issue_reg_vfi()
474 lpfc_reg_vfi(mboxq, vport, dmabuf->phys); in lpfc_issue_reg_vfi()
476 mboxq->ctx_buf = dmabuf; in lpfc_issue_reg_vfi()
478 lpfc_reg_vfi(mboxq, vport, 0); in lpfc_issue_reg_vfi()
481 mboxq->mbox_cmpl = lpfc_mbx_cmpl_reg_vfi; in lpfc_issue_reg_vfi()
482 mboxq->vport = vport; in lpfc_issue_reg_vfi()
483 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT); in lpfc_issue_reg_vfi()
491 lpfc_mbox_rsrc_cleanup(phba, mboxq, MBOX_THD_UNLOCKED); in lpfc_issue_reg_vfi()
515 LPFC_MBOXQ_t *mboxq; in lpfc_issue_unreg_vfi() local
518 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_unreg_vfi()
519 if (!mboxq) { in lpfc_issue_unreg_vfi()
526 lpfc_unreg_vfi(mboxq, vport); in lpfc_issue_unreg_vfi()
527 mboxq->vport = vport; in lpfc_issue_unreg_vfi()
528 mboxq->mbox_cmpl = lpfc_unregister_vfi_cmpl; in lpfc_issue_unreg_vfi()
530 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT); in lpfc_issue_unreg_vfi()
536 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_issue_unreg_vfi()