Lines Matching refs:mb
275 mb(); in lpfc_sli4_eq_get()
391 mb(); in lpfc_sli4_cq_get()
1276 pmbox = &pmb->u.mb; in lpfc_sli_ring_map()
2181 pmb->u.mb.mbxCommand == MBX_REG_LOGIN64 && in lpfc_sli_def_mbox_cmpl()
2182 !pmb->u.mb.mbxStatus) { in lpfc_sli_def_mbox_cmpl()
2183 rpi = pmb->u.mb.un.varWords[0]; in lpfc_sli_def_mbox_cmpl()
2184 vpi = pmb->u.mb.un.varRegLogin.vpi; in lpfc_sli_def_mbox_cmpl()
2192 if ((pmb->u.mb.mbxCommand == MBX_REG_VPI) && in lpfc_sli_def_mbox_cmpl()
2194 !pmb->u.mb.mbxStatus) { in lpfc_sli_def_mbox_cmpl()
2202 if (pmb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_sli_def_mbox_cmpl()
2209 if ((pmb->u.mb.mbxCommand == MBX_INIT_LINK) && in lpfc_sli_def_mbox_cmpl()
2210 (pmb->u.mb.mbxStatus == MBXERR_SEC_NO_PERMISSION)) in lpfc_sli_def_mbox_cmpl()
2240 if (pmb->u.mb.mbxCommand == MBX_UNREG_LOGIN) { in lpfc_sli4_unreg_rpi_cmpl_clr()
2295 pmbox = &pmb->u.mb; in lpfc_sli_handle_mb_event()
4126 MAILBOX_t *mb; in lpfc_sli_brdrestart_s3() local
4145 mb = (MAILBOX_t *) &word0; in lpfc_sli_brdrestart_s3()
4146 mb->mbxCommand = MBX_RESTART; in lpfc_sli_brdrestart_s3()
4147 mb->mbxHc = 1; in lpfc_sli_brdrestart_s3()
4152 writel(*(uint32_t *) mb, to_slim); in lpfc_sli_brdrestart_s3()
4161 writel(*(uint32_t *) mb, to_slim); in lpfc_sli_brdrestart_s3()
4411 pmbox = &pmb->u.mb; in lpfc_sli_hbq_setup()
4539 pmb->u.mb.mbxCommand, pmb->u.mb.mbxStatus, 0); in lpfc_sli_config_port()
4551 if ((pmb->u.mb.un.varCfgPort.casabt == 1) && in lpfc_sli_config_port()
4552 (pmb->u.mb.un.varCfgPort.gasabt == 0)) in lpfc_sli_config_port()
4561 if (pmb->u.mb.un.varCfgPort.sli_mode == 3) { in lpfc_sli_config_port()
4562 if (!pmb->u.mb.un.varCfgPort.cMA) { in lpfc_sli_config_port()
4566 if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { in lpfc_sli_config_port()
4568 phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; in lpfc_sli_config_port()
4576 if (pmb->u.mb.un.varCfgPort.gdss) { in lpfc_sli_config_port()
4578 phba->fips_level = pmb->u.mb.un.varCfgPort.fips_level; in lpfc_sli_config_port()
4579 phba->fips_spec_rev = pmb->u.mb.un.varCfgPort.fips_rev; in lpfc_sli_config_port()
4585 if (pmb->u.mb.un.varCfgPort.sec_err) { in lpfc_sli_config_port()
4589 pmb->u.mb.un.varCfgPort.sec_err); in lpfc_sli_config_port()
4591 if (pmb->u.mb.un.varCfgPort.gerbm) in lpfc_sli_config_port()
4593 if (pmb->u.mb.un.varCfgPort.gcrp) in lpfc_sli_config_port()
4600 if (pmb->u.mb.un.varCfgPort.gbg) in lpfc_sli_config_port()
6806 MAILBOX_t *mb = NULL; in lpfc_mbox_timeout_handler() local
6815 mb = &pmbox->u.mb; in lpfc_mbox_timeout_handler()
6834 mb->mbxCommand, in lpfc_mbox_timeout_handler()
6925 pmbox->u.mb.mbxCommand); in lpfc_sli_issue_mbox_s3()
6945 mbx = &pmbox->u.mb; in lpfc_sli_issue_mbox_s3()
6956 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
6968 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
6987 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
6999 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
7051 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
7272 pmbox->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_issue_mbox_s3()
7426 struct lpfc_mqe *mb = &mboxq->u.mqe; in lpfc_sli4_post_sync_mbox() local
7441 mboxq->u.mb.mbxCommand, in lpfc_sli4_post_sync_mbox()
7462 mbx_cmnd = bf_get(lpfc_mqe_command, mb); in lpfc_sli4_post_sync_mbox()
7464 lpfc_sli_pcimem_bcopy(mb, phba->sli4_hba.bmbx.avirt, in lpfc_sli4_post_sync_mbox()
7489 lpfc_sli_pcimem_bcopy(phba->sli4_hba.bmbx.avirt, mb, in lpfc_sli4_post_sync_mbox()
7501 if (bf_get(lpfc_mqe_status, mb) == MBX_SUCCESS) in lpfc_sli4_post_sync_mbox()
7502 bf_set(lpfc_mqe_status, mb, in lpfc_sli4_post_sync_mbox()
7515 bf_get(lpfc_mqe_status, mb), in lpfc_sli4_post_sync_mbox()
7516 mb->un.mb_words[0], mb->un.mb_words[1], in lpfc_sli4_post_sync_mbox()
7517 mb->un.mb_words[2], mb->un.mb_words[3], in lpfc_sli4_post_sync_mbox()
7518 mb->un.mb_words[4], mb->un.mb_words[5], in lpfc_sli4_post_sync_mbox()
7519 mb->un.mb_words[6], mb->un.mb_words[7], in lpfc_sli4_post_sync_mbox()
7520 mb->un.mb_words[8], mb->un.mb_words[9], in lpfc_sli4_post_sync_mbox()
7521 mb->un.mb_words[10], mb->un.mb_words[11], in lpfc_sli4_post_sync_mbox()
7522 mb->un.mb_words[12], mboxq->mcqe.word0, in lpfc_sli4_post_sync_mbox()
7555 lpfc_idiag_mbxacc_dump_issue_mbox(phba, &mboxq->u.mb); in lpfc_sli_issue_mbox_s4()
7563 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
7583 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
7600 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
7617 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
7640 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
7769 mboxq->u.mb.mbxCommand, in lpfc_sli4_post_async_mbox()
7781 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_post_async_mbox()
9320 pmb->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_mbox_sys_flush()
10552 MAILBOX_t *mb = NULL; in lpfc_sli_issue_mbox_wait() local
10558 mb = (MAILBOX_t *)pmboxq->context1; in lpfc_sli_issue_mbox_wait()
10575 pmboxq->context1 = (uint8_t *)mb; in lpfc_sli_issue_mbox_wait()
10589 pmboxq->context1 = (uint8_t *)mb; in lpfc_sli_issue_mbox_wait()
11072 pmbox = &pmb->u.mb; in lpfc_sli_sp_intr_handler()
16580 MAILBOX_t *mb; in lpfc_sli_get_config_region23() local
16593 mb = &pmb->u.mb; in lpfc_sli_get_config_region23()
16603 rc, mb->mbxStatus); in lpfc_sli_get_config_region23()
16604 mb->un.varDmp.word_cnt = 0; in lpfc_sli_get_config_region23()
16610 if (mb->un.varDmp.word_cnt == 0) in lpfc_sli_get_config_region23()
16612 if (mb->un.varDmp.word_cnt > DMP_RGN23_SIZE - offset) in lpfc_sli_get_config_region23()
16613 mb->un.varDmp.word_cnt = DMP_RGN23_SIZE - offset; in lpfc_sli_get_config_region23()
16615 lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, in lpfc_sli_get_config_region23()
16617 mb->un.varDmp.word_cnt); in lpfc_sli_get_config_region23()
16618 offset += mb->un.varDmp.word_cnt; in lpfc_sli_get_config_region23()
16619 } while (mb->un.varDmp.word_cnt && offset < DMP_RGN23_SIZE); in lpfc_sli_get_config_region23()
16878 LPFC_MBOXQ_t *mb, *nextmb; in lpfc_cleanup_pending_mbox() local
16888 list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { in lpfc_cleanup_pending_mbox()
16889 if (mb->vport != vport) in lpfc_cleanup_pending_mbox()
16892 if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && in lpfc_cleanup_pending_mbox()
16893 (mb->u.mb.mbxCommand != MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
16896 list_del(&mb->list); in lpfc_cleanup_pending_mbox()
16897 list_add_tail(&mb->list, &mbox_cmd_list); in lpfc_cleanup_pending_mbox()
16900 mb = phba->sli.mbox_active; in lpfc_cleanup_pending_mbox()
16901 if (mb && (mb->vport == vport)) { in lpfc_cleanup_pending_mbox()
16902 if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) || in lpfc_cleanup_pending_mbox()
16903 (mb->u.mb.mbxCommand == MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
16904 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_pending_mbox()
16905 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
16906 act_mbx_ndlp = (struct lpfc_nodelist *)mb->context2; in lpfc_cleanup_pending_mbox()
16910 mb->mbox_flag |= LPFC_MBX_IMED_UNREG; in lpfc_cleanup_pending_mbox()
16916 list_for_each_entry(mb, &phba->sli.mboxq_cmpl, list) { in lpfc_cleanup_pending_mbox()
16921 if ((mb->vport != vport) || in lpfc_cleanup_pending_mbox()
16922 (mb->mbox_flag & LPFC_MBX_IMED_UNREG)) in lpfc_cleanup_pending_mbox()
16925 if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && in lpfc_cleanup_pending_mbox()
16926 (mb->u.mb.mbxCommand != MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
16929 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_pending_mbox()
16930 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
16931 ndlp = (struct lpfc_nodelist *)mb->context2; in lpfc_cleanup_pending_mbox()
16933 mb->mbox_flag |= LPFC_MBX_IMED_UNREG; in lpfc_cleanup_pending_mbox()
16949 list_remove_head(&mbox_cmd_list, mb, LPFC_MBOXQ_t, list); in lpfc_cleanup_pending_mbox()
16950 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
16951 mp = (struct lpfc_dmabuf *) (mb->context1); in lpfc_cleanup_pending_mbox()
16956 ndlp = (struct lpfc_nodelist *) mb->context2; in lpfc_cleanup_pending_mbox()
16957 mb->context2 = NULL; in lpfc_cleanup_pending_mbox()
16965 mempool_free(mb, phba->mbox_mem_pool); in lpfc_cleanup_pending_mbox()