Lines Matching refs:pmbox
1680 MAILBOX_t *pmbox; in lpfc_sli_ring_map() local
1686 pmbox = &pmb->u.mb; in lpfc_sli_ring_map()
1696 rc, pmbox->mbxCommand, in lpfc_sli_ring_map()
1697 pmbox->mbxStatus, i); in lpfc_sli_ring_map()
3037 MAILBOX_t *pmbox; in lpfc_sli_handle_mb_event() local
3055 pmbox = &pmb->u.mb; in lpfc_sli_handle_mb_event()
3057 if (pmbox->mbxCommand != MBX_HEARTBEAT) { in lpfc_sli_handle_mb_event()
3062 (uint32_t)pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
3063 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
3064 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
3070 (uint32_t)pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
3071 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
3072 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
3079 if (lpfc_sli_chk_mbx_command(pmbox->mbxCommand) == in lpfc_sli_handle_mb_event()
3087 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
3098 if (pmbox->mbxStatus) { in lpfc_sli_handle_mb_event()
3100 if (pmbox->mbxStatus == MBXERR_NO_RESOURCES) { in lpfc_sli_handle_mb_event()
3109 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
3114 pmbox->mbxStatus, in lpfc_sli_handle_mb_event()
3115 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
3118 pmbox->mbxStatus = 0; in lpfc_sli_handle_mb_event()
3119 pmbox->mbxOwner = OWN_HOST; in lpfc_sli_handle_mb_event()
3132 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
3136 *((uint32_t *) pmbox), in lpfc_sli_handle_mb_event()
3137 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
3138 pmbox->un.varWords[1], in lpfc_sli_handle_mb_event()
3139 pmbox->un.varWords[2], in lpfc_sli_handle_mb_event()
3140 pmbox->un.varWords[3], in lpfc_sli_handle_mb_event()
3141 pmbox->un.varWords[4], in lpfc_sli_handle_mb_event()
3142 pmbox->un.varWords[5], in lpfc_sli_handle_mb_event()
3143 pmbox->un.varWords[6], in lpfc_sli_handle_mb_event()
3144 pmbox->un.varWords[7], in lpfc_sli_handle_mb_event()
3145 pmbox->un.varWords[8], in lpfc_sli_handle_mb_event()
3146 pmbox->un.varWords[9], in lpfc_sli_handle_mb_event()
3147 pmbox->un.varWords[10]); in lpfc_sli_handle_mb_event()
5473 MAILBOX_t *pmbox; in lpfc_sli_hbq_setup() local
5485 pmbox = &pmb->u.mb; in lpfc_sli_hbq_setup()
5510 pmbox->mbxCommand, in lpfc_sli_hbq_setup()
5511 pmbox->mbxStatus, hbqno); in lpfc_sli_hbq_setup()
9284 LPFC_MBOXQ_t *pmbox = phba->sli.mbox_active; in lpfc_mbox_timeout_handler() local
9295 if (pmbox != NULL) in lpfc_mbox_timeout_handler()
9296 mb = &pmbox->u.mb; in lpfc_mbox_timeout_handler()
9303 if (pmbox == NULL) { in lpfc_mbox_timeout_handler()
9368 lpfc_sli_issue_mbox_s3(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmbox, in lpfc_sli_issue_mbox_s3() argument
9383 if (!pmbox) { in lpfc_sli_issue_mbox_s3()
9391 pmbox = lpfc_mbox_get(phba); in lpfc_sli_issue_mbox_s3()
9392 if (!pmbox) { in lpfc_sli_issue_mbox_s3()
9398 if (pmbox->mbox_cmpl && pmbox->mbox_cmpl != lpfc_sli_def_mbox_cmpl && in lpfc_sli_issue_mbox_s3()
9399 pmbox->mbox_cmpl != lpfc_sli_wake_mbox_wait) { in lpfc_sli_issue_mbox_s3()
9400 if(!pmbox->vport) { in lpfc_sli_issue_mbox_s3()
9405 pmbox->u.mb.mbxCommand); in lpfc_sli_issue_mbox_s3()
9425 mbx = &pmbox->u.mb; in lpfc_sli_issue_mbox_s3()
9435 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9436 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
9447 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9448 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
9466 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9467 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9478 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9479 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9487 lpfc_mbox_put(phba, pmbox); in lpfc_sli_issue_mbox_s3()
9493 pmbox->vport ? pmbox->vport->vpi : 0xffffff, in lpfc_sli_issue_mbox_s3()
9501 if (pmbox->vport) { in lpfc_sli_issue_mbox_s3()
9502 lpfc_debugfs_disc_trc(pmbox->vport, in lpfc_sli_issue_mbox_s3()
9531 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9532 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
9537 timeout = msecs_to_jiffies(lpfc_mbox_tmo_val(phba, pmbox) * in lpfc_sli_issue_mbox_s3()
9546 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
9552 if (pmbox->vport) { in lpfc_sli_issue_mbox_s3()
9553 lpfc_debugfs_disc_trc(pmbox->vport, in lpfc_sli_issue_mbox_s3()
9576 if (pmbox->in_ext_byte_len || pmbox->out_ext_byte_len) { in lpfc_sli_issue_mbox_s3()
9577 *(((uint32_t *)mbx) + pmbox->mbox_offset_word) in lpfc_sli_issue_mbox_s3()
9583 if (pmbox->in_ext_byte_len && pmbox->ctx_buf) { in lpfc_sli_issue_mbox_s3()
9584 lpfc_sli_pcimem_bcopy(pmbox->ctx_buf, in lpfc_sli_issue_mbox_s3()
9586 pmbox->in_ext_byte_len); in lpfc_sli_issue_mbox_s3()
9592 if (pmbox->in_ext_byte_len || pmbox->out_ext_byte_len) in lpfc_sli_issue_mbox_s3()
9593 *(((uint32_t *)mbx) + pmbox->mbox_offset_word) in lpfc_sli_issue_mbox_s3()
9597 if (pmbox->in_ext_byte_len && pmbox->ctx_buf) in lpfc_sli_issue_mbox_s3()
9600 pmbox->ctx_buf, pmbox->in_ext_byte_len); in lpfc_sli_issue_mbox_s3()
9629 psli->mbox_active = pmbox; in lpfc_sli_issue_mbox_s3()
9662 timeout = msecs_to_jiffies(lpfc_mbox_tmo_val(phba, pmbox) * in lpfc_sli_issue_mbox_s3()
9723 if (pmbox->out_ext_byte_len && pmbox->ctx_buf) { in lpfc_sli_issue_mbox_s3()
9725 pmbox->ctx_buf, in lpfc_sli_issue_mbox_s3()
9726 pmbox->out_ext_byte_len); in lpfc_sli_issue_mbox_s3()
9733 if (pmbox->out_ext_byte_len && pmbox->ctx_buf) { in lpfc_sli_issue_mbox_s3()
9735 pmbox->ctx_buf, in lpfc_sli_issue_mbox_s3()
9738 pmbox->out_ext_byte_len); in lpfc_sli_issue_mbox_s3()
9754 pmbox->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_issue_mbox_s3()
9755 lpfc_mbox_cmpl_put(phba, pmbox); in lpfc_sli_issue_mbox_s3()
10314 lpfc_sli_issue_mbox(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmbox, uint32_t flag) in lpfc_sli_issue_mbox() argument
10316 return phba->lpfc_sli_issue_mbox(phba, pmbox, flag); in lpfc_sli_issue_mbox()
13622 MAILBOX_t *mbox, *pmbox; in lpfc_sli_sp_intr_handler() local
13774 pmbox = &pmb->u.mb; in lpfc_sli_sp_intr_handler()
13779 lpfc_sli_pcimem_bcopy(mbox, pmbox, sizeof(uint32_t)); in lpfc_sli_sp_intr_handler()
13780 if (pmbox->mbxOwner != OWN_HOST) { in lpfc_sli_sp_intr_handler()
13791 pmbox->mbxCommand, in lpfc_sli_sp_intr_handler()
13792 pmbox->mbxStatus); in lpfc_sli_sp_intr_handler()
13801 lpfc_sli_pcimem_bcopy(mbox, pmbox, in lpfc_sli_sp_intr_handler()
13817 (uint32_t)pmbox->mbxStatus, in lpfc_sli_sp_intr_handler()
13818 pmbox->un.varWords[0], 0); in lpfc_sli_sp_intr_handler()
13820 if (!pmbox->mbxStatus) { in lpfc_sli_sp_intr_handler()
13833 pmbox->un.varWords[0], in lpfc_sli_sp_intr_handler()
13865 if (pmbox->mbxCommand == MBX_HEARTBEAT) { in lpfc_sli_sp_intr_handler()
14277 MAILBOX_t *mbox, *pmbox; in lpfc_sli4_sp_handle_mbox_event() local
14302 pmbox = (MAILBOX_t *)&pmb->u.mqe; in lpfc_sli4_sp_handle_mbox_event()
14329 pmbox->un.varWords[0], 0); in lpfc_sli4_sp_handle_mbox_event()
14343 pmbox->un.varWords[0], pmb); in lpfc_sli4_sp_handle_mbox_event()
14369 if (pmbox->mbxCommand == MBX_HEARTBEAT) { in lpfc_sli4_sp_handle_mbox_event()