Lines Matching full:dcb
28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets()
94 struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets; in __mlxsw_sp_dcbnl_ieee_setets()
162 memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_setets()
163 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_dcbnl_ieee_setets()
279 if (mlxsw_sp_port->dcb.trust_state == ts) in mlxsw_sp_port_dcb_toggle_trust()
290 mlxsw_sp_port->dcb.trust_state = ts; in mlxsw_sp_port_dcb_toggle_trust()
295 mlxsw_sp_port->dcb.trust_state); in mlxsw_sp_port_dcb_toggle_trust()
432 netdev_err(dev, "Failed to update DCB APP configuration\n"); in mlxsw_sp_dcbnl_ieee_delapp()
441 memcpy(maxrate, mlxsw_sp_port->dcb.maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_getmaxrate()
450 struct ieee_maxrate *my_maxrate = mlxsw_sp_port->dcb.maxrate; in mlxsw_sp_dcbnl_ieee_setmaxrate()
464 memcpy(mlxsw_sp_port->dcb.maxrate, maxrate, sizeof(*maxrate)); in mlxsw_sp_dcbnl_ieee_setmaxrate()
481 struct ieee_pfc *my_pfc = mlxsw_sp_port->dcb.pfc; in mlxsw_sp_port_pfc_cnt_get()
512 memcpy(pfc, mlxsw_sp_port->dcb.pfc, sizeof(*pfc)); in mlxsw_sp_dcbnl_ieee_getpfc()
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()
657 mlxsw_sp_port->dcb.ets = kzalloc(sizeof(*mlxsw_sp_port->dcb.ets), in mlxsw_sp_port_ets_init()
659 if (!mlxsw_sp_port->dcb.ets) in mlxsw_sp_port_ets_init()
662 mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlxsw_sp_port_ets_init()
669 kfree(mlxsw_sp_port->dcb.ets); in mlxsw_sp_port_ets_fini()
676 mlxsw_sp_port->dcb.maxrate = kmalloc(sizeof(*mlxsw_sp_port->dcb.maxrate), in mlxsw_sp_port_maxrate_init()
678 if (!mlxsw_sp_port->dcb.maxrate) in mlxsw_sp_port_maxrate_init()
682 mlxsw_sp_port->dcb.maxrate->tc_maxrate[i] = MLXSW_REG_QEEC_MAS_DIS; in mlxsw_sp_port_maxrate_init()
689 kfree(mlxsw_sp_port->dcb.maxrate); in mlxsw_sp_port_maxrate_fini()
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()
723 mlxsw_sp_port->dcb.trust_state = MLXSW_REG_QPTS_TRUST_STATE_PCP; in mlxsw_sp_port_dcb_init()