/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dcb.c | 124 struct ieee_ets *ets) in xgbe_dcb_ieee_getets() argument 129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets() 131 if (pdata->ets) { in xgbe_dcb_ieee_getets() 132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets() 133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, in xgbe_dcb_ieee_getets() 134 sizeof(ets->tc_tx_bw)); in xgbe_dcb_ieee_getets() 135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa, in xgbe_dcb_ieee_getets() 136 sizeof(ets->tc_tsa)); in xgbe_dcb_ieee_getets() 137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets() 138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets() [all …]
|
D | xgbe-dev.c | 1293 struct ieee_ets *ets = pdata->ets; in xgbe_config_dcb_tc() local 1297 if (!ets) in xgbe_config_dcb_tc() 1312 switch (ets->tc_tsa[i]) { in xgbe_config_dcb_tc() 1320 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc() 1337 struct ieee_ets *ets = pdata->ets; in xgbe_config_dcb_pfc() local 1341 if (!pfc || !ets) in xgbe_config_dcb_pfc() 1348 (ets->prio_tc[prio] == tc)) in xgbe_config_dcb_pfc()
|
D | xgbe.h | 879 struct ieee_ets *ets; member
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_dcbnl.c | 29 static int fm10k_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets) in fm10k_dcbnl_ieee_getets() argument 34 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in fm10k_dcbnl_ieee_getets() 35 ets->cbs = 0; in fm10k_dcbnl_ieee_getets() 38 memset(ets->tc_tx_bw, 0, sizeof(ets->tc_tx_bw)); in fm10k_dcbnl_ieee_getets() 39 memset(ets->tc_rx_bw, 0, sizeof(ets->tc_rx_bw)); in fm10k_dcbnl_ieee_getets() 40 memset(ets->tc_tsa, IEEE_8021QAZ_TSA_STRICT, sizeof(ets->tc_tsa)); in fm10k_dcbnl_ieee_getets() 44 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets() 54 static int fm10k_dcbnl_ieee_setets(struct net_device *dev, struct ieee_ets *ets) in fm10k_dcbnl_ieee_setets() argument 61 if (ets->tc_tx_bw[i] || ets->tc_rx_bw[i]) in fm10k_dcbnl_ieee_setets() 63 if (ets->tc_tsa[i] != IEEE_8021QAZ_TSA_STRICT) in fm10k_dcbnl_ieee_setets() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 55 struct ieee_ets *ets) in i40e_dcbnl_ieee_getets() argument 65 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets() 66 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in i40e_dcbnl_ieee_getets() 67 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets() 68 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets() 69 sizeof(ets->tc_tx_bw)); in i40e_dcbnl_ieee_getets() 70 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, in i40e_dcbnl_ieee_getets() 71 sizeof(ets->tc_rx_bw)); in i40e_dcbnl_ieee_getets() 72 memcpy(ets->tc_tsa, dcbxcfg->etscfg.tsatable, in i40e_dcbnl_ieee_getets() 73 sizeof(ets->tc_tsa)); in i40e_dcbnl_ieee_getets() [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_dcb_nl.c | 84 struct ieee_ets *ets) in mlx4_en_dcbnl_ieee_getets() argument 87 struct ieee_ets *my_ets = &priv->ets; in mlx4_en_dcbnl_ieee_getets() 93 ets->ets_cap = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_ieee_getets() 94 ets->cbs = my_ets->cbs; in mlx4_en_dcbnl_ieee_getets() 95 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in mlx4_en_dcbnl_ieee_getets() 96 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in mlx4_en_dcbnl_ieee_getets() 97 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets() 102 static int mlx4_en_ets_validate(struct mlx4_en_priv *priv, struct ieee_ets *ets) in mlx4_en_ets_validate() argument 109 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP) { in mlx4_en_ets_validate() 111 i, ets->prio_tc[i]); in mlx4_en_ets_validate() [all …]
|
D | mlx4_en.h | 590 struct ieee_ets ets; member
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_dcb.c | 45 struct dcbx_ets_feature *ets, 50 struct dcbx_ets_feature *ets); 78 bp->dcbx_port_params.ets.num_of_cos; in bnx2x_pfc_set() 81 for (i = 0; i < bp->dcbx_port_params.ets.num_of_cos; i++) in bnx2x_pfc_set() 88 bp->dcbx_port_params.ets.cos_params[i].pri_bitmask in bnx2x_pfc_set() 135 "local_mib.features.ets.enabled %x\n", features->ets.enabled); in bnx2x_dump_dcbx_drv_param() 139 DCBX_PG_BW_GET(features->ets.pg_bw_tbl, i)); in bnx2x_dump_dcbx_drv_param() 143 DCBX_PRI_PG_GET(features->ets.pri_pg_tbl, i)); in bnx2x_dump_dcbx_drv_param() 246 struct dcbx_ets_feature *ets, in bnx2x_dcbx_get_ets_feature() argument 252 bp->dcbx_port_params.ets.cos_params; in bnx2x_dcbx_get_ets_feature() [all …]
|
D | bnx2x_dcb.h | 65 struct bnx2x_dcbx_pg_params ets; member 74 (bp)->dcbx_port_params.ets.enabled)
|
D | bnx2x_hsi.h | 1863 struct dcbx_ets_feature ets; member
|
D | bnx2x_main.c | 10226 bnx2x_setup_tc(bp->dev, bp->dcbx_port_params.ets.num_of_cos); in bnx2x_sp_rtnl_task()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 513 struct ieee_ets *ets) in ixgbe_dcbnl_ieee_getets() argument 518 ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs; in ixgbe_dcbnl_ieee_getets() 524 ets->cbs = my_ets->cbs; in ixgbe_dcbnl_ieee_getets() 525 memcpy(ets->tc_tx_bw, my_ets->tc_tx_bw, sizeof(ets->tc_tx_bw)); in ixgbe_dcbnl_ieee_getets() 526 memcpy(ets->tc_rx_bw, my_ets->tc_rx_bw, sizeof(ets->tc_rx_bw)); in ixgbe_dcbnl_ieee_getets() 527 memcpy(ets->tc_tsa, my_ets->tc_tsa, sizeof(ets->tc_tsa)); in ixgbe_dcbnl_ieee_getets() 528 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets() 533 struct ieee_ets *ets) in ixgbe_dcbnl_ieee_setets() argument 560 if (ets->prio_tc[i] > max_tc) in ixgbe_dcbnl_ieee_setets() 561 max_tc = ets->prio_tc[i]; in ixgbe_dcbnl_ieee_setets() [all …]
|
D | ixgbe_dcb.c | 316 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max_frame) in ixgbe_dcb_hw_ets() argument 327 switch (ets->tc_tsa[i]) { in ixgbe_dcb_hw_ets() 344 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets() 346 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
|
D | ixgbe_dcb.h | 156 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max);
|
D | ixgbe_main.c | 7878 struct ieee_ets *ets = adapter->ixgbe_ieee_ets; in ixgbe_set_prio_tc_map() local 7886 else if (ets) in ixgbe_set_prio_tc_map() 7887 tc = ets->prio_tc[prio]; in ixgbe_set_prio_tc_map()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 918 static int cxgb4_ieee_read_ets(struct net_device *dev, struct ieee_ets *ets, in cxgb4_ieee_read_ets() argument 931 ets->ets_cap = dcb->pg_num_tcs_supported; in cxgb4_ieee_read_ets() 934 ets->willing = 1; in cxgb4_ieee_read_ets() 964 ets->prio_tc[i] = bwg; in cxgb4_ieee_read_ets() 965 ets->tc_tx_bw[i] = pcmd.u.dcb.pgrate.pgrate[i]; in cxgb4_ieee_read_ets() 966 ets->tc_rx_bw[i] = ets->tc_tx_bw[i]; in cxgb4_ieee_read_ets() 967 ets->tc_tsa[i] = pcmd.u.dcb.pgrate.tsa[i]; in cxgb4_ieee_read_ets() 973 static int cxgb4_ieee_get_ets(struct net_device *dev, struct ieee_ets *ets) in cxgb4_ieee_get_ets() argument 975 return cxgb4_ieee_read_ets(dev, ets, 1); in cxgb4_ieee_get_ets() 995 static int cxgb4_ieee_peer_ets(struct net_device *dev, struct ieee_ets *ets) in cxgb4_ieee_peer_ets() argument [all …]
|
/linux-4.4.14/net/dcb/ |
D | dcbnl.c | 1049 struct ieee_ets ets; in dcbnl_ieee_fill() local 1050 memset(&ets, 0, sizeof(ets)); in dcbnl_ieee_fill() 1051 err = ops->ieee_getets(netdev, &ets); in dcbnl_ieee_fill() 1053 nla_put(skb, DCB_ATTR_IEEE_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill() 1130 struct ieee_ets ets; in dcbnl_ieee_fill() local 1131 memset(&ets, 0, sizeof(ets)); in dcbnl_ieee_fill() 1132 err = ops->ieee_peer_getets(netdev, &ets); in dcbnl_ieee_fill() 1134 nla_put(skb, DCB_ATTR_IEEE_PEER_ETS, sizeof(ets), &ets)) in dcbnl_ieee_fill() 1432 struct ieee_ets *ets = nla_data(ieee[DCB_ATTR_IEEE_ETS]); in dcbnl_ieee_set() local 1433 err = ops->ieee_setets(netdev, ets); in dcbnl_ieee_set()
|
/linux-4.4.14/fs/ |
D | binfmt_elf.c | 1950 struct elf_thread_status *ets; in fill_note_info() local 1957 ets = kzalloc(sizeof(*ets), GFP_KERNEL); in fill_note_info() 1958 if (!ets) in fill_note_info() 1961 ets->thread = ct->task; in fill_note_info() 1962 list_add(&ets->list, &info->thread_list); in fill_note_info() 1968 ets = list_entry(t, struct elf_thread_status, list); in fill_note_info() 1969 sz = elf_dump_thread_status(siginfo->si_signo, ets); in fill_note_info()
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb.h | 454 bool ets; member
|
D | igb_main.c | 1998 if (adapter->ets) in igb_reset() 2561 adapter->ets = true; in igb_probe() 2563 adapter->ets = false; in igb_probe() 2568 adapter->ets = false; in igb_probe()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_dbg.c | 1139 + sizeof(mpi_coredump->ets), in ql_core_dump() 1141 status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]); in ql_core_dump() 1315 + sizeof(mpi_coredump->ets), in ql_gen_reg_dump() 1317 status = ql_get_ets_regs(qdev, &mpi_coredump->ets[0]); in ql_gen_reg_dump()
|
D | qlge.h | 1775 u32 ets[8+2]; member 1919 u32 ets[ETS_REGS_DUMP_WORD_COUNT]; member
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_hsi.h | 3575 struct dcbx_ets_feature ets; member
|
/linux-4.4.14/include/linux/mlx5/ |
D | mlx5_ifc.h | 666 u8 ets[0x1]; member
|