Lines Matching refs:mboxq
679 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_refresh_params() local
684 mboxq = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_refresh_params()
685 if (!mboxq) in lpfc_sli4_refresh_params()
688 mqe = &mboxq->u.mqe; in lpfc_sli4_refresh_params()
692 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_refresh_params()
696 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_refresh_params()
698 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_refresh_params()
715 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_refresh_params()
1587 (list_empty(&psli->mboxq))) { in lpfc_hb_timeout_handler()
1917 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_port_sta_fn_reset() local
1944 mboxq = phba->sli.mbox_active; in lpfc_sli4_port_sta_fn_reset()
1945 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_port_sta_fn_reset()
1946 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_port_sta_fn_reset()
4590 LPFC_MBOXQ_t *mboxq; in lpfc_get_wwpn() local
4593 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_get_wwpn()
4595 if (!mboxq) in lpfc_get_wwpn()
4599 lpfc_read_nv(phba, mboxq); in lpfc_get_wwpn()
4600 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_wwpn()
4605 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_get_wwpn()
4606 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_get_wwpn()
4607 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
4610 mb = &mboxq->u.mb; in lpfc_get_wwpn()
4613 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
7914 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_driver_resource_setup() local
8040 INIT_LIST_HEAD(&phba->sli.mboxq); in lpfc_sli4_driver_resource_setup()
8100 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_sli4_driver_resource_setup()
8102 if (!mboxq) { in lpfc_sli4_driver_resource_setup()
8112 lpfc_read_nv(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8113 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_driver_resource_setup()
8119 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_sli4_driver_resource_setup()
8120 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_sli4_driver_resource_setup()
8121 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8125 mb = &mboxq->u.mb; in lpfc_sli4_driver_resource_setup()
8177 rc = lpfc_get_sli4_parameters(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8190 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8197 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8327 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
10277 LPFC_MBOXQ_t *mboxq; in lpfc_setup_endian_order() local
10285 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_setup_endian_order()
10287 if (!mboxq) { in lpfc_setup_endian_order()
10299 memset(mboxq, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_setup_endian_order()
10300 memcpy(&mboxq->u.mqe, &endian_mb_data, sizeof(endian_mb_data)); in lpfc_setup_endian_order()
10301 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_setup_endian_order()
10309 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_setup_endian_order()
11073 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_queue_setup() local
11079 mboxq = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_queue_setup()
11080 if (!mboxq) { in lpfc_sli4_queue_setup()
11088 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_queue_setup()
11092 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_queue_setup()
11095 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli4_queue_setup()
11103 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11109 mboxq->u.mqe.un.query_fw_cfg.rsp.function_mode; in lpfc_sli4_queue_setup()
11110 phba->sli4_hba.ulp0_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp0_mode; in lpfc_sli4_queue_setup()
11111 phba->sli4_hba.ulp1_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp1_mode; in lpfc_sli4_queue_setup()
11113 mboxq->u.mqe.un.query_fw_cfg.rsp.physical_port; in lpfc_sli4_queue_setup()
11119 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11685 LPFC_MBOXQ_t *mboxq; in lpfc_pci_function_reset() local
11697 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_pci_function_reset()
11699 if (!mboxq) { in lpfc_pci_function_reset()
11708 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_pci_function_reset()
11711 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_pci_function_reset()
11713 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_pci_function_reset()
11717 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_pci_function_reset()
13462 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_hba_unset() local
13489 mboxq = phba->sli.mbox_active; in lpfc_sli4_hba_unset()
13490 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_hba_unset()
13491 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_hba_unset()
13705 LPFC_MBOXQ_t *mboxq; in __lpfc_reg_congestion_buf() local
13711 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in __lpfc_reg_congestion_buf()
13712 if (!mboxq) { in __lpfc_reg_congestion_buf()
13722 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in __lpfc_reg_congestion_buf()
13725 reg_congestion_buf = &mboxq->u.mqe.un.reg_congestion_buf; in __lpfc_reg_congestion_buf()
13737 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in __lpfc_reg_congestion_buf()
13739 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in __lpfc_reg_congestion_buf()
13743 mempool_free(mboxq, phba->mbox_mem_pool); in __lpfc_reg_congestion_buf()
13781 lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_get_sli4_parameters() argument
13784 struct lpfc_mqe *mqe = &mboxq->u.mqe; in lpfc_get_sli4_parameters()
13801 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_get_sli4_parameters()
13805 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_sli4_parameters()
13807 mbox_tmo = lpfc_mbox_tmo_val(phba, mboxq); in lpfc_get_sli4_parameters()
13808 rc = lpfc_sli_issue_mbox_wait(phba, mboxq, mbox_tmo); in lpfc_get_sli4_parameters()