• Home
  • Raw
  • Download

Lines Matching refs:mb

905 	LPFC_MBOXQ_t          *mb;  in lpfc_linkdown()  local
931 mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_linkdown()
932 if (mb) { in lpfc_linkdown()
933 lpfc_unreg_did(phba, 0xffff, LPFC_UNREG_ALL_DFLT_RPIS, mb); in lpfc_linkdown()
934 mb->vport = vport; in lpfc_linkdown()
935 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_linkdown()
936 if (lpfc_sli_issue_mbox(phba, mb, MBX_NOWAIT) in lpfc_linkdown()
938 mempool_free(mb, phba->mbox_mem_pool); in lpfc_linkdown()
945 mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_linkdown()
946 if (mb) { in lpfc_linkdown()
947 lpfc_config_link(phba, mb); in lpfc_linkdown()
948 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_linkdown()
949 mb->vport = vport; in lpfc_linkdown()
950 if (lpfc_sli_issue_mbox(phba, mb, MBX_NOWAIT) in lpfc_linkdown()
952 mempool_free(mb, phba->mbox_mem_pool); in lpfc_linkdown()
1054 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_clear_la() local
1063 if ((mb->mbxStatus) && (mb->mbxStatus != 0x1601)) { in lpfc_mbx_cmpl_clear_la()
1068 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_clear_la()
1117 if (pmb->u.mb.mbxStatus) in lpfc_mbx_cmpl_local_config_link()
1150 pmb->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_local_config_link()
1190 if (mboxq->u.mb.mbxStatus) { in lpfc_mbx_cmpl_reg_fcfi()
1194 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_reg_fcfi()
2715 if (mboxq->u.mb.mbxStatus && in lpfc_init_vfi_cmpl()
2718 mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { in lpfc_init_vfi_cmpl()
2722 mboxq->u.mb.mbxStatus); in lpfc_init_vfi_cmpl()
2778 if (mboxq->u.mb.mbxStatus) { in lpfc_init_vpi_cmpl()
2782 mboxq->u.mb.mbxStatus); in lpfc_init_vpi_cmpl()
2918 if (mboxq->u.mb.mbxStatus && in lpfc_mbx_cmpl_reg_vfi()
2921 mboxq->u.mb.mbxStatus != MBX_VFI_IN_USE) { in lpfc_mbx_cmpl_reg_vfi()
2925 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_mbx_cmpl_reg_vfi()
3000 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_read_sparam() local
3006 if (mb->mbxStatus) { in lpfc_mbx_cmpl_read_sparam()
3011 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_read_sparam()
3290 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_read_topology() local
3296 if (mb->mbxStatus) { in lpfc_mbx_cmpl_read_topology()
3299 mb->mbxStatus, vport->port_state); in lpfc_mbx_cmpl_read_topology()
3305 la = (struct lpfc_mbx_read_top *) &pmb->u.mb.un.varReadTop; in lpfc_mbx_cmpl_read_topology()
3477 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_unreg_vpi() local
3481 switch (mb->mbxStatus) { in lpfc_mbx_cmpl_unreg_vpi()
3486 mb->mbxStatus); in lpfc_mbx_cmpl_unreg_vpi()
3492 vport->vpi, mb->mbxStatus); in lpfc_mbx_cmpl_unreg_vpi()
3542 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_reg_vpi() local
3544 switch (mb->mbxStatus) { in lpfc_mbx_cmpl_reg_vpi()
3550 mb->mbxStatus); in lpfc_mbx_cmpl_reg_vpi()
3593 MAILBOX_t *mb; in lpfc_create_static_vport() local
3613 mb = &pmb->u.mb; in lpfc_create_static_vport()
3639 if ((mbx_wait_rc != MBX_SUCCESS) || mb->mbxStatus) { in lpfc_create_static_vport()
3644 mbx_wait_rc, mb->mbxStatus); in lpfc_create_static_vport()
3658 if (mb->un.varDmp.word_cnt > in lpfc_create_static_vport()
3660 mb->un.varDmp.word_cnt = in lpfc_create_static_vport()
3663 byte_count = mb->un.varDmp.word_cnt; in lpfc_create_static_vport()
3664 lpfc_sli_pcimem_bcopy(((uint8_t *)mb) + DMP_RSP_OFFSET, in lpfc_create_static_vport()
3736 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_fabric_reg_login() local
3745 if (mb->mbxStatus) { in lpfc_mbx_cmpl_fabric_reg_login()
3748 mb->mbxStatus); in lpfc_mbx_cmpl_fabric_reg_login()
3775 ndlp->nlp_rpi = mb->un.varWords[0]; in lpfc_mbx_cmpl_fabric_reg_login()
3814 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_ns_reg_login() local
3822 if (mb->mbxStatus) { in lpfc_mbx_cmpl_ns_reg_login()
3826 mb->mbxStatus); in lpfc_mbx_cmpl_ns_reg_login()
3854 ndlp->nlp_rpi = mb->un.varWords[0]; in lpfc_mbx_cmpl_ns_reg_login()
4638 LPFC_MBOXQ_t *mb, *nextmb; in lpfc_cleanup_node() local
4667 if ((mb = phba->sli.mbox_active)) { in lpfc_cleanup_node()
4668 if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && in lpfc_cleanup_node()
4669 !(mb->mbox_flag & LPFC_MBX_IMED_UNREG) && in lpfc_cleanup_node()
4670 (ndlp == (struct lpfc_nodelist *) mb->context2)) { in lpfc_cleanup_node()
4671 mb->context2 = NULL; in lpfc_cleanup_node()
4672 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_node()
4678 list_for_each_entry(mb, &phba->sli.mboxq_cmpl, list) { in lpfc_cleanup_node()
4679 if ((mb->u.mb.mbxCommand != MBX_REG_LOGIN64) || in lpfc_cleanup_node()
4680 (mb->mbox_flag & LPFC_MBX_IMED_UNREG) || in lpfc_cleanup_node()
4681 (ndlp != (struct lpfc_nodelist *) mb->context2)) in lpfc_cleanup_node()
4684 mb->context2 = NULL; in lpfc_cleanup_node()
4685 mb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_cleanup_node()
4688 list_for_each_entry_safe(mb, nextmb, &phba->sli.mboxq, list) { in lpfc_cleanup_node()
4689 if ((mb->u.mb.mbxCommand == MBX_REG_LOGIN64) && in lpfc_cleanup_node()
4690 !(mb->mbox_flag & LPFC_MBX_IMED_UNREG) && in lpfc_cleanup_node()
4691 (ndlp == (struct lpfc_nodelist *) mb->context2)) { in lpfc_cleanup_node()
4692 mp = (struct lpfc_dmabuf *) (mb->context1); in lpfc_cleanup_node()
4697 list_del(&mb->list); in lpfc_cleanup_node()
4698 mempool_free(mb, phba->mbox_mem_pool); in lpfc_cleanup_node()
5376 initlinkmbox->u.mb.un.varInitLnk.lipsr_AL_PA = 0; in lpfc_disc_timeout_handler()
5475 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_fdmi_reg_login() local
5484 ndlp->nlp_rpi = mb->un.varWords[0]; in lpfc_mbx_cmpl_fdmi_reg_login()
5909 if (mboxq->u.mb.mbxStatus) { in lpfc_unregister_vfi_cmpl()
5913 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_vfi_cmpl()
5934 if (mboxq->u.mb.mbxStatus) { in lpfc_unregister_fcfi_cmpl()
5938 mboxq->u.mb.mbxStatus, vport->port_state); in lpfc_unregister_fcfi_cmpl()