Lines Matching refs:pfc
232 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() argument
246 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg()
281 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() argument
298 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg()
546 static int bnxt_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_getpfc() argument
554 pfc->pfc_cap = bp->max_lltc; in bnxt_dcbnl_ieee_getpfc()
569 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
570 pfc->mbc = my_pfc->mbc; in bnxt_dcbnl_ieee_getpfc()
571 pfc->delay = my_pfc->delay; in bnxt_dcbnl_ieee_getpfc()
579 pfc->requests[i] = le64_to_cpu(*(stats + tx_off)); in bnxt_dcbnl_ieee_getpfc()
580 pfc->indications[i] = le64_to_cpu(*(stats + rx_off)); in bnxt_dcbnl_ieee_getpfc()
586 static int bnxt_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_setpfc() argument
602 rc = bnxt_hwrm_queue_pfc_cfg(bp, pfc); in bnxt_dcbnl_ieee_setpfc()
604 memcpy(my_pfc, pfc, sizeof(*my_pfc)); in bnxt_dcbnl_ieee_setpfc()