Lines Matching refs:mboxq
464 LPFC_MBOXQ_t *mboxq = NULL; in lpfc_issue_reg_vfi() local
480 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_reg_vfi()
481 if (!mboxq) { in lpfc_issue_reg_vfi()
504 lpfc_reg_vfi(mboxq, vport, dmabuf->phys); in lpfc_issue_reg_vfi()
506 lpfc_reg_vfi(mboxq, vport, 0); in lpfc_issue_reg_vfi()
508 mboxq->mbox_cmpl = lpfc_mbx_cmpl_reg_vfi; in lpfc_issue_reg_vfi()
509 mboxq->vport = vport; in lpfc_issue_reg_vfi()
510 mboxq->ctx_buf = dmabuf; in lpfc_issue_reg_vfi()
511 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT); in lpfc_issue_reg_vfi()
519 if (mboxq) in lpfc_issue_reg_vfi()
520 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_issue_reg_vfi()
549 LPFC_MBOXQ_t *mboxq; in lpfc_issue_unreg_vfi() local
552 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_unreg_vfi()
553 if (!mboxq) { in lpfc_issue_unreg_vfi()
560 lpfc_unreg_vfi(mboxq, vport); in lpfc_issue_unreg_vfi()
561 mboxq->vport = vport; in lpfc_issue_unreg_vfi()
562 mboxq->mbox_cmpl = lpfc_unregister_vfi_cmpl; in lpfc_issue_unreg_vfi()
564 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT); in lpfc_issue_unreg_vfi()
570 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_issue_unreg_vfi()