Lines Matching refs:mboxq
1466 (list_empty(&psli->mboxq))) { in lpfc_hb_timeout_handler()
4257 LPFC_MBOXQ_t *mboxq; in lpfc_get_wwpn() local
4260 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_get_wwpn()
4262 if (!mboxq) in lpfc_get_wwpn()
4266 lpfc_read_nv(phba, mboxq); in lpfc_get_wwpn()
4267 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_wwpn()
4272 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_get_wwpn()
4273 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_get_wwpn()
4274 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
4277 mb = &mboxq->u.mb; in lpfc_get_wwpn()
4280 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
6548 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_driver_resource_setup() local
6664 INIT_LIST_HEAD(&phba->sli.mboxq); in lpfc_sli4_driver_resource_setup()
6712 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_sli4_driver_resource_setup()
6714 if (!mboxq) { in lpfc_sli4_driver_resource_setup()
6724 lpfc_read_nv(phba, mboxq); in lpfc_sli4_driver_resource_setup()
6725 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_driver_resource_setup()
6731 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_sli4_driver_resource_setup()
6732 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_sli4_driver_resource_setup()
6733 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
6737 mb = &mboxq->u.mb; in lpfc_sli4_driver_resource_setup()
6789 rc = lpfc_get_sli4_parameters(phba, mboxq); in lpfc_sli4_driver_resource_setup()
6802 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
6809 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
6935 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8785 LPFC_MBOXQ_t *mboxq; in lpfc_setup_endian_order() local
8793 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_setup_endian_order()
8795 if (!mboxq) { in lpfc_setup_endian_order()
8807 memset(mboxq, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_setup_endian_order()
8808 memcpy(&mboxq->u.mqe, &endian_mb_data, sizeof(endian_mb_data)); in lpfc_setup_endian_order()
8809 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_setup_endian_order()
8817 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_setup_endian_order()
9581 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_queue_setup() local
9587 mboxq = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_queue_setup()
9588 if (!mboxq) { in lpfc_sli4_queue_setup()
9596 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_queue_setup()
9600 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_queue_setup()
9603 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli4_queue_setup()
9611 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
9617 mboxq->u.mqe.un.query_fw_cfg.rsp.function_mode; in lpfc_sli4_queue_setup()
9618 phba->sli4_hba.ulp0_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp0_mode; in lpfc_sli4_queue_setup()
9619 phba->sli4_hba.ulp1_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp1_mode; in lpfc_sli4_queue_setup()
9621 mboxq->u.mqe.un.query_fw_cfg.rsp.physical_port; in lpfc_sli4_queue_setup()
9627 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
10193 LPFC_MBOXQ_t *mboxq; in lpfc_pci_function_reset() local
10205 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_pci_function_reset()
10207 if (!mboxq) { in lpfc_pci_function_reset()
10216 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_pci_function_reset()
10219 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_pci_function_reset()
10221 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_pci_function_reset()
10225 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_pci_function_reset()
11947 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_hba_unset() local
11972 mboxq = phba->sli.mbox_active; in lpfc_sli4_hba_unset()
11973 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_hba_unset()
11974 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_hba_unset()
12034 lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_get_sli4_parameters() argument
12037 struct lpfc_mqe *mqe = &mboxq->u.mqe; in lpfc_get_sli4_parameters()
12054 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_get_sli4_parameters()
12058 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_sli4_parameters()
12060 mbox_tmo = lpfc_mbox_tmo_val(phba, mboxq); in lpfc_get_sli4_parameters()
12061 rc = lpfc_sli_issue_mbox_wait(phba, mboxq, mbox_tmo); in lpfc_get_sli4_parameters()