Lines Matching refs:pfc
241 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() argument
255 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg()
289 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() argument
308 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg()
583 static int bnxt_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_getpfc() argument
591 pfc->pfc_cap = bp->max_lltc; in bnxt_dcbnl_ieee_getpfc()
606 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
607 pfc->mbc = my_pfc->mbc; in bnxt_dcbnl_ieee_getpfc()
608 pfc->delay = my_pfc->delay; in bnxt_dcbnl_ieee_getpfc()
616 pfc->requests[i] = le64_to_cpu(*(stats + tx_off)); in bnxt_dcbnl_ieee_getpfc()
617 pfc->indications[i] = le64_to_cpu(*(stats + rx_off)); in bnxt_dcbnl_ieee_getpfc()
623 static int bnxt_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_setpfc() argument
639 rc = bnxt_hwrm_queue_pfc_cfg(bp, pfc); in bnxt_dcbnl_ieee_setpfc()
641 memcpy(my_pfc, pfc, sizeof(*my_pfc)); in bnxt_dcbnl_ieee_setpfc()