Lines Matching refs:pmbox
1216 MAILBOX_t *pmbox; in lpfc_sli_ring_map() local
1222 pmbox = &pmb->u.mb; in lpfc_sli_ring_map()
1232 rc, pmbox->mbxCommand, in lpfc_sli_ring_map()
1233 pmbox->mbxStatus, i); in lpfc_sli_ring_map()
2182 MAILBOX_t *pmbox; in lpfc_sli_handle_mb_event() local
2200 pmbox = &pmb->u.mb; in lpfc_sli_handle_mb_event()
2202 if (pmbox->mbxCommand != MBX_HEARTBEAT) { in lpfc_sli_handle_mb_event()
2207 (uint32_t)pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
2208 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2209 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
2215 (uint32_t)pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
2216 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2217 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
2224 if (lpfc_sli_chk_mbx_command(pmbox->mbxCommand) == in lpfc_sli_handle_mb_event()
2231 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
2242 if (pmbox->mbxStatus) { in lpfc_sli_handle_mb_event()
2244 if (pmbox->mbxStatus == MBXERR_NO_RESOURCES) { in lpfc_sli_handle_mb_event()
2252 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
2257 pmbox->mbxStatus, in lpfc_sli_handle_mb_event()
2258 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2260 pmbox->mbxStatus = 0; in lpfc_sli_handle_mb_event()
2261 pmbox->mbxOwner = OWN_HOST; in lpfc_sli_handle_mb_event()
2273 pmbox->mbxCommand, in lpfc_sli_handle_mb_event()
2277 *((uint32_t *) pmbox), in lpfc_sli_handle_mb_event()
2278 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2279 pmbox->un.varWords[1], in lpfc_sli_handle_mb_event()
2280 pmbox->un.varWords[2], in lpfc_sli_handle_mb_event()
2281 pmbox->un.varWords[3], in lpfc_sli_handle_mb_event()
2282 pmbox->un.varWords[4], in lpfc_sli_handle_mb_event()
2283 pmbox->un.varWords[5], in lpfc_sli_handle_mb_event()
2284 pmbox->un.varWords[6], in lpfc_sli_handle_mb_event()
2285 pmbox->un.varWords[7]); in lpfc_sli_handle_mb_event()
4204 MAILBOX_t *pmbox; in lpfc_sli_hbq_setup() local
4216 pmbox = &pmb->u.mb; in lpfc_sli_hbq_setup()
4241 pmbox->mbxCommand, in lpfc_sli_hbq_setup()
4242 pmbox->mbxStatus, hbqno); in lpfc_sli_hbq_setup()
6318 LPFC_MBOXQ_t *pmbox = phba->sli.mbox_active; in lpfc_mbox_timeout_handler() local
6319 MAILBOX_t *mb = &pmbox->u.mb; in lpfc_mbox_timeout_handler()
6329 if (pmbox == NULL) { in lpfc_mbox_timeout_handler()
6396 lpfc_sli_issue_mbox_s3(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmbox, in lpfc_sli_issue_mbox_s3() argument
6411 if (!pmbox) { in lpfc_sli_issue_mbox_s3()
6419 pmbox = lpfc_mbox_get(phba); in lpfc_sli_issue_mbox_s3()
6420 if (!pmbox) { in lpfc_sli_issue_mbox_s3()
6426 if (pmbox->mbox_cmpl && pmbox->mbox_cmpl != lpfc_sli_def_mbox_cmpl && in lpfc_sli_issue_mbox_s3()
6427 pmbox->mbox_cmpl != lpfc_sli_wake_mbox_wait) { in lpfc_sli_issue_mbox_s3()
6428 if(!pmbox->vport) { in lpfc_sli_issue_mbox_s3()
6433 pmbox->u.mb.mbxCommand); in lpfc_sli_issue_mbox_s3()
6453 mb = &pmbox->u.mb; in lpfc_sli_issue_mbox_s3()
6463 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6464 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
6475 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6476 pmbox->u.mb.mbxCommand, psli->sli_flag, flag); in lpfc_sli_issue_mbox_s3()
6494 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6495 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
6506 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6507 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
6515 lpfc_mbox_put(phba, pmbox); in lpfc_sli_issue_mbox_s3()
6521 pmbox->vport ? pmbox->vport->vpi : 0xffffff, in lpfc_sli_issue_mbox_s3()
6528 if (pmbox->vport) { in lpfc_sli_issue_mbox_s3()
6529 lpfc_debugfs_disc_trc(pmbox->vport, in lpfc_sli_issue_mbox_s3()
6558 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6559 pmbox->u.mb.mbxCommand, in lpfc_sli_issue_mbox_s3()
6565 (HZ * lpfc_mbox_tmo_val(phba, pmbox)))); in lpfc_sli_issue_mbox_s3()
6572 pmbox->vport ? pmbox->vport->vpi : 0, in lpfc_sli_issue_mbox_s3()
6577 if (pmbox->vport) { in lpfc_sli_issue_mbox_s3()
6578 lpfc_debugfs_disc_trc(pmbox->vport, in lpfc_sli_issue_mbox_s3()
6601 if (pmbox->in_ext_byte_len || pmbox->out_ext_byte_len) { in lpfc_sli_issue_mbox_s3()
6602 *(((uint32_t *)mb) + pmbox->mbox_offset_word) in lpfc_sli_issue_mbox_s3()
6608 if (pmbox->in_ext_byte_len && pmbox->context2) { in lpfc_sli_issue_mbox_s3()
6609 lpfc_sli_pcimem_bcopy(pmbox->context2, in lpfc_sli_issue_mbox_s3()
6611 pmbox->in_ext_byte_len); in lpfc_sli_issue_mbox_s3()
6617 if (pmbox->in_ext_byte_len || pmbox->out_ext_byte_len) in lpfc_sli_issue_mbox_s3()
6618 *(((uint32_t *)mb) + pmbox->mbox_offset_word) in lpfc_sli_issue_mbox_s3()
6622 if (pmbox->in_ext_byte_len && pmbox->context2) { in lpfc_sli_issue_mbox_s3()
6625 pmbox->context2, pmbox->in_ext_byte_len); in lpfc_sli_issue_mbox_s3()
6656 psli->mbox_active = pmbox; in lpfc_sli_issue_mbox_s3()
6689 timeout = msecs_to_jiffies(lpfc_mbox_tmo_val(phba, pmbox) * in lpfc_sli_issue_mbox_s3()
6749 if (pmbox->out_ext_byte_len && pmbox->context2) { in lpfc_sli_issue_mbox_s3()
6751 pmbox->context2, in lpfc_sli_issue_mbox_s3()
6752 pmbox->out_ext_byte_len); in lpfc_sli_issue_mbox_s3()
6759 if (pmbox->out_ext_byte_len && pmbox->context2) { in lpfc_sli_issue_mbox_s3()
6760 lpfc_memcpy_from_slim(pmbox->context2, in lpfc_sli_issue_mbox_s3()
6763 pmbox->out_ext_byte_len); in lpfc_sli_issue_mbox_s3()
6779 pmbox->u.mb.mbxStatus = MBX_NOT_FINISHED; in lpfc_sli_issue_mbox_s3()
6780 lpfc_mbox_cmpl_put(phba, pmbox); in lpfc_sli_issue_mbox_s3()
7280 lpfc_sli_issue_mbox(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmbox, uint32_t flag) in lpfc_sli_issue_mbox() argument
7282 return phba->lpfc_sli_issue_mbox(phba, pmbox, flag); in lpfc_sli_issue_mbox()
10120 MAILBOX_t *mbox, *pmbox; in lpfc_sli_sp_intr_handler() local
10272 pmbox = &pmb->u.mb; in lpfc_sli_sp_intr_handler()
10277 lpfc_sli_pcimem_bcopy(mbox, pmbox, sizeof(uint32_t)); in lpfc_sli_sp_intr_handler()
10278 if (pmbox->mbxOwner != OWN_HOST) { in lpfc_sli_sp_intr_handler()
10290 pmbox->mbxCommand, in lpfc_sli_sp_intr_handler()
10291 pmbox->mbxStatus); in lpfc_sli_sp_intr_handler()
10300 lpfc_sli_pcimem_bcopy(mbox, pmbox, in lpfc_sli_sp_intr_handler()
10316 (uint32_t)pmbox->mbxStatus, in lpfc_sli_sp_intr_handler()
10317 pmbox->un.varWords[0], 0); in lpfc_sli_sp_intr_handler()
10319 if (!pmbox->mbxStatus) { in lpfc_sli_sp_intr_handler()
10332 pmbox->un.varWords[0], in lpfc_sli_sp_intr_handler()
10838 MAILBOX_t *mbox, *pmbox; in lpfc_sli4_sp_handle_mbox_event() local
10863 pmbox = (MAILBOX_t *)&pmb->u.mqe; in lpfc_sli4_sp_handle_mbox_event()
10890 pmbox->un.varWords[0], 0); in lpfc_sli4_sp_handle_mbox_event()
10898 pmbox->un.varWords[0], pmb); in lpfc_sli4_sp_handle_mbox_event()