Lines Matching refs:pmb
2131 MAILBOX_t *pmb; in lpfc_get_hba_info() local
2154 pmb = &pmboxq->u.mb; in lpfc_get_hba_info()
2155 pmb->mbxCommand = MBX_READ_CONFIG; in lpfc_get_hba_info()
2156 pmb->mbxOwner = OWN_HOST; in lpfc_get_hba_info()
2232 *mrpi = pmb->un.varRdConfig.max_rpi; in lpfc_get_hba_info()
2234 *arpi = pmb->un.varRdConfig.avail_rpi; in lpfc_get_hba_info()
2236 *mxri = pmb->un.varRdConfig.max_xri; in lpfc_get_hba_info()
2238 *axri = pmb->un.varRdConfig.avail_xri; in lpfc_get_hba_info()
2240 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
2244 *avpi = pmb->un.varRdConfig.avail_vpi; in lpfc_get_hba_info()
2246 *avpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
6623 MAILBOX_t *pmb; in lpfc_get_stats() local
6643 pmb = &pmboxq->u.mb; in lpfc_get_stats()
6644 pmb->mbxCommand = MBX_READ_STATUS; in lpfc_get_stats()
6645 pmb->mbxOwner = OWN_HOST; in lpfc_get_stats()
6666 hs->tx_frames = pmb->un.varRdStatus.xmitFrameCnt; in lpfc_get_stats()
6667 hs->rx_frames = pmb->un.varRdStatus.rcvFrameCnt; in lpfc_get_stats()
6676 if (pmb->un.varRdStatus.xkb & RD_ST_XKB) { in lpfc_get_stats()
6678 ((((u64)(pmb->un.varRdStatus.xmit_xkb & in lpfc_get_stats()
6680 (u64)pmb->un.varRdStatus.xmitByteCnt) * in lpfc_get_stats()
6683 ((((u64)(pmb->un.varRdStatus.rcv_xkb & in lpfc_get_stats()
6685 (u64)pmb->un.varRdStatus.rcvByteCnt) * in lpfc_get_stats()
6689 ((uint64_t)pmb->un.varRdStatus.xmitByteCnt in lpfc_get_stats()
6692 ((uint64_t)pmb->un.varRdStatus.rcvByteCnt in lpfc_get_stats()
6697 pmb->mbxCommand = MBX_READ_LNK_STAT; in lpfc_get_stats()
6698 pmb->mbxOwner = OWN_HOST; in lpfc_get_stats()
6717 hs->link_failure_count = pmb->un.varRdLnk.linkFailureCnt; in lpfc_get_stats()
6718 hs->loss_of_sync_count = pmb->un.varRdLnk.lossSyncCnt; in lpfc_get_stats()
6719 hs->loss_of_signal_count = pmb->un.varRdLnk.lossSignalCnt; in lpfc_get_stats()
6720 hs->prim_seq_protocol_err_count = pmb->un.varRdLnk.primSeqErrCnt; in lpfc_get_stats()
6721 hs->invalid_tx_word_count = pmb->un.varRdLnk.invalidXmitWord; in lpfc_get_stats()
6722 hs->invalid_crc_count = pmb->un.varRdLnk.crcCnt; in lpfc_get_stats()
6723 hs->error_frames = pmb->un.varRdLnk.crcCnt; in lpfc_get_stats()
6771 MAILBOX_t *pmb; in lpfc_reset_stats() local
6782 pmb = &pmboxq->u.mb; in lpfc_reset_stats()
6783 pmb->mbxCommand = MBX_READ_STATUS; in lpfc_reset_stats()
6784 pmb->mbxOwner = OWN_HOST; in lpfc_reset_stats()
6785 pmb->un.varWords[0] = 0x1; /* reset request */ in lpfc_reset_stats()
6806 pmb->mbxCommand = MBX_READ_LNK_STAT; in lpfc_reset_stats()
6807 pmb->mbxOwner = OWN_HOST; in lpfc_reset_stats()
6827 lso->link_failure_count = pmb->un.varRdLnk.linkFailureCnt; in lpfc_reset_stats()
6828 lso->loss_of_sync_count = pmb->un.varRdLnk.lossSyncCnt; in lpfc_reset_stats()
6829 lso->loss_of_signal_count = pmb->un.varRdLnk.lossSignalCnt; in lpfc_reset_stats()
6830 lso->prim_seq_protocol_err_count = pmb->un.varRdLnk.primSeqErrCnt; in lpfc_reset_stats()
6831 lso->invalid_tx_word_count = pmb->un.varRdLnk.invalidXmitWord; in lpfc_reset_stats()
6832 lso->invalid_crc_count = pmb->un.varRdLnk.crcCnt; in lpfc_reset_stats()
6833 lso->error_frames = pmb->un.varRdLnk.crcCnt; in lpfc_reset_stats()