Lines Matching refs:mb

464 	mb();  in lpfc_sli4_eq_get()
704 mb(); in lpfc_sli4_cq_get()
1684 pmbox = &pmb->u.mb; in lpfc_sli_ring_map()
2886 pmb->u.mb.mbxCommand == MBX_REG_LOGIN64 && in lpfc_sli_def_mbox_cmpl()
2887 !pmb->u.mb.mbxStatus) { in lpfc_sli_def_mbox_cmpl()
2894 rpi = pmb->u.mb.un.varWords[0]; in lpfc_sli_def_mbox_cmpl()
2895 vpi = pmb->u.mb.un.varRegLogin.vpi; in lpfc_sli_def_mbox_cmpl()
2906 if ((pmb->u.mb.mbxCommand == MBX_REG_VPI) && in lpfc_sli_def_mbox_cmpl()
2908 !pmb->u.mb.mbxStatus) { in lpfc_sli_def_mbox_cmpl()
2916 if (pmb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_sli_def_mbox_cmpl()
2921 if (pmb->u.mb.mbxCommand == MBX_UNREG_LOGIN) { in lpfc_sli_def_mbox_cmpl()
2954 if (pmb->u.mb.mbxCommand == MBX_RESUME_RPI) { in lpfc_sli_def_mbox_cmpl()
2960 if ((pmb->u.mb.mbxCommand == MBX_INIT_LINK) && in lpfc_sli_def_mbox_cmpl()
2961 (pmb->u.mb.mbxStatus == MBXERR_SEC_NO_PERMISSION)) in lpfc_sli_def_mbox_cmpl()
2991 if (pmb->u.mb.mbxCommand == MBX_UNREG_LOGIN) { in lpfc_sli4_unreg_rpi_cmpl_clr()
3071 pmbox = &pmb->u.mb; in lpfc_sli_handle_mb_event()
5206 volatile struct MAILBOX_word0 mb; in lpfc_sli_brdrestart_s3() local
5220 mb.word0 = 0; in lpfc_sli_brdrestart_s3()
5221 mb.mbxCommand = MBX_RESTART; in lpfc_sli_brdrestart_s3()
5222 mb.mbxHc = 1; in lpfc_sli_brdrestart_s3()
5227 writel(mb.word0, to_slim); in lpfc_sli_brdrestart_s3()
5232 mb.word0 = 1; /* This is really setting up word1 */ in lpfc_sli_brdrestart_s3()
5234 mb.word0 = 0; /* This is really setting up word1 */ in lpfc_sli_brdrestart_s3()
5236 writel(mb.word0, to_slim); in lpfc_sli_brdrestart_s3()
5485 pmbox = &pmb->u.mb; in lpfc_sli_hbq_setup()
5622 pmb->u.mb.mbxCommand, pmb->u.mb.mbxStatus, 0); in lpfc_sli_config_port()
5634 if ((pmb->u.mb.un.varCfgPort.casabt == 1) && in lpfc_sli_config_port()
5635 (pmb->u.mb.un.varCfgPort.gasabt == 0)) in lpfc_sli_config_port()
5644 if (pmb->u.mb.un.varCfgPort.sli_mode == 3) { in lpfc_sli_config_port()
5645 if (!pmb->u.mb.un.varCfgPort.cMA) { in lpfc_sli_config_port()
5649 if (phba->max_vpi && pmb->u.mb.un.varCfgPort.gmv) { in lpfc_sli_config_port()
5651 phba->max_vpi = pmb->u.mb.un.varCfgPort.max_vpi; in lpfc_sli_config_port()
5657 if (pmb->u.mb.un.varCfgPort.gerbm) in lpfc_sli_config_port()
5659 if (pmb->u.mb.un.varCfgPort.gcrp) in lpfc_sli_config_port()
5666 if (pmb->u.mb.un.varCfgPort.gbg == 0) { in lpfc_sli_config_port()
6973 MAILBOX_t *mb; in lpfc_sli4_ras_mbox_cmpl() local
6978 mb = &pmb->u.mb; in lpfc_sli4_ras_mbox_cmpl()
6985 if (mb->mbxStatus != MBX_SUCCESS || shdr_status) { in lpfc_sli4_ras_mbox_cmpl()
6990 shdr_status, shdr_add_status, mb->mbxStatus); in lpfc_sli4_ras_mbox_cmpl()
7832 if (shdr_status || shdr_add_status || pmb->u.mb.mbxStatus) { in lpfc_mbx_cmpl_read_lds_params()
7837 shdr_add_status, pmb->u.mb.mbxStatus); in lpfc_mbx_cmpl_read_lds_params()
7893 if (shdr_status || shdr_add_status || pmb->u.mb.mbxStatus) { in lpfc_mbx_cmpl_cgn_set_ftrs()
7899 pmb->u.mb.mbxStatus); in lpfc_mbx_cmpl_cgn_set_ftrs()
9250 MAILBOX_t *mb = NULL; in lpfc_mbox_timeout_handler() local
9261 mb = &pmbox->u.mb; in lpfc_mbox_timeout_handler()
9280 mb->mbxCommand, in lpfc_mbox_timeout_handler()
9370 pmbox->u.mb.mbxCommand); in lpfc_sli_issue_mbox_s3()
9390 mbx = &pmbox->u.mb; in lpfc_sli_issue_mbox_s3()
9401 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
9413 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
9432 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9444 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9497 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9719 pmbox->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_issue_mbox_s3()
9777 cmd = mboxq->u.mb.mbxCommand; in lpfc_sli4_async_mbox_block()
9919 struct lpfc_mqe *mb = &mboxq->u.mqe; in lpfc_sli4_post_sync_mbox() local
9934 mboxq->u.mb.mbxCommand, in lpfc_sli4_post_sync_mbox()
9954 mbx_cmnd = bf_get(lpfc_mqe_command, mb); in lpfc_sli4_post_sync_mbox()
9956 lpfc_sli4_pcimem_bcopy(mb, phba->sli4_hba.bmbx.avirt, in lpfc_sli4_post_sync_mbox()
9981 lpfc_sli4_pcimem_bcopy(phba->sli4_hba.bmbx.avirt, mb, in lpfc_sli4_post_sync_mbox()
9993 if (bf_get(lpfc_mqe_status, mb) == MBX_SUCCESS) in lpfc_sli4_post_sync_mbox()
9994 bf_set(lpfc_mqe_status, mb, in lpfc_sli4_post_sync_mbox()
10007 bf_get(lpfc_mqe_status, mb), in lpfc_sli4_post_sync_mbox()
10008 mb->un.mb_words[0], mb->un.mb_words[1], in lpfc_sli4_post_sync_mbox()
10009 mb->un.mb_words[2], mb->un.mb_words[3], in lpfc_sli4_post_sync_mbox()
10010 mb->un.mb_words[4], mb->un.mb_words[5], in lpfc_sli4_post_sync_mbox()
10011 mb->un.mb_words[6], mb->un.mb_words[7], in lpfc_sli4_post_sync_mbox()
10012 mb->un.mb_words[8], mb->un.mb_words[9], in lpfc_sli4_post_sync_mbox()
10013 mb->un.mb_words[10], mb->un.mb_words[11], in lpfc_sli4_post_sync_mbox()
10014 mb->un.mb_words[12], mboxq->mcqe.word0, in lpfc_sli4_post_sync_mbox()
10047 lpfc_idiag_mbxacc_dump_issue_mbox(phba, &mboxq->u.mb); in lpfc_sli_issue_mbox_s4()
10055 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
10075 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
10092 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
10109 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
10132 mboxq->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s4()
10261 mboxq->u.mb.mbxCommand, in lpfc_sli4_post_async_mbox()
10273 mboxq->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli4_post_async_mbox()
11868 pmb->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_mbox_sys_flush()
13782 pmbox = &pmb->u.mb; in lpfc_sli_sp_intr_handler()
20588 MAILBOX_t *mb; in lpfc_sli_get_config_region23() local
20601 mb = &pmb->u.mb; in lpfc_sli_get_config_region23()
20611 rc, mb->mbxStatus); in lpfc_sli_get_config_region23()
20612 mb->un.varDmp.word_cnt = 0; in lpfc_sli_get_config_region23()
20618 if (mb->un.varDmp.word_cnt == 0) in lpfc_sli_get_config_region23()
20621 if (mb->un.varDmp.word_cnt > DMP_RGN23_SIZE - offset) in lpfc_sli_get_config_region23()
20622 mb->un.varDmp.word_cnt = DMP_RGN23_SIZE - offset; in lpfc_sli_get_config_region23()
20624 lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, in lpfc_sli_get_config_region23()
20626 mb->un.varDmp.word_cnt); in lpfc_sli_get_config_region23()
20627 offset += mb->un.varDmp.word_cnt; in lpfc_sli_get_config_region23()
20628 } while (mb->un.varDmp.word_cnt && offset < DMP_RGN23_SIZE); in lpfc_sli_get_config_region23()
20999 LPFC_MBOXQ_t *mb, *nextmb; in lpfc_cleanup_pending_mbox() local
21007 list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { in lpfc_cleanup_pending_mbox()
21008 if (mb->vport != vport) in lpfc_cleanup_pending_mbox()
21011 if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && in lpfc_cleanup_pending_mbox()
21012 (mb->u.mb.mbxCommand != MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
21015 list_move_tail(&mb->list, &mbox_cmd_list); in lpfc_cleanup_pending_mbox()
21018 mb = phba->sli.mbox_active; in lpfc_cleanup_pending_mbox()
21019 if (mb && (mb->vport == vport)) { in lpfc_cleanup_pending_mbox()
21020 if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) || in lpfc_cleanup_pending_mbox()
21021 (mb->u.mb.mbxCommand == MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
21022 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_pending_mbox()
21023 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
21024 act_mbx_ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; in lpfc_cleanup_pending_mbox()
21032 mb->mbox_flag |= LPFC_MBX_IMED_UNREG; in lpfc_cleanup_pending_mbox()
21038 list_for_each_entry(mb, &phba->sli.mboxq_cmpl, list) { in lpfc_cleanup_pending_mbox()
21043 if ((mb->vport != vport) || in lpfc_cleanup_pending_mbox()
21044 (mb->mbox_flag & LPFC_MBX_IMED_UNREG)) in lpfc_cleanup_pending_mbox()
21047 if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) && in lpfc_cleanup_pending_mbox()
21048 (mb->u.mb.mbxCommand != MBX_REG_VPI)) in lpfc_cleanup_pending_mbox()
21051 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_pending_mbox()
21052 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
21053 ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; in lpfc_cleanup_pending_mbox()
21055 mb->mbox_flag |= LPFC_MBX_IMED_UNREG; in lpfc_cleanup_pending_mbox()
21071 list_remove_head(&mbox_cmd_list, mb, LPFC_MBOXQ_t, list); in lpfc_cleanup_pending_mbox()
21072 if (mb->u.mb.mbxCommand == MBX_REG_LOGIN64) { in lpfc_cleanup_pending_mbox()
21073 ndlp = (struct lpfc_nodelist *)mb->ctx_ndlp; in lpfc_cleanup_pending_mbox()
21074 mb->ctx_ndlp = NULL; in lpfc_cleanup_pending_mbox()
21082 lpfc_mbox_rsrc_cleanup(phba, mb, MBOX_THD_UNLOCKED); in lpfc_cleanup_pending_mbox()