ets               124 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 				struct ieee_ets *ets)
ets               129 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 	ets->ets_cap = pdata->hw_feat.tc_cnt;
ets               131 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 	if (pdata->ets) {
ets               132 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		ets->cbs = pdata->ets->cbs;
ets               133 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw,
ets               134 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		       sizeof(ets->tc_tx_bw));
ets               135 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		memcpy(ets->tc_tsa, pdata->ets->tc_tsa,
ets               136 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		       sizeof(ets->tc_tsa));
ets               137 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		memcpy(ets->prio_tc, pdata->ets->prio_tc,
ets               138 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		       sizeof(ets->prio_tc));
ets               145 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 				struct ieee_ets *ets)
ets               156 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 			  ets->tc_tx_bw[i], ets->tc_rx_bw[i],
ets               157 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 			  ets->tc_tsa[i]);
ets               159 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 			  ets->prio_tc[i]);
ets               161 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		max_tc = max_t(u8, max_tc, ets->prio_tc[i]);
ets               162 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]))
ets               165 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		switch (ets->tc_tsa[i]) {
ets               170 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 			tc_ets_weight += ets->tc_tx_bw[i];
ets               175 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 				  ets->tc_tsa[i]);
ets               195 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 	if (!pdata->ets) {
ets               196 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets),
ets               198 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 		if (!pdata->ets)
ets               203 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c 	memcpy(pdata->ets, ets, sizeof(*pdata->ets));
ets               473 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		tc = pdata->ets->prio_tc[prio];
ets               555 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	struct ieee_ets *ets = pdata->ets;
ets               566 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 			if (pfc && ets) {
ets              2574 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	if (pdata->pfc && pdata->ets)
ets              2585 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	if (pdata->pfc && pdata->ets && pdata->pfc->pfc_en) {
ets              2703 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	if (!pdata->ets)
ets              2708 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 				       pdata->ets->prio_tc[prio]);
ets              2713 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	struct ieee_ets *ets = pdata->ets;
ets              2718 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	if (!ets)
ets              2736 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 			if (ets->prio_tc[prio] == i)
ets              2752 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		switch (ets->tc_tsa[i]) {
ets              2760 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 			weight = total_weight * ets->tc_tx_bw[i] / 100;
ets              1213 drivers/net/ethernet/amd/xgbe/xgbe.h 	struct ieee_ets *ets;
ets                45 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				       struct dcbx_ets_feature *ets,
ets                50 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				struct dcbx_ets_feature *ets);
ets                78 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					bp->dcbx_port_params.ets.num_of_cos;
ets                81 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (i = 0; i < bp->dcbx_port_params.ets.num_of_cos; i++)
ets                88 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			bp->dcbx_port_params.ets.cos_params[i].pri_bitmask
ets               135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	   "local_mib.features.ets.enabled %x\n", features->ets.enabled);
ets               139 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   DCBX_PG_BW_GET(features->ets.pg_bw_tbl, i));
ets               143 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   DCBX_PRI_PG_GET(features->ets.pri_pg_tbl, i));
ets               275 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				       struct dcbx_ets_feature *ets,
ets               281 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			bp->dcbx_port_params.ets.cos_params;
ets               292 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (i = 0; i < ARRAY_SIZE(bp->dcbx_port_params.ets.cos_params) ; i++) {
ets               299 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if (bp->dcbx_port_params.app.enabled && ets->enabled &&
ets               303 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		bp->dcbx_port_params.ets.enabled = true;
ets               307 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					      ets->pri_pg_tbl);
ets               314 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					   ets, pg_pri_orginal_spread);
ets               318 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		bp->dcbx_port_params.ets.enabled = false;
ets               319 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		ets->pri_pg_tbl[0] = 0;
ets               322 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PG_BW_SET(ets->pg_bw_tbl, i, 1);
ets               355 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			bp->dcbx_port_params.ets.cos_params;
ets               362 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (i = 0; i < ARRAY_SIZE(bp->dcbx_port_params.ets.cos_params); i++) {
ets               381 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	bnx2x_dcbx_get_ets_feature(bp, &features->ets, error);
ets               507 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	struct bnx2x_dcbx_pg_params *ets = &(bp->dcbx_port_params.ets);
ets               510 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if (ets->num_of_cos == 0 || ets->num_of_cos > DCBX_COS_MAX_NUM_E2) {
ets               511 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		BNX2X_ERR("Illegal number of COSes %d\n", ets->num_of_cos);
ets               516 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if (ets->num_of_cos == 1)   /* no ETS */
ets               520 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if (((BNX2X_DCBX_STRICT_INVALID == ets->cos_params[0].strict) &&
ets               521 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	     (DCBX_INVALID_COS_BW == ets->cos_params[0].bw_tbl)) ||
ets               522 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	    ((BNX2X_DCBX_STRICT_INVALID == ets->cos_params[1].strict) &&
ets               523 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	     (DCBX_INVALID_COS_BW == ets->cos_params[1].bw_tbl))) {
ets               529 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			  ets->cos_params[0].strict,
ets               530 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			  ets->cos_params[0].bw_tbl,
ets               531 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			  ets->cos_params[1].strict,
ets               532 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			  ets->cos_params[1].bw_tbl);
ets               536 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if ((DCBX_INVALID_COS_BW != ets->cos_params[0].bw_tbl) &&
ets               537 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	    (DCBX_INVALID_COS_BW != ets->cos_params[1].bw_tbl)) {
ets               538 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		u32 bw_tbl_0 = ets->cos_params[0].bw_tbl;
ets               539 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		u32 bw_tbl_1 = ets->cos_params[1].bw_tbl;
ets               554 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		if (ets->cos_params[0].strict == BNX2X_DCBX_STRICT_COS_HIGHEST)
ets               556 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		else if (ets->cos_params[1].strict
ets               569 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	struct bnx2x_dcbx_pg_params *ets = &(bp->dcbx_port_params.ets);
ets               573 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	ets_params.num_of_cos = ets->num_of_cos;
ets               575 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (i = 0; i < ets->num_of_cos; i++) {
ets               577 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		if (ets->cos_params[i].strict != BNX2X_DCBX_STRICT_INVALID) {
ets               578 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			if (ets->cos_params[i].bw_tbl != DCBX_INVALID_COS_BW) {
ets               585 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 						ets->cos_params[i].strict;
ets               587 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			if (ets->cos_params[i].bw_tbl == DCBX_INVALID_COS_BW) {
ets               593 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 						(u8)ets->cos_params[i].bw_tbl;
ets               613 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	if (!bp->dcbx_port_params.ets.enabled ||
ets               729 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (cos = 0; cos < bp->dcbx_port_params.ets.num_of_cos; cos++) {
ets               731 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			if (bp->dcbx_port_params.ets.cos_params[cos].pri_bitmask
ets               856 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		af->ets.enabled = (u8)dp->admin_ets_enable;
ets               898 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PG_BW_SET(af->ets.pg_bw_tbl, i,
ets               902 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			   i, DCBX_PG_BW_GET(af->ets.pg_bw_tbl, i));
ets               906 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PRI_PG_SET(af->ets.pri_pg_tbl, i,
ets               910 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			   i, DCBX_PRI_PG_GET(af->ets.pri_pg_tbl, i));
ets              1086 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	for (cos = 0 ; cos < bp->dcbx_port_params.ets.num_of_cos ; cos++) {
ets              1089 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   cos, bp->dcbx_port_params.ets.cos_params[cos].pri_bitmask);
ets              1093 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   cos, bp->dcbx_port_params.ets.cos_params[cos].bw_tbl);
ets              1097 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   cos, bp->dcbx_port_params.ets.cos_params[cos].strict);
ets              1101 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		   cos, bp->dcbx_port_params.ets.cos_params[cos].pauseable);
ets              1188 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			struct dcbx_ets_feature *ets)
ets              1216 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				DCBX_PG_BW_GET(ets->pg_bw_tbl, pg_entry));
ets              1369 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			    struct dcbx_ets_feature	*ets,
ets              1391 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					pg_pri_orginal_spread, ets);
ets              1392 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			bp->dcbx_port_params.ets.enabled = false;
ets              1435 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				DCBX_PG_BW_GET(ets->pg_bw_tbl, pg[i]);
ets              1444 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			      struct dcbx_ets_feature *ets,
ets              1478 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			pg_joined = DCBX_PG_BW_GET(ets->pg_bw_tbl,
ets              1480 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				    DCBX_PG_BW_GET(ets->pg_bw_tbl,
ets              1483 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PG_BW_SET(ets->pg_bw_tbl,
ets              1496 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			      struct dcbx_ets_feature	*ets,
ets              1516 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				cos_data, pg_pri_orginal_spread, ets);
ets              1558 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					DCBX_PG_BW_GET(ets->pg_bw_tbl,
ets              1575 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				       struct dcbx_ets_feature *ets,
ets              1597 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					    ets,
ets              1608 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					      ets,
ets              1695 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 					   struct dcbx_ets_feature *ets,
ets              1710 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		if (bnx2x_dcbx_join_pgs(bp, ets, help_data,
ets              1725 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			data->cos_bw = DCBX_PG_BW_GET(ets->pg_bw_tbl, pg->pg);
ets              1752 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 				       struct dcbx_ets_feature *ets,
ets              1782 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		bnx2x_dcbx_cee_fill_cos_params(bp, help_data, ets,
ets              1786 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 							  help_data, ets,
ets              1794 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			&bp->dcbx_port_params.ets.cos_params[i];
ets              1832 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	bp->dcbx_port_params.ets.num_of_cos = cos_data.num_of_cos ;
ets              1880 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 		for (cos = 0; cos < bp->dcbx_port_params.ets.num_of_cos; cos++)
ets              1881 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			if (bp->dcbx_port_params.ets.cos_params[cos].
ets              2058 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	*pgid = DCBX_PRI_PG_GET(bp->dcbx_local_feat.ets.pri_pg_tbl, prio);
ets              2072 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 	*bw_pct = DCBX_PG_BW_GET(bp->dcbx_local_feat.ets.pg_bw_tbl, pgid);
ets              2413 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			if (bp->dcbx_local_feat.ets.enabled)
ets              2538 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PG_BW_GET(bp->dcbx_remote_feat.ets.pg_bw_tbl, i);
ets              2540 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c 			DCBX_PRI_PG_GET(bp->dcbx_remote_feat.ets.pri_pg_tbl, i);
ets                65 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h 	struct bnx2x_dcbx_pg_params  ets;
ets                74 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.h 				  (bp)->dcbx_port_params.ets.enabled)
ets              1873 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h 	struct dcbx_ets_feature ets;
ets              10349 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		bnx2x_setup_tc(bp->dev, bp->dcbx_port_params.ets.num_of_cos);
ets                39 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets)
ets                56 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		qidx = bp->tc_to_qidx[ets->prio_tc[i]];
ets                63 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt *bp, struct ieee_ets *ets)
ets                84 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 				ets->prio_tc[i] = tc;
ets                91 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets,
ets               109 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_STRICT) {
ets               116 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			cos2bw.bw_weight = ets->tc_tx_bw[i];
ets               121 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 				cpu_to_le32((ets->tc_tx_bw[i] * 100) |
ets               135 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets)
ets               166 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_STRICT;
ets               168 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			ets->tc_tsa[tc] = IEEE_8021QAZ_TSA_ETS;
ets               169 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			ets->tc_tx_bw[tc] = cos2bw.bw_weight;
ets               440 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_ets_validate(struct bnxt *bp, struct ieee_ets *ets, u8 *tc)
ets               447 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		if (ets->prio_tc[i] > bp->max_tc) {
ets               449 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 				   ets->prio_tc[i]);
ets               452 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		if (ets->prio_tc[i] > max_tc)
ets               453 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			max_tc = ets->prio_tc[i];
ets               455 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]) && i > bp->max_tc)
ets               458 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		switch (ets->tc_tsa[i]) {
ets               462 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 			total_ets_bw += ets->tc_tx_bw[i];
ets               478 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets)
ets               484 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	ets->ets_cap = bp->max_tc;
ets               504 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	ets->cbs = my_ets->cbs;
ets               505 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw));
ets               506 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw));
ets               507 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa));
ets               508 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc));
ets               515 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static int bnxt_dcbnl_ieee_setets(struct net_device *dev, struct ieee_ets *ets)
ets               526 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 	rc = bnxt_ets_validate(bp, ets, &max_tc);
ets               540 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		rc = bnxt_hwrm_queue_cos2bw_cfg(bp, ets, max_tc);
ets               543 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		rc = bnxt_hwrm_queue_pri2cos_cfg(bp, ets);
ets               546 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c 		memcpy(my_ets, ets, sizeof(*my_ets));
ets               940 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static int cxgb4_ieee_read_ets(struct net_device *dev, struct ieee_ets *ets,
ets               953 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 	ets->ets_cap =  dcb->pg_num_tcs_supported;
ets               956 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 		ets->willing = 1;
ets               986 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 		ets->prio_tc[i] = bwg;
ets               987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 		ets->tc_tx_bw[i] = pcmd.u.dcb.pgrate.pgrate[i];
ets               988 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 		ets->tc_rx_bw[i] = ets->tc_tx_bw[i];
ets               989 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 		ets->tc_tsa[i] = pcmd.u.dcb.pgrate.tsa[i];
ets               995 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static int cxgb4_ieee_get_ets(struct net_device *dev, struct ieee_ets *ets)
ets               997 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 	return cxgb4_ieee_read_ets(dev, ets, 1);
ets              1017 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c static int cxgb4_ieee_peer_ets(struct net_device *dev, struct ieee_ets *ets)
ets              1019 drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c 	return cxgb4_ieee_read_ets(dev, ets, 0);
ets                 7 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_getets(struct net_device *ndev, struct ieee_ets *ets)
ets                15 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c 		return h->kinfo.dcb_ops->ieee_getets(h, ets);
ets                20 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_setets(struct net_device *ndev, struct ieee_ets *ets)
ets                28 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c 		return h->kinfo.dcb_ops->ieee_setets(h, ets);
ets                11 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 				     struct ieee_ets *ets)
ets                16 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		switch (ets->tc_tsa[i]) {
ets                26 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 				ets->tc_tx_bw[i];
ets                38 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	hclge_tm_prio_tc_info_update(hdev, ets->prio_tc);
ets                44 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 				      struct ieee_ets *ets)
ets                48 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	memset(ets, 0, sizeof(*ets));
ets                49 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	ets->willing = 1;
ets                50 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	ets->ets_cap = hdev->tc_max;
ets                53 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		ets->prio_tc[i] = hdev->tm_info.prio_tc[i];
ets                54 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i];
ets                58 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 			ets->tc_tsa[i] = IEEE_8021QAZ_TSA_STRICT;
ets                60 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 			ets->tc_tsa[i] = IEEE_8021QAZ_TSA_ETS;
ets                65 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets)
ets                70 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	hclge_tm_info_to_ieee_ets(hdev, ets);
ets               106 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets,
ets               116 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i])
ets               119 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		if (ets->prio_tc[i] > max_tc)
ets               120 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 			max_tc = ets->prio_tc[i];
ets               123 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	ret = hclge_dcb_common_validate(hdev, max_tc + 1, ets->prio_tc);
ets               128 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 		switch (ets->tc_tsa[i]) {
ets               139 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 			total_ets_bw += ets->tc_tx_bw[i];
ets               223 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets)
ets               236 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	ret = hclge_ets_validate(hdev, ets, &num_tc, &map_changed);
ets               250 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c 	ret = hclge_ieee_ets_to_tm_info(hdev, ets);
ets                11 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c static int fm10k_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets)
ets                16 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 	ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
ets                17 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 	ets->cbs = 0;
ets                20 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 	memset(ets->tc_tx_bw, 0, sizeof(ets->tc_tx_bw));
ets                21 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 	memset(ets->tc_rx_bw, 0, sizeof(ets->tc_rx_bw));
ets                22 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 	memset(ets->tc_tsa, IEEE_8021QAZ_TSA_STRICT, sizeof(ets->tc_tsa));
ets                26 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 		ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i);
ets                36 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c static int fm10k_dcbnl_ieee_setets(struct net_device *dev, struct ieee_ets *ets)
ets                43 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 		if (ets->tc_tx_bw[i] || ets->tc_rx_bw[i])
ets                45 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 		if (ets->tc_tsa[i] != IEEE_8021QAZ_TSA_STRICT)
ets                47 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 		if (ets->prio_tc[i] > num_tc)
ets                48 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 			num_tc = ets->prio_tc[i];
ets                67 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c 		netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]);
ets                32 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 				  struct ieee_ets *ets)
ets                42 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	ets->willing = dcbxcfg->etscfg.willing;
ets                43 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	ets->ets_cap = dcbxcfg->etscfg.maxtcs;
ets                44 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	ets->cbs = dcbxcfg->etscfg.cbs;
ets                45 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable,
ets                46 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->tc_tx_bw));
ets                47 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable,
ets                48 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->tc_rx_bw));
ets                49 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable,
ets                50 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->tc_tsa));
ets                51 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable,
ets                52 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->prio_tc));
ets                53 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->tc_reco_bw, dcbxcfg->etsrec.tcbwtable,
ets                54 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->tc_reco_bw));
ets                55 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->tc_reco_tsa, dcbxcfg->etsrec.tsatable,
ets                56 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->tc_reco_tsa));
ets                57 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 	memcpy(ets->reco_prio_tc, dcbxcfg->etscfg.prioritytable,
ets                58 drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c 		sizeof(ets->reco_prio_tc));
ets               573 drivers/net/ethernet/intel/igb/igb.h 	bool ets;
ets              2403 drivers/net/ethernet/intel/igb/igb_main.c 			if (adapter->ets)
ets              3365 drivers/net/ethernet/intel/igb/igb_main.c 			adapter->ets = true;
ets              3367 drivers/net/ethernet/intel/igb/igb_main.c 			adapter->ets = false;
ets              3372 drivers/net/ethernet/intel/igb/igb_main.c 		adapter->ets = false;
ets               303 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max_frame)
ets               314 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c 		switch (ets->tc_tsa[i]) {
ets               331 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c 	ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame);
ets               333 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c 				       bwg_id, prio_type, ets->prio_tc);
ets               131 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max);
ets               488 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 				   struct ieee_ets *ets)
ets               493 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs;
ets               499 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	ets->cbs = my_ets->cbs;
ets               500 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw));
ets               501 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw));
ets               502 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa));
ets               503 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc));
ets               508 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 				   struct ieee_ets *ets)
ets               535 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 		if (ets->prio_tc[i] > max_tc)
ets               536 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 			max_tc = ets->prio_tc[i];
ets               537 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 		if (ets->prio_tc[i] != adapter->ixgbe_ieee_ets->prio_tc[i])
ets               541 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	memcpy(adapter->ixgbe_ieee_ets, ets, sizeof(*adapter->ixgbe_ieee_ets));
ets               557 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	return ixgbe_dcb_hw_ets(&adapter->hw, ets, max_frame);
ets               716 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	struct ieee_ets ets = {0};
ets               732 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 	ets.ets_cap = 8;
ets               736 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 		ixgbe_dcbnl_ieee_setets(dev, &ets);
ets               747 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c 		ixgbe_dcbnl_ieee_setets(dev, &ets);
ets              9024 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	struct ieee_ets *ets = adapter->ixgbe_ieee_ets;
ets              9032 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		else if (ets)
ets              9033 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			tc = ets->prio_tc[prio];
ets               288 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 				   struct ieee_ets *ets)
ets               291 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	struct ieee_ets *my_ets = &priv->ets;
ets               296 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
ets               297 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	ets->cbs = my_ets->cbs;
ets               298 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw));
ets               299 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa));
ets               300 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc));
ets               305 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c static int mlx4_en_ets_validate(struct mlx4_en_priv *priv, struct ieee_ets *ets)
ets               312 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) {
ets               314 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 					i, ets->prio_tc[i]);
ets               318 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		switch (ets->tc_tsa[i]) {
ets               324 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 			total_ets_bw += ets->tc_tx_bw[i];
ets               328 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 					i, ets->tc_tsa[i]);
ets               343 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		struct ieee_ets *ets, u16 *ratelimit)
ets               351 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	ets = ets ?: &priv->ets;
ets               356 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		switch (ets->tc_tsa[i]) {
ets               367 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 			tc_tx_bw[i] = ets->tc_tx_bw[i] ?: MLX4_EN_BW_MIN;
ets               377 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c mlx4_en_dcbnl_ieee_setets(struct net_device *dev, struct ieee_ets *ets)
ets               383 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	err = mlx4_en_ets_validate(priv, ets);
ets               387 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc);
ets               391 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	err = mlx4_en_config_port_scheduler(priv, ets, NULL);
ets               395 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	memcpy(&priv->ets, ets, sizeof(priv->ets));
ets               460 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	struct ieee_ets ets = {0};
ets               474 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 	ets.ets_cap = IEEE_8021QAZ_MAX_TCS;
ets               478 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		if (mlx4_en_dcbnl_ieee_setets(dev, &ets))
ets               486 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c 		if (mlx4_en_dcbnl_ieee_setets(dev, &ets))
ets              3321 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			priv->ets.prio_tc[prio] = prio;
ets              3322 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 			priv->ets.tc_tsa[prio]  = IEEE_8021QAZ_TSA_VENDOR;
ets               628 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h 	struct ieee_ets ets;
ets              1082 drivers/net/ethernet/mellanox/mlx5/core/en.h int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets);
ets                99 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 				   struct ieee_ets *ets)
ets               109 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (!MLX5_CAP_GEN(priv->mdev, ets))
ets               112 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	ets->ets_cap = mlx5_max_tc(priv->mdev) + 1;
ets               113 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	for (i = 0; i < ets->ets_cap; i++) {
ets               114 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]);
ets               122 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		err = mlx5_query_port_tc_bw_alloc(mdev, i, &ets->tc_tx_bw[i]);
ets               126 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC &&
ets               136 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		for (i = 0; i < ets->ets_cap; i++)
ets               138 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 				ets->tc_tx_bw[i] = 0;
ets               142 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	for (i = 0; i < ets->ets_cap; i++) {
ets               143 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->tc_tx_bw[i] < MLX5E_MAX_BW_ALLOC)
ets               149 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	memcpy(ets->tc_tsa, priv->dcbx.tc_tsa, sizeof(ets->tc_tsa));
ets               154 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c static void mlx5e_build_tc_group(struct ieee_ets *ets, u8 *tc_group, int max_tc)
ets               162 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS) {
ets               164 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			if (!ets->tc_tx_bw[i])
ets               177 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		switch (ets->tc_tsa[i]) {
ets               186 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			if (ets->tc_tx_bw[i] && ets_zero_bw)
ets               193 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c static void mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw,
ets               202 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS &&
ets               203 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		    !ets->tc_tx_bw[i]) {
ets               213 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		switch (ets->tc_tsa[i]) {
ets               221 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			tc_tx_bw[i] = ets->tc_tx_bw[i] ?
ets               222 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 				      ets->tc_tx_bw[i] :
ets               241 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets)
ets               249 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	mlx5e_build_tc_group(ets, tc_group, max_tc);
ets               250 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	mlx5e_build_tc_tx_bw(ets, tc_tx_bw, tc_group, max_tc);
ets               252 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5_set_port_prio_tc(mdev, ets->prio_tc);
ets               265 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	memcpy(priv->dcbx.tc_tsa, ets->tc_tsa, sizeof(ets->tc_tsa));
ets               269 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			  __func__, i, ets->prio_tc[i]);
ets               278 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 				    struct ieee_ets *ets,
ets               287 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) {
ets               297 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		if (ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS) {
ets               299 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			bw_sum += ets->tc_tx_bw[i];
ets               313 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 				   struct ieee_ets *ets)
ets               318 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (!MLX5_CAP_GEN(priv->mdev, ets))
ets               321 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5e_dbcnl_validate_ets(netdev, ets, false);
ets               325 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5e_dcbnl_ieee_setets_core(priv, ets);
ets               616 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	struct ieee_ets ets;
ets               621 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (!MLX5_CAP_GEN(mdev, ets))
ets               624 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	memset(&ets, 0, sizeof(ets));
ets               627 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	ets.ets_cap = IEEE_8021QAZ_MAX_TCS;
ets               629 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.tc_tx_bw[i] = cee_cfg->pg_bw_pct[i];
ets               630 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.tc_rx_bw[i] = cee_cfg->pg_bw_pct[i];
ets               631 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.tc_tsa[i]   = IEEE_8021QAZ_TSA_ETS;
ets               632 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.prio_tc[i]  = cee_cfg->prio_to_pg_map[i];
ets               635 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			  __func__, i, ets.tc_tx_bw[i], ets.tc_rx_bw[i],
ets               636 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 			  ets.prio_tc[i]);
ets               639 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5e_dbcnl_validate_ets(netdev, &ets, true);
ets               643 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5e_dcbnl_ieee_setets_core(priv, &ets);
ets               730 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (!MLX5_CAP_GEN(priv->mdev, ets)) {
ets               752 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	struct ieee_ets ets;
ets               760 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	mlx5e_dcbnl_ieee_getets(netdev, &ets);
ets               761 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	*bw_pct = ets.tc_tx_bw[pgid];
ets              1031 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	struct ieee_ets ets;
ets              1035 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (!MLX5_CAP_GEN(priv->mdev, ets))
ets              1038 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	memset(&ets, 0, sizeof(ets));
ets              1039 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	ets.ets_cap = mlx5_max_tc(priv->mdev) + 1;
ets              1040 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	for (i = 0; i < ets.ets_cap; i++) {
ets              1041 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.tc_tx_bw[i] = MLX5E_MAX_BW_ALLOC;
ets              1042 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.tc_tsa[i] = IEEE_8021QAZ_TSA_VENDOR;
ets              1043 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.prio_tc[i] = i;
ets              1046 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	if (ets.ets_cap > 1) {
ets              1048 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.prio_tc[0] = 1;
ets              1049 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 		ets.prio_tc[1] = 0;
ets              1052 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c 	err = mlx5e_dcbnl_ieee_setets_core(priv, &ets);
ets               624 drivers/net/ethernet/mellanox/mlx5/core/port.c 	if (!MLX5_CAP_GEN(mdev, ets))
ets               636 drivers/net/ethernet/mellanox/mlx5/core/port.c 	if (!MLX5_CAP_GEN(mdev, ets))
ets               977 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	bool dcb_en = !!mlxsw_sp_port->dcb.ets;
ets               981 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	prio_tc = dcb_en ? mlxsw_sp_port->dcb.ets->prio_tc : def_prio_tc;
ets               253 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 		struct ieee_ets *ets;
ets                24 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				      struct ieee_ets *ets)
ets                28 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets));
ets                34 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				      struct ieee_ets *ets)
ets                41 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 		switch (ets->tc_tsa[i]) {
ets                46 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 			tx_bw_sum += ets->tc_tx_bw[i];
ets                53 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 		if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) {
ets               114 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				      struct ieee_ets *ets)
ets               117 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets;
ets               125 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 					   ets->prio_tc, pause_en,
ets               132 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = mlxsw_sp_port_pg_prio_map(mlxsw_sp_port, ets->prio_tc);
ets               139 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				       ets->prio_tc);
ets               146 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_sp_port_pg_destroy(mlxsw_sp_port, ets->prio_tc, my_ets->prio_tc);
ets               151 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 					struct ieee_ets *ets)
ets               153 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	struct ieee_ets *my_ets = mlxsw_sp_port->dcb.ets;
ets               159 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 		bool dwrr = ets->tc_tsa[i] == IEEE_8021QAZ_TSA_ETS;
ets               160 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 		u8 weight = ets->tc_tx_bw[i];
ets               174 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 						ets->prio_tc[i]);
ets               177 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				   ets->prio_tc[i]);
ets               183 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = mlxsw_sp_port_headroom_set(mlxsw_sp_port, ets);
ets               208 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				      struct ieee_ets *ets)
ets               213 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = mlxsw_sp_port_ets_validate(mlxsw_sp_port, ets);
ets               217 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	err = __mlxsw_sp_dcbnl_ieee_setets(mlxsw_sp_port, ets);
ets               221 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	memcpy(mlxsw_sp_port->dcb.ets, ets, sizeof(*ets));
ets               222 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
ets               598 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 					   mlxsw_sp_port->dcb.ets->prio_tc,
ets               618 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 				     mlxsw_sp_port->dcb.ets->prio_tc, pause_en,
ets               639 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_sp_port->dcb.ets = kzalloc(sizeof(*mlxsw_sp_port->dcb.ets),
ets               641 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	if (!mlxsw_sp_port->dcb.ets)
ets               644 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_sp_port->dcb.ets->ets_cap = IEEE_8021QAZ_MAX_TCS;
ets               651 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	kfree(mlxsw_sp_port->dcb.ets);
ets               371 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	p_ets = &p_hwfn->p_dcbx_info->operational.features.ets;
ets               637 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				   p_feat->app.app_pri_tbl, &p_feat->ets,
ets               649 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				   p_feat->app.app_pri_tbl, &p_feat->ets,
ets               700 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				   p_feat->app.app_pri_tbl, &p_feat->ets,
ets              1222 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		qed_dcbx_set_ets_data(p_hwfn, &local_admin->features.ets,
ets              2150 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				  struct ieee_ets *ets, bool remote)
ets              2181 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	ets->ets_cap = params->max_ets_tc;
ets              2182 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	ets->willing = params->ets_willing;
ets              2183 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	ets->cbs = params->ets_cbs;
ets              2184 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(ets->tc_tx_bw, params->ets_tc_bw_tbl, sizeof(ets->tc_tx_bw));
ets              2185 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(ets->tc_tsa, params->ets_tc_tsa_tbl, sizeof(ets->tc_tsa));
ets              2186 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(ets->prio_tc, params->ets_pri_tc_tbl, sizeof(ets->prio_tc));
ets              2192 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static int qed_dcbnl_ieee_getets(struct qed_dev *cdev, struct ieee_ets *ets)
ets              2194 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	return qed_dcbnl_get_ieee_ets(cdev, ets, false);
ets              2197 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static int qed_dcbnl_ieee_setets(struct qed_dev *cdev, struct ieee_ets *ets)
ets              2223 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	dcbx_set.config.params.max_ets_tc = ets->ets_cap;
ets              2224 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	dcbx_set.config.params.ets_willing = ets->willing;
ets              2225 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	dcbx_set.config.params.ets_cbs = ets->cbs;
ets              2226 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(dcbx_set.config.params.ets_tc_bw_tbl, ets->tc_tx_bw,
ets              2227 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	       sizeof(ets->tc_tx_bw));
ets              2228 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(dcbx_set.config.params.ets_tc_tsa_tbl, ets->tc_tsa,
ets              2229 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	       sizeof(ets->tc_tsa));
ets              2230 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc,
ets              2231 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	       sizeof(ets->prio_tc));
ets              2245 drivers/net/ethernet/qlogic/qed/qed_dcbx.c qed_dcbnl_ieee_peer_getets(struct qed_dev *cdev, struct ieee_ets *ets)
ets              2247 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	return qed_dcbnl_get_ieee_ets(cdev, ets, true);
ets              12042 drivers/net/ethernet/qlogic/qed/qed_hsi.h 	struct dcbx_ets_feature ets;
ets               254 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 				  struct ieee_ets *ets)
ets               258 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 	return edev->ops->dcb->ieee_getets(edev->cdev, ets);
ets               262 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 				  struct ieee_ets *ets)
ets               266 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 	return edev->ops->dcb->ieee_setets(edev->cdev, ets);
ets               299 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 				       struct ieee_ets *ets)
ets               303 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c 	return edev->ops->dcb->ieee_peer_getets(edev->cdev, ets);
ets               155 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	bool ets = true;
ets               173 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 		ets = false;
ets               183 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 		if (ets)
ets              1775 drivers/staging/qlge/qlge.h 	u32 ets[8+2];
ets              1919 drivers/staging/qlge/qlge.h 	u32 ets[ETS_REGS_DUMP_WORD_COUNT];
ets              1121 drivers/staging/qlge/qlge_dbg.c 				+ sizeof(mpi_coredump->ets),
ets              1123 drivers/staging/qlge/qlge_dbg.c 	status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]);
ets              1297 drivers/staging/qlge/qlge_dbg.c 				+ sizeof(mpi_coredump->ets),
ets              1299 drivers/staging/qlge/qlge_dbg.c 	status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]);
ets              2014 fs/binfmt_elf.c 	struct elf_thread_status *ets;
ets              2021 fs/binfmt_elf.c 		ets = kzalloc(sizeof(*ets), GFP_KERNEL);
ets              2022 fs/binfmt_elf.c 		if (!ets)
ets              2025 fs/binfmt_elf.c 		ets->thread = ct->task;
ets              2026 fs/binfmt_elf.c 		list_add(&ets->list, &info->thread_list);
ets              2029 fs/binfmt_elf.c 	list_for_each_entry(ets, &info->thread_list, list) {
ets              2032 fs/binfmt_elf.c 		sz = elf_dump_thread_status(siginfo->si_signo, ets);
ets              2095 fs/binfmt_elf.c 	struct elf_thread_status *ets;
ets              2103 fs/binfmt_elf.c 	list_for_each_entry(ets, &info->thread_list, list) {
ets              2104 fs/binfmt_elf.c 		for (i = 0; i < ets->num_notes; i++)
ets              2105 fs/binfmt_elf.c 			if (!writenote(&ets->notes[i], cprm))
ets              1222 include/linux/mlx5/mlx5_ifc.h 	u8         ets[0x1];
ets               233 include/linux/qed/qed_eth_if.h 	int (*ieee_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
ets               234 include/linux/qed/qed_eth_if.h 	int (*ieee_setets)(struct qed_dev *cdev, struct ieee_ets *ets);
ets               235 include/linux/qed/qed_eth_if.h 	int (*ieee_peer_getets)(struct qed_dev *cdev, struct ieee_ets *ets);
ets              1047 net/dcb/dcbnl.c 		struct ieee_ets ets;
ets              1048 net/dcb/dcbnl.c 		memset(&ets, 0, sizeof(ets));
ets              1049 net/dcb/dcbnl.c 		err = ops->ieee_getets(netdev, &ets);
ets              1051 net/dcb/dcbnl.c 		    nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets))
ets              1138 net/dcb/dcbnl.c 		struct ieee_ets ets;
ets              1139 net/dcb/dcbnl.c 		memset(&ets, 0, sizeof(ets));
ets              1140 net/dcb/dcbnl.c 		err = ops->ieee_peer_getets(netdev, &ets);
ets              1142 net/dcb/dcbnl.c 		    nla_put(skb, DCB_ATTR_IEEE_PEER_ETS, sizeof(ets), &ets))
ets              1444 net/dcb/dcbnl.c 		struct ieee_ets *ets = nla_data(ieee[DCB_ATTR_IEEE_ETS]);
ets              1445 net/dcb/dcbnl.c 		err = ops->ieee_setets(netdev, ets);