Lines Matching refs:pfc
126 mlxsw_sp_port->dcb.pfc); in mlxsw_sp_port_headroom_set()
535 struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; in mlxsw_sp_port_pfc_cnt_get()
552 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_getpfc() argument
566 memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_getpfc()
572 struct ieee_pfc *pfc) in mlxsw_sp_port_pfc_set() argument
579 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set()
586 struct ieee_pfc *pfc) in mlxsw_sp_dcbnl_ieee_setpfc() argument
592 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc()
599 pause_en, pfc); in mlxsw_sp_dcbnl_ieee_setpfc()
605 err = mlxsw_sp_port_pfc_set(mlxsw_sp_port, pfc); in mlxsw_sp_dcbnl_ieee_setpfc()
611 memcpy(mlxsw_sp_port->dcb.pfc, pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_setpfc()
612 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setpfc()
619 mlxsw_sp_port->dcb.pfc); in mlxsw_sp_dcbnl_ieee_setpfc()
676 mlxsw_sp_port->dcb.pfc = kzalloc(sizeof(*mlxsw_sp_port->dcb.pfc), in mlxsw_sp_port_pfc_init()
678 if (!mlxsw_sp_port->dcb.pfc) in mlxsw_sp_port_pfc_init()
681 mlxsw_sp_port->dcb.pfc->pfc_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_port_pfc_init()
688 kfree(mlxsw_sp_port->dcb.pfc); in mlxsw_sp_port_pfc_fini()