Lines Matching refs:mboxq

1606 lpfc_mbx_cmpl_reg_fcfi(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq)  in lpfc_mbx_cmpl_reg_fcfi()  argument
1608 struct lpfc_vport *vport = mboxq->vport; in lpfc_mbx_cmpl_reg_fcfi()
1610 if (mboxq->u.mb.mbxStatus) { in lpfc_mbx_cmpl_reg_fcfi()
1613 "HBA state x%x\n", mboxq->u.mb.mbxStatus, in lpfc_mbx_cmpl_reg_fcfi()
1619 phba->fcf.fcfi = bf_get(lpfc_reg_fcfi_fcfi, &mboxq->u.mqe.un.reg_fcfi); in lpfc_mbx_cmpl_reg_fcfi()
1648 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_mbx_cmpl_reg_fcfi()
2220 lpfc_sli4_fcf_rec_mbox_parse(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq, in lpfc_sli4_fcf_rec_mbox_parse() argument
2233 lpfc_sli4_mbx_sge_get(mboxq, 0, &sge); in lpfc_sli4_fcf_rec_mbox_parse()
2234 if (unlikely(!mboxq->sge_array)) { in lpfc_sli4_fcf_rec_mbox_parse()
2240 virt_addr = mboxq->sge_array->addr[0]; in lpfc_sli4_fcf_rec_mbox_parse()
2615 lpfc_mbx_cmpl_fcf_scan_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() argument
2627 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2632 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2642 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2704 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2864 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2970 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2992 lpfc_mbx_cmpl_fcf_rr_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() argument
3011 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3083 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3098 lpfc_mbx_cmpl_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_mbx_cmpl_read_fcf_rec() argument
3115 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_read_fcf_rec()
3141 lpfc_sli4_mbox_cmd_free(phba, mboxq); in lpfc_mbx_cmpl_read_fcf_rec()
3152 lpfc_init_vfi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_init_vfi_cmpl() argument
3154 struct lpfc_vport *vport = mboxq->vport; in lpfc_init_vfi_cmpl()
3160 if (mboxq->u.mb.mbxStatus && in lpfc_init_vfi_cmpl()
3163 mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { in lpfc_init_vfi_cmpl()
3166 mboxq->u.mb.mbxStatus); in lpfc_init_vfi_cmpl()
3167 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_init_vfi_cmpl()
3173 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_init_vfi_cmpl()
3187 LPFC_MBOXQ_t *mboxq; in lpfc_issue_init_vfi() local
3191 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_init_vfi()
3192 if (!mboxq) { in lpfc_issue_init_vfi()
3198 lpfc_init_vfi(mboxq, vport); in lpfc_issue_init_vfi()
3199 mboxq->mbox_cmpl = lpfc_init_vfi_cmpl; in lpfc_issue_init_vfi()
3200 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_NOWAIT); in lpfc_issue_init_vfi()
3204 mempool_free(mboxq, vport->phba->mbox_mem_pool); in lpfc_issue_init_vfi()
3216 lpfc_init_vpi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_init_vpi_cmpl() argument
3218 struct lpfc_vport *vport = mboxq->vport; in lpfc_init_vpi_cmpl()
3222 if (mboxq->u.mb.mbxStatus) { in lpfc_init_vpi_cmpl()
3225 mboxq->u.mb.mbxStatus); in lpfc_init_vpi_cmpl()
3226 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_init_vpi_cmpl()
3244 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_init_vpi_cmpl()
3255 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_init_vpi_cmpl()
3269 LPFC_MBOXQ_t *mboxq; in lpfc_issue_init_vpi() local
3283 mboxq = mempool_alloc(vport->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_issue_init_vpi()
3284 if (!mboxq) { in lpfc_issue_init_vpi()
3290 lpfc_init_vpi(vport->phba, mboxq, vport->vpi); in lpfc_issue_init_vpi()
3291 mboxq->vport = vport; in lpfc_issue_init_vpi()
3292 mboxq->mbox_cmpl = lpfc_init_vpi_cmpl; in lpfc_issue_init_vpi()
3293 rc = lpfc_sli_issue_mbox(vport->phba, mboxq, MBX_NOWAIT); in lpfc_issue_init_vpi()
3297 mempool_free(mboxq, vport->phba->mbox_mem_pool); in lpfc_issue_init_vpi()
3350 lpfc_mbx_cmpl_reg_vfi(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_mbx_cmpl_reg_vfi() argument
3352 struct lpfc_vport *vport = mboxq->vport; in lpfc_mbx_cmpl_reg_vfi()
3359 if (mboxq->u.mb.mbxStatus && in lpfc_mbx_cmpl_reg_vfi()
3362 mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { in lpfc_mbx_cmpl_reg_vfi()
3366 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_reg_vfi()
3432 lpfc_mbox_rsrc_cleanup(phba, mboxq, MBOX_THD_UNLOCKED); in lpfc_mbx_cmpl_reg_vfi()
5554 list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { in lpfc_cleanup_node()
6805 lpfc_unregister_vfi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_unregister_vfi_cmpl() argument
6807 struct lpfc_vport *vport = mboxq->vport; in lpfc_unregister_vfi_cmpl()
6810 if (mboxq->u.mb.mbxStatus) { in lpfc_unregister_vfi_cmpl()
6814 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_vfi_cmpl()
6819 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_unregister_vfi_cmpl()
6831 lpfc_unregister_fcfi_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_unregister_fcfi_cmpl() argument
6833 struct lpfc_vport *vport = mboxq->vport; in lpfc_unregister_fcfi_cmpl()
6835 if (mboxq->u.mb.mbxStatus) { in lpfc_unregister_fcfi_cmpl()
6839 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_fcfi_cmpl()
6841 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_unregister_fcfi_cmpl()