Lines Matching full:pfc
249 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg() argument
263 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg()
297 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg() argument
316 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg()
593 static int bnxt_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_getpfc() argument
601 pfc->pfc_cap = bp->max_lltc; in bnxt_dcbnl_ieee_getpfc()
616 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
617 pfc->mbc = my_pfc->mbc; in bnxt_dcbnl_ieee_getpfc()
618 pfc->delay = my_pfc->delay; in bnxt_dcbnl_ieee_getpfc()
626 pfc->requests[i] = le64_to_cpu(*(stats + tx_off)); in bnxt_dcbnl_ieee_getpfc()
627 pfc->indications[i] = le64_to_cpu(*(stats + rx_off)); in bnxt_dcbnl_ieee_getpfc()
633 static int bnxt_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) in bnxt_dcbnl_ieee_setpfc() argument
650 rc = bnxt_hwrm_queue_pfc_cfg(bp, pfc); in bnxt_dcbnl_ieee_setpfc()
652 memcpy(my_pfc, pfc, sizeof(*my_pfc)); in bnxt_dcbnl_ieee_setpfc()