Lines Matching refs:pfc
481 struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; in mlxsw_sp_port_pfc_cnt_get()
498 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_getpfc() argument
512 memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_getpfc()
518 struct ieee_pfc *pfc) in mlxsw_sp_port_pfc_set() argument
525 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set()
532 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_setpfc() argument
541 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc()
549 if (pfc->pfc_en) in mlxsw_sp_dcbnl_ieee_setpfc()
550 hdroom.delay_bytes = DIV_ROUND_UP(pfc->delay, BITS_PER_BYTE); in mlxsw_sp_dcbnl_ieee_setpfc()
555 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio)); in mlxsw_sp_dcbnl_ieee_setpfc()
566 err = mlxsw_sp_port_pfc_set(mlxsw_sp_port, pfc); in mlxsw_sp_dcbnl_ieee_setpfc()
572 memcpy(mlxsw_sp_port->dcb.pfc, pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_setpfc()
573 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setpfc()
694 mlxsw_sp_port->dcb.pfc = kzalloc(sizeof(*mlxsw_sp_port->dcb.pfc), in mlxsw_sp_port_pfc_init()
696 if (!mlxsw_sp_port->dcb.pfc) in mlxsw_sp_port_pfc_init()
699 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_port_pfc_init()
706 kfree(mlxsw_sp_port->dcb.pfc); in mlxsw_sp_port_pfc_fini()