Lines Matching refs:pmb

125 	LPFC_MBOXQ_t *pmb;  in lpfc_config_port_prep()  local
133 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_prep()
134 if (!pmb) { in lpfc_config_port_prep()
139 mb = &pmb->u.mb; in lpfc_config_port_prep()
151 lpfc_read_nv(phba, pmb); in lpfc_config_port_prep()
157 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep()
165 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
181 lpfc_read_rev(phba, pmb); in lpfc_config_port_prep()
182 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep()
188 mempool_free( pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
202 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
207 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
245 lpfc_dump_mem(phba, pmb, offset, DMP_REGION_VPD); in lpfc_config_port_prep()
246 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep()
273 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
420 LPFC_MBOXQ_t *pmb; in lpfc_config_port_post() local
437 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_post()
438 if (!pmb) { in lpfc_config_port_post()
442 mb = &pmb->u.mb; in lpfc_config_port_post()
445 rc = lpfc_read_sparam(phba, pmb, 0); in lpfc_config_port_post()
447 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
451 pmb->vport = vport; in lpfc_config_port_post()
452 if (lpfc_sli_issue_mbox(phba, pmb, MBX_POLL) != MBX_SUCCESS) { in lpfc_config_port_post()
458 lpfc_mbox_rsrc_cleanup(phba, pmb, MBOX_THD_UNLOCKED); in lpfc_config_port_post()
462 mp = (struct lpfc_dmabuf *)pmb->ctx_buf; in lpfc_config_port_post()
471 pmb->ctx_buf = NULL; in lpfc_config_port_post()
505 lpfc_read_config(phba, pmb); in lpfc_config_port_post()
506 pmb->vport = vport; in lpfc_config_port_post()
507 if (lpfc_sli_issue_mbox(phba, pmb, MBX_POLL) != MBX_SUCCESS) { in lpfc_config_port_post()
513 mempool_free( pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
550 rc = lpfc_config_msi(phba, pmb); in lpfc_config_port_post()
552 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
555 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_post()
560 pmb->u.mb.mbxCommand, in lpfc_config_port_post()
561 pmb->u.mb.mbxStatus); in lpfc_config_port_post()
562 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
610 lpfc_down_link(phba, pmb); in lpfc_config_port_post()
611 pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_config_port_post()
612 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_config_port_post()
618 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
622 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
628 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_post()
629 if (!pmb) { in lpfc_config_port_post()
634 lpfc_config_async(phba, pmb, LPFC_ELS_RING); in lpfc_config_port_post()
635 pmb->mbox_cmpl = lpfc_config_async_cmpl; in lpfc_config_port_post()
636 pmb->vport = phba->pport; in lpfc_config_port_post()
637 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_config_port_post()
644 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
648 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_post()
649 if (!pmb) { in lpfc_config_port_post()
654 lpfc_dump_wakeup_param(phba, pmb); in lpfc_config_port_post()
655 pmb->mbox_cmpl = lpfc_dump_wakeup_param_cmpl; in lpfc_config_port_post()
656 pmb->vport = phba->pport; in lpfc_config_port_post()
657 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_config_port_post()
663 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_post()
761 LPFC_MBOXQ_t *pmb; in lpfc_hba_init_link_fc_topology() local
765 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_hba_init_link_fc_topology()
766 if (!pmb) { in lpfc_hba_init_link_fc_topology()
770 mb = &pmb->u.mb; in lpfc_hba_init_link_fc_topology()
771 pmb->vport = vport; in lpfc_hba_init_link_fc_topology()
797 lpfc_init_link(phba, pmb, fc_topology, phba->cfg_link_speed); in lpfc_hba_init_link_fc_topology()
798 pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_hba_init_link_fc_topology()
801 rc = lpfc_sli_issue_mbox(phba, pmb, flag); in lpfc_hba_init_link_fc_topology()
817 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_hba_init_link_fc_topology()
822 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_hba_init_link_fc_topology()
843 LPFC_MBOXQ_t *pmb; in lpfc_hba_down_link() local
846 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_hba_down_link()
847 if (!pmb) { in lpfc_hba_down_link()
854 lpfc_down_link(phba, pmb); in lpfc_hba_down_link()
855 pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_hba_down_link()
856 rc = lpfc_sli_issue_mbox(phba, pmb, flag); in lpfc_hba_down_link()
862 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_hba_down_link()
866 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_hba_down_link()
2198 LPFC_MBOXQ_t *pmb; in lpfc_handle_latt() local
2202 pmb = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_handle_latt()
2203 if (!pmb) { in lpfc_handle_latt()
2208 rc = lpfc_mbox_rsrc_prep(phba, pmb); in lpfc_handle_latt()
2211 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_handle_latt()
2218 lpfc_read_topology(phba, pmb, (struct lpfc_dmabuf *)pmb->ctx_buf); in lpfc_handle_latt()
2219 pmb->mbox_cmpl = lpfc_mbx_cmpl_read_topology; in lpfc_handle_latt()
2220 pmb->vport = vport; in lpfc_handle_latt()
2223 rc = lpfc_sli_issue_mbox (phba, pmb, MBX_NOWAIT); in lpfc_handle_latt()
2239 lpfc_mbox_rsrc_cleanup(phba, pmb, MBOX_THD_UNLOCKED); in lpfc_handle_latt()
5416 LPFC_MBOXQ_t *pmb; in lpfc_sli4_async_link_evt() local
5426 pmb = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_async_link_evt()
5427 if (!pmb) { in lpfc_sli4_async_link_evt()
5433 rc = lpfc_mbox_rsrc_prep(phba, pmb); in lpfc_sli4_async_link_evt()
5450 lpfc_read_topology(phba, pmb, (struct lpfc_dmabuf *)pmb->ctx_buf); in lpfc_sli4_async_link_evt()
5451 pmb->mbox_cmpl = lpfc_mbx_cmpl_read_topology; in lpfc_sli4_async_link_evt()
5452 pmb->vport = phba->pport; in lpfc_sli4_async_link_evt()
5487 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_sli4_async_link_evt()
5498 mb = &pmb->u.mb; in lpfc_sli4_async_link_evt()
5505 la = (struct lpfc_mbx_read_top *) &pmb->u.mb.un.varReadTop; in lpfc_sli4_async_link_evt()
5520 lpfc_mbx_cmpl_read_topology(phba, pmb); in lpfc_sli4_async_link_evt()
5525 lpfc_mbox_rsrc_cleanup(phba, pmb, MBOX_THD_UNLOCKED); in lpfc_sli4_async_link_evt()
6221 LPFC_MBOXQ_t *pmb; in lpfc_sli4_async_fc_evt() local
6320 pmb = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_async_fc_evt()
6321 if (!pmb) { in lpfc_sli4_async_fc_evt()
6326 rc = lpfc_mbox_rsrc_prep(phba, pmb); in lpfc_sli4_async_fc_evt()
6343 lpfc_read_topology(phba, pmb, (struct lpfc_dmabuf *)pmb->ctx_buf); in lpfc_sli4_async_fc_evt()
6344 pmb->mbox_cmpl = lpfc_mbx_cmpl_read_topology; in lpfc_sli4_async_fc_evt()
6345 pmb->vport = phba->pport; in lpfc_sli4_async_fc_evt()
6362 mb = &pmb->u.mb; in lpfc_sli4_async_fc_evt()
6369 la = (struct lpfc_mbx_read_top *)&pmb->u.mb.un.varReadTop; in lpfc_sli4_async_fc_evt()
6381 lpfc_mbx_cmpl_read_topology(phba, pmb); in lpfc_sli4_async_fc_evt()
6386 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_sli4_async_fc_evt()
6392 lpfc_mbox_rsrc_cleanup(phba, pmb, MBOX_THD_UNLOCKED); in lpfc_sli4_async_fc_evt()
9919 LPFC_MBOXQ_t *pmb; in lpfc_sli4_read_config() local
9930 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_read_config()
9931 if (!pmb) { in lpfc_sli4_read_config()
9938 lpfc_read_config(phba, pmb); in lpfc_sli4_read_config()
9940 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli4_read_config()
9945 bf_get(lpfc_mqe_command, &pmb->u.mqe), in lpfc_sli4_read_config()
9946 bf_get(lpfc_mqe_status, &pmb->u.mqe)); in lpfc_sli4_read_config()
9949 rd_config = &pmb->u.mqe.un.rd_config; in lpfc_sli4_read_config()
9963 bf_get(lpfc_mqe_command, &pmb->u.mqe)); in lpfc_sli4_read_config()
10210 lpfc_sli4_config(phba, pmb, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_read_config()
10214 rc2 = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli4_read_config()
10216 &pmb->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli4_read_config()
10223 bf_get(lpfc_mqe_command, &pmb->u.mqe), in lpfc_sli4_read_config()
10224 bf_get(lpfc_mqe_status, &pmb->u.mqe)); in lpfc_sli4_read_config()
10229 get_func_cfg = &pmb->u.mqe.un.get_func_cfg; in lpfc_sli4_read_config()
10263 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli4_read_config()
12085 LPFC_MBOXQ_t *pmb; in lpfc_sli_enable_msix() local
12126 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli_enable_msix()
12128 if (!pmb) { in lpfc_sli_enable_msix()
12135 rc = lpfc_config_msi(phba, pmb); in lpfc_sli_enable_msix()
12138 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli_enable_msix()
12143 pmb->u.mb.mbxCommand, pmb->u.mb.mbxStatus); in lpfc_sli_enable_msix()
12148 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli_enable_msix()
12153 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli_enable_msix()