Lines Matching refs:pfc
324 dcb->pfcen = fwdcb->pfc.pfcen; in cxgb4_dcb_handle_fw_update()
325 dcb->pfc_num_tcs_supported = fwdcb->pfc.max_pfc_tcs; in cxgb4_dcb_handle_fw_update()
631 pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC; in cxgb4_setpfccfg()
632 pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen; in cxgb4_setpfccfg()
635 pcmd.u.dcb.pfc.pfcen |= (1 << (7 - priority)); in cxgb4_setpfccfg()
637 pcmd.u.dcb.pfc.pfcen &= (~(1 << (7 - priority))); in cxgb4_setpfccfg()
645 pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen; in cxgb4_setpfccfg()
967 static int cxgb4_ieee_get_pfc(struct net_device *dev, struct ieee_pfc *pfc) in cxgb4_ieee_get_pfc() argument
972 memset(pfc, 0, sizeof(struct ieee_pfc)); in cxgb4_ieee_get_pfc()
977 pfc->pfc_cap = dcb->pfc_num_tcs_supported; in cxgb4_ieee_get_pfc()
978 pfc->pfc_en = bitswap_1(dcb->pfcen); in cxgb4_ieee_get_pfc()
1189 static int cxgb4_cee_peer_getpfc(struct net_device *dev, struct cee_pfc *pfc) in cxgb4_cee_peer_getpfc() argument
1193 cxgb4_getnumtcs(dev, DCB_NUMTCS_ATTR_PFC, &(pfc->tcs_supported)); in cxgb4_cee_peer_getpfc()
1199 pfc->pfc_en = bitswap_1(pi->dcb.pfcen); in cxgb4_cee_peer_getpfc()