Lines Matching full:pfc
494 struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; in mlxsw_sp_port_pfc_cnt_get()
511 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_getpfc() argument
519 netdev_err(dev, "Failed to get PFC count for priority %d\n", in mlxsw_sp_dcbnl_ieee_getpfc()
525 memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_getpfc()
531 struct ieee_pfc *pfc) in mlxsw_sp_port_pfc_set() argument
538 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set()
545 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_setpfc() argument
554 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc()
562 if (pfc->pfc_en) in mlxsw_sp_dcbnl_ieee_setpfc()
563 hdroom.delay_bytes = DIV_ROUND_UP(pfc->delay, BITS_PER_BYTE); in mlxsw_sp_dcbnl_ieee_setpfc()
568 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio)); in mlxsw_sp_dcbnl_ieee_setpfc()
575 netdev_err(dev, "Failed to configure port's headroom for PFC\n"); in mlxsw_sp_dcbnl_ieee_setpfc()
579 err = mlxsw_sp_port_pfc_set(mlxsw_sp_port, pfc); in mlxsw_sp_dcbnl_ieee_setpfc()
581 netdev_err(dev, "Failed to configure PFC\n"); in mlxsw_sp_dcbnl_ieee_setpfc()
585 memcpy(mlxsw_sp_port->dcb.pfc, pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_setpfc()
586 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setpfc()
707 mlxsw_sp_port->dcb.pfc = kzalloc(sizeof(*mlxsw_sp_port->dcb.pfc), in mlxsw_sp_port_pfc_init()
709 if (!mlxsw_sp_port->dcb.pfc) in mlxsw_sp_port_pfc_init()
712 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_port_pfc_init()
719 kfree(mlxsw_sp_port->dcb.pfc); in mlxsw_sp_port_pfc_fini()