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()
7917 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_driver_resource_setup() local
8046 INIT_LIST_HEAD(&phba->sli.mboxq); in lpfc_sli4_driver_resource_setup()
8106 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_sli4_driver_resource_setup()
8108 if (!mboxq) { in lpfc_sli4_driver_resource_setup()
8118 lpfc_read_nv(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8119 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_driver_resource_setup()
8125 bf_get(lpfc_mqe_command, &mboxq->u.mqe), in lpfc_sli4_driver_resource_setup()
8126 bf_get(lpfc_mqe_status, &mboxq->u.mqe)); in lpfc_sli4_driver_resource_setup()
8127 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8131 mb = &mboxq->u.mb; in lpfc_sli4_driver_resource_setup()
8183 rc = lpfc_get_sli4_parameters(phba, mboxq); in lpfc_sli4_driver_resource_setup()
8196 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8203 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
8333 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_driver_resource_setup()
10280 LPFC_MBOXQ_t *mboxq; in lpfc_setup_endian_order() local
10288 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_setup_endian_order()
10290 if (!mboxq) { in lpfc_setup_endian_order()
10302 memset(mboxq, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_setup_endian_order()
10303 memcpy(&mboxq->u.mqe, &endian_mb_data, sizeof(endian_mb_data)); in lpfc_setup_endian_order()
10304 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_setup_endian_order()
10312 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_setup_endian_order()
11076 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_queue_setup() local
11082 mboxq = (LPFC_MBOXQ_t *)mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_queue_setup()
11083 if (!mboxq) { in lpfc_sli4_queue_setup()
11091 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_sli4_queue_setup()
11095 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_sli4_queue_setup()
11098 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli4_queue_setup()
11106 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11112 mboxq->u.mqe.un.query_fw_cfg.rsp.function_mode; in lpfc_sli4_queue_setup()
11113 phba->sli4_hba.ulp0_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp0_mode; in lpfc_sli4_queue_setup()
11114 phba->sli4_hba.ulp1_mode = mboxq->u.mqe.un.query_fw_cfg.rsp.ulp1_mode; in lpfc_sli4_queue_setup()
11116 mboxq->u.mqe.un.query_fw_cfg.rsp.physical_port; in lpfc_sli4_queue_setup()
11122 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_sli4_queue_setup()
11688 LPFC_MBOXQ_t *mboxq; in lpfc_pci_function_reset() local
11700 mboxq = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_pci_function_reset()
11702 if (!mboxq) { in lpfc_pci_function_reset()
11711 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_pci_function_reset()
11714 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_pci_function_reset()
11716 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_pci_function_reset()
11720 mempool_free(mboxq, phba->mbox_mem_pool); in lpfc_pci_function_reset()
13453 LPFC_MBOXQ_t *mboxq; in lpfc_sli4_hba_unset() local
13481 mboxq = phba->sli.mbox_active; in lpfc_sli4_hba_unset()
13482 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_hba_unset()
13483 __lpfc_mbox_cmpl_put(phba, mboxq); in lpfc_sli4_hba_unset()
13662 LPFC_MBOXQ_t *mboxq; in __lpfc_reg_congestion_buf() local
13668 mboxq = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in __lpfc_reg_congestion_buf()
13669 if (!mboxq) { in __lpfc_reg_congestion_buf()
13679 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in __lpfc_reg_congestion_buf()
13682 reg_congestion_buf = &mboxq->u.mqe.un.reg_congestion_buf; in __lpfc_reg_congestion_buf()
13694 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in __lpfc_reg_congestion_buf()
13696 &mboxq->u.mqe.un.sli4_config.header.cfg_shdr; in __lpfc_reg_congestion_buf()
13700 mempool_free(mboxq, phba->mbox_mem_pool); in __lpfc_reg_congestion_buf()
13738 lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) in lpfc_get_sli4_parameters() argument
13741 struct lpfc_mqe *mqe = &mboxq->u.mqe; in lpfc_get_sli4_parameters()
13758 lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON, in lpfc_get_sli4_parameters()
13762 rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL); in lpfc_get_sli4_parameters()
13764 mbox_tmo = lpfc_mbox_tmo_val(phba, mboxq); in lpfc_get_sli4_parameters()
13765 rc = lpfc_sli_issue_mbox_wait(phba, mboxq, mbox_tmo); in lpfc_get_sli4_parameters()