Lines Matching refs:mbox

828 	LPFC_MBOXQ_t     *mbox;  in lpfc_sli4_unreg_all_rpis()  local
831 mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli4_unreg_all_rpis()
832 if (mbox) { in lpfc_sli4_unreg_all_rpis()
841 mbox); in lpfc_sli4_unreg_all_rpis()
842 mbox->u.mb.un.varUnregLogin.rsvd1 = 0x4000; in lpfc_sli4_unreg_all_rpis()
843 mbox->vport = vport; in lpfc_sli4_unreg_all_rpis()
844 mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_sli4_unreg_all_rpis()
845 mbox->context1 = NULL; in lpfc_sli4_unreg_all_rpis()
846 rc = lpfc_sli_issue_mbox(phba, mbox, MBX_NOWAIT); in lpfc_sli4_unreg_all_rpis()
848 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_unreg_all_rpis()
1310 offset = (uint8_t *)phba->mbox - (uint8_t *)phba->slim2p.virt; in lpfc_config_port()
1366 phba->host_gp = &phba->mbox->us.s2.host[0]; in lpfc_config_port()
1368 offset = (uint8_t *)&phba->mbox->us.s2.host - in lpfc_config_port()
1611 MAILBOX_t *mbox = &mboxq->u.mb; in lpfc_mbox_tmo_val() local
1614 switch (mbox->mbxCommand) { in lpfc_mbox_tmo_val()
1671 lpfc_sli4_mbx_sge_set(struct lpfcMboxq *mbox, uint32_t sgentry, in lpfc_sli4_mbx_sge_set() argument
1677 &mbox->u.mqe.un.nembed_cmd; in lpfc_sli4_mbx_sge_set()
1692 lpfc_sli4_mbx_sge_get(struct lpfcMboxq *mbox, uint32_t sgentry, in lpfc_sli4_mbx_sge_get() argument
1698 &mbox->u.mqe.un.nembed_cmd; in lpfc_sli4_mbx_sge_get()
1712 lpfc_sli4_mbox_cmd_free(struct lpfc_hba *phba, struct lpfcMboxq *mbox) in lpfc_sli4_mbox_cmd_free() argument
1719 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli4_mbox_cmd_free()
1723 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_mbox_cmd_free()
1730 if (unlikely(!mbox->sge_array)) { in lpfc_sli4_mbox_cmd_free()
1731 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_mbox_cmd_free()
1736 lpfc_sli4_mbx_sge_get(mbox, sgentry, &sge); in lpfc_sli4_mbox_cmd_free()
1739 mbox->sge_array->addr[sgentry], phyaddr); in lpfc_sli4_mbox_cmd_free()
1742 kfree(mbox->sge_array); in lpfc_sli4_mbox_cmd_free()
1744 mempool_free(mbox, phba->mbox_mem_pool); in lpfc_sli4_mbox_cmd_free()
1762 lpfc_sli4_config(struct lpfc_hba *phba, struct lpfcMboxq *mbox, in lpfc_sli4_config() argument
1774 memset(mbox, 0, sizeof(*mbox)); in lpfc_sli4_config()
1775 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_SLI4_CONFIG); in lpfc_sli4_config()
1778 sli4_config = &mbox->u.mqe.un.sli4_config; in lpfc_sli4_config()
1800 mbox->sge_array = kzalloc(sizeof(struct lpfc_mbx_nembed_sge_virt), in lpfc_sli4_config()
1802 if (!mbox->sge_array) { in lpfc_sli4_config()
1820 mbox->sge_array->addr[pagen] = viraddr; in lpfc_sli4_config()
1826 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
1830 lpfc_sli4_mbx_sge_set(mbox, pagen, phyaddr, in lpfc_sli4_config()
1870 lpfc_sli4_mbox_rsrc_extent(struct lpfc_hba *phba, struct lpfcMboxq *mbox, in lpfc_sli4_mbox_rsrc_extent() argument
1880 virtaddr = mbox->sge_array->addr[0]; in lpfc_sli4_mbox_rsrc_extent()
1892 &mbox->u.mqe.un.alloc_rsrc_extents.u.req, in lpfc_sli4_mbox_rsrc_extent()
1904 opcode = lpfc_sli_config_mbox_opcode_get(phba, mbox); in lpfc_sli4_mbox_rsrc_extent()
1909 &mbox->u.mqe.un.alloc_rsrc_extents.u.req, in lpfc_sli4_mbox_rsrc_extent()
1941 lpfc_sli_config_mbox_subsys_get(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) in lpfc_sli_config_mbox_subsys_get() argument
1946 if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) in lpfc_sli_config_mbox_subsys_get()
1948 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli_config_mbox_subsys_get()
1952 cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli_config_mbox_subsys_get()
1957 if (unlikely(!mbox->sge_array)) in lpfc_sli_config_mbox_subsys_get()
1959 cfg_shdr = (union lpfc_sli4_cfg_shdr *)mbox->sge_array->addr[0]; in lpfc_sli_config_mbox_subsys_get()
1974 lpfc_sli_config_mbox_opcode_get(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) in lpfc_sli_config_mbox_opcode_get() argument
1979 if (mbox->u.mb.mbxCommand != MBX_SLI4_CONFIG) in lpfc_sli_config_mbox_opcode_get()
1981 sli4_cfg = &mbox->u.mqe.un.sli4_config; in lpfc_sli_config_mbox_opcode_get()
1985 cfg_shdr = &mbox->u.mqe.un.sli4_config.header.cfg_shdr; in lpfc_sli_config_mbox_opcode_get()
1990 if (unlikely(!mbox->sge_array)) in lpfc_sli_config_mbox_opcode_get()
1992 cfg_shdr = (union lpfc_sli4_cfg_shdr *)mbox->sge_array->addr[0]; in lpfc_sli_config_mbox_opcode_get()
2096 lpfc_init_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport) in lpfc_init_vfi() argument
2100 memset(mbox, 0, sizeof(*mbox)); in lpfc_init_vfi()
2101 mbox->vport = vport; in lpfc_init_vfi()
2102 init_vfi = &mbox->u.mqe.un.init_vfi; in lpfc_init_vfi()
2103 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VFI); in lpfc_init_vfi()
2127 lpfc_reg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport, dma_addr_t phys) in lpfc_reg_vfi() argument
2132 memset(mbox, 0, sizeof(*mbox)); in lpfc_reg_vfi()
2133 reg_vfi = &mbox->u.mqe.un.reg_vfi; in lpfc_reg_vfi()
2134 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_VFI); in lpfc_reg_vfi()
2183 lpfc_init_vpi(struct lpfc_hba *phba, struct lpfcMboxq *mbox, uint16_t vpi) in lpfc_init_vpi() argument
2185 memset(mbox, 0, sizeof(*mbox)); in lpfc_init_vpi()
2186 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_INIT_VPI); in lpfc_init_vpi()
2187 bf_set(lpfc_init_vpi_vpi, &mbox->u.mqe.un.init_vpi, in lpfc_init_vpi()
2189 bf_set(lpfc_init_vpi_vfi, &mbox->u.mqe.un.init_vpi, in lpfc_init_vpi()
2205 lpfc_unreg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport) in lpfc_unreg_vfi() argument
2207 memset(mbox, 0, sizeof(*mbox)); in lpfc_unreg_vfi()
2208 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_VFI); in lpfc_unreg_vfi()
2209 bf_set(lpfc_unreg_vfi_vfi, &mbox->u.mqe.un.unreg_vfi, in lpfc_unreg_vfi()
2222 lpfc_sli4_dump_cfg_rg23(struct lpfc_hba *phba, struct lpfcMboxq *mbox) in lpfc_sli4_dump_cfg_rg23() argument
2227 memset(mbox, 0, sizeof(*mbox)); in lpfc_sli4_dump_cfg_rg23()
2228 mb = &mbox->u.mb; in lpfc_sli4_dump_cfg_rg23()
2247 mbox->context1 = (uint8_t *) mp; in lpfc_sli4_dump_cfg_rg23()
2272 lpfc_reg_fcfi(struct lpfc_hba *phba, struct lpfcMboxq *mbox) in lpfc_reg_fcfi() argument
2276 memset(mbox, 0, sizeof(*mbox)); in lpfc_reg_fcfi()
2277 reg_fcfi = &mbox->u.mqe.un.reg_fcfi; in lpfc_reg_fcfi()
2278 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_REG_FCFI); in lpfc_reg_fcfi()
2303 lpfc_unreg_fcfi(struct lpfcMboxq *mbox, uint16_t fcfi) in lpfc_unreg_fcfi() argument
2305 memset(mbox, 0, sizeof(*mbox)); in lpfc_unreg_fcfi()
2306 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_UNREG_FCFI); in lpfc_unreg_fcfi()
2307 bf_set(lpfc_unreg_fcfi, &mbox->u.mqe.un.unreg_fcfi, fcfi); in lpfc_unreg_fcfi()
2319 lpfc_resume_rpi(struct lpfcMboxq *mbox, struct lpfc_nodelist *ndlp) in lpfc_resume_rpi() argument
2324 memset(mbox, 0, sizeof(*mbox)); in lpfc_resume_rpi()
2325 resume_rpi = &mbox->u.mqe.un.resume_rpi; in lpfc_resume_rpi()
2326 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_RESUME_RPI); in lpfc_resume_rpi()
2342 lpfc_supported_pages(struct lpfcMboxq *mbox) in lpfc_supported_pages() argument
2346 memset(mbox, 0, sizeof(*mbox)); in lpfc_supported_pages()
2347 supp_pages = &mbox->u.mqe.un.supp_pages; in lpfc_supported_pages()
2348 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); in lpfc_supported_pages()
2360 lpfc_pc_sli4_params(struct lpfcMboxq *mbox) in lpfc_pc_sli4_params() argument
2364 memset(mbox, 0, sizeof(*mbox)); in lpfc_pc_sli4_params()
2365 sli4_params = &mbox->u.mqe.un.sli4_params; in lpfc_pc_sli4_params()
2366 bf_set(lpfc_mqe_command, &mbox->u.mqe, MBX_PORT_CAPABILITIES); in lpfc_pc_sli4_params()