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()
717 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_refresh_params()
1589 (list_empty(&psli->mboxq))) { in lpfc_hb_timeout_handler()
1919 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_port_sta_fn_reset() local
1946 mboxq = phba->sli.mbox_active; in lpfc_sli4_port_sta_fn_reset()
1947 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_port_sta_fn_reset()
1948 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_port_sta_fn_reset()
4598 LPFC_MBOXQ_t *mboxq; in lpfc_get_wwpn() local
4601 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_get_wwpn()
4603 if (!mboxq) in lpfc_get_wwpn()
4607 lpfc_read_nv(phba, mboxq); in lpfc_get_wwpn()
4608 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_wwpn()
4613 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_get_wwpn()
4614 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_get_wwpn()
4615 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
4618 mb = &mboxq->u.mb; in lpfc_get_wwpn()
4621 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_get_wwpn()
7920 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_driver_resource_setup() local
8049 INIT_LIST_HEAD(&phba->sli.mboxq); in lpfc_sli4_driver_resource_setup()
8109 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_sli4_driver_resource_setup()
8111 if (!mboxq) { in lpfc_sli4_driver_resource_setup()
8121 lpfc_read_nv(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8122 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_driver_resource_setup()
8128 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_sli4_driver_resource_setup()
8129 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_sli4_driver_resource_setup()
8130 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8134 mb = &mboxq->u.mb; in lpfc_sli4_driver_resource_setup()
8186 rc = lpfc_get_sli4_parameters(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8199 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8206 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8336 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
10283 LPFC_MBOXQ_t *mboxq; in lpfc_setup_endian_order() local
10291 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_setup_endian_order()
10293 if (!mboxq) { in lpfc_setup_endian_order()
10305 memset(mboxq, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_setup_endian_order()
10306 memcpy(&mboxq->u.mqe, &endian_mb_data, sizeof(endian_mb_data)); in lpfc_setup_endian_order()
10307 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_setup_endian_order()
10315 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_setup_endian_order()
11079 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_queue_setup() local
11085 mboxq = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_queue_setup()
11086 if (!mboxq) { in lpfc_sli4_queue_setup()
11094 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_queue_setup()
11098 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_queue_setup()
11101 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli4_queue_setup()
11109 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11115 mboxq->u.mqe.un.query_fw_cfg.rsp.function_mode; in lpfc_sli4_queue_setup()
11116 phba->sli4_hba.ulp0_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp0_mode; in lpfc_sli4_queue_setup()
11117 phba->sli4_hba.ulp1_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp1_mode; in lpfc_sli4_queue_setup()
11119 mboxq->u.mqe.un.query_fw_cfg.rsp.physical_port; in lpfc_sli4_queue_setup()
11125 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11691 LPFC_MBOXQ_t *mboxq; in lpfc_pci_function_reset() local
11703 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_pci_function_reset()
11705 if (!mboxq) { in lpfc_pci_function_reset()
11714 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_pci_function_reset()
11717 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_pci_function_reset()
11719 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_pci_function_reset()
11723 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_pci_function_reset()
13456 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_hba_unset() local
13484 mboxq = phba->sli.mbox_active; in lpfc_sli4_hba_unset()
13485 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_hba_unset()
13486 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_hba_unset()
13665 LPFC_MBOXQ_t *mboxq; in __lpfc_reg_congestion_buf() local
13671 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in __lpfc_reg_congestion_buf()
13672 if (!mboxq) { in __lpfc_reg_congestion_buf()
13682 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in __lpfc_reg_congestion_buf()
13685 reg_congestion_buf = &mboxq->u.mqe.un.reg_congestion_buf; in __lpfc_reg_congestion_buf()
13697 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in __lpfc_reg_congestion_buf()
13699 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in __lpfc_reg_congestion_buf()
13703 mempool_free(mboxq, phba->mbox_mem_pool); in __lpfc_reg_congestion_buf()
13741 lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_get_sli4_parameters() argument
13744 struct lpfc_mqe *mqe = &mboxq->u.mqe; in lpfc_get_sli4_parameters()
13761 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_get_sli4_parameters()
13765 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_sli4_parameters()
13767 mbox_tmo = lpfc_mbox_tmo_val(phba, mboxq); in lpfc_get_sli4_parameters()
13768 rc = lpfc_sli_issue_mbox_wait(phba, mboxq, mbox_tmo); in lpfc_get_sli4_parameters()