Lines Matching refs:pfc
333 dcb->pfcen = fwdcb->pfc.pfcen; in cxgb4_dcb_handle_fw_update()
334 dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; in cxgb4_dcb_handle_fw_update()
640 pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; in cxgb4_setpfccfg()
641 pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; in cxgb4_setpfccfg()
644 pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); in cxgb4_setpfccfg()
646 pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); in cxgb4_setpfccfg()
654 pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; in cxgb4_setpfccfg()
979 static int cxgb4_ieee_get_pfc(struct net_device *dev, struct ieee_pfc *pfc) in cxgb4_ieee_get_pfc() argument
984 memset(pfc, 0, sizeof(struct ieee_pfc)); in cxgb4_ieee_get_pfc()
989 pfc->pfc_cap = dcb->pfc_num_tcs_supported; in cxgb4_ieee_get_pfc()
990 pfc->pfc_en = bitswap_1(dcb->pfcen); in cxgb4_ieee_get_pfc()
1203 static int cxgb4_cee_peer_getpfc(struct net_device *dev, struct cee_pfc *pfc) in cxgb4_cee_peer_getpfc() argument
1207 cxgb4_getnumtcs(dev, DCB_NUMTCS_ATTR_PFC, &(pfc->tcs_supported)); in cxgb4_cee_peer_getpfc()
1213 pfc->pfc_en = bitswap_1(pi->dcb.pfcen); in cxgb4_cee_peer_getpfc()
1215 pfc->tcs_supported = pi->dcb.pfc_num_tcs_supported; in cxgb4_cee_peer_getpfc()