Home
last modified time | relevance | path

Searched refs:dcbcfg (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/intel/ice/
Dice_dcb.c210 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etscfg_tlv() argument
222 etscfg = &dcbcfg->etscfg; in ice_parse_ieee_etscfg_tlv()
242 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_etsrec_tlv() argument
247 ice_parse_ieee_ets_common_tlv(&buf[1], &dcbcfg->etsrec); in ice_parse_ieee_etsrec_tlv()
259 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_pfccfg_tlv() argument
269 dcbcfg->pfc.willing = ((buf[0] & ICE_IEEE_PFC_WILLING_M) >> in ice_parse_ieee_pfccfg_tlv()
271 dcbcfg->pfc.mbc = ((buf[0] & ICE_IEEE_PFC_MBC_M) >> ICE_IEEE_PFC_MBC_S); in ice_parse_ieee_pfccfg_tlv()
272 dcbcfg->pfc.pfccap = ((buf[0] & ICE_IEEE_PFC_CAP_M) >> in ice_parse_ieee_pfccfg_tlv()
274 dcbcfg->pfc.pfcena = buf[1]; in ice_parse_ieee_pfccfg_tlv()
286 struct ice_dcbx_cfg *dcbcfg) in ice_parse_ieee_app_tlv() argument
[all …]
Dice_dcb_lib.c16 struct ice_dcbx_cfg *dcbcfg; in ice_vsi_cfg_netdev_tc() local
31 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_cfg_netdev_tc()
41 u8 ets_tc = dcbcfg->etscfg.prio_table[i]; in ice_vsi_cfg_netdev_tc()
53 u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg *dcbcfg) in ice_dcb_get_ena_tc() argument
57 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_get_ena_tc()
147 u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg *dcbcfg) in ice_dcb_get_num_tc() argument
158 num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); in ice_dcb_get_num_tc()
234 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg) in ice_dcb_bwchk() argument
236 struct ice_dcb_ets_cfg *etscfg = &dcbcfg->etscfg; in ice_dcb_bwchk()
243 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_bwchk()
[all …]
Dice_dcb_lib.h18 u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg *dcbcfg);
19 u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg *dcbcfg);
25 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg);
65 static inline u8 ice_dcb_get_ena_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_ena_tc() argument
70 static inline u8 ice_dcb_get_num_tc(struct ice_dcbx_cfg __always_unused *dcbcfg) in ice_dcb_get_num_tc() argument
Dice_dcb.h125 struct ice_dcbx_cfg *dcbcfg);
/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c37 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etscfg_tlv() argument
52 etscfg = &dcbcfg->etscfg; in i40e_parse_ieee_etscfg_tlv()
108 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_etsrec_tlv() argument
129 dcbcfg->etsrec.prioritytable[i*2] = priority; in i40e_parse_ieee_etsrec_tlv()
132 dcbcfg->etsrec.prioritytable[i*2 + 1] = priority; in i40e_parse_ieee_etsrec_tlv()
143 dcbcfg->etsrec.tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()
152 dcbcfg->etsrec.tsatable[i] = buf[offset++]; in i40e_parse_ieee_etsrec_tlv()
163 struct i40e_dcbx_config *dcbcfg) in i40e_parse_ieee_pfccfg_tlv() argument
173 dcbcfg->pfc.willing = (u8)((buf[0] & I40E_IEEE_PFC_WILLING_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
175 dcbcfg->pfc.mbc = (u8)((buf[0] & I40E_IEEE_PFC_MBC_MASK) >> in i40e_parse_ieee_pfccfg_tlv()
[all …]
Di40e_dcb.h270 struct i40e_dcbx_config *dcbcfg);
273 struct i40e_dcbx_config *dcbcfg);
282 struct i40e_dcbx_config *dcbcfg);
Di40e_main.c5353 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_get_iscsi_tc_map() local
5355 for (i = 0; i < dcbcfg->numapps; i++) { in i40e_get_iscsi_tc_map()
5356 app = dcbcfg->app[i]; in i40e_get_iscsi_tc_map()
5359 tc = dcbcfg->etscfg.prioritytable[app.priority]; in i40e_get_iscsi_tc_map()
5374 static u8 i40e_dcb_get_num_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_num_tc() argument
5385 num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); in i40e_dcb_get_num_tc()
5417 static u8 i40e_dcb_get_enabled_tc(struct i40e_dcbx_config *dcbcfg) in i40e_dcb_get_enabled_tc() argument
5419 u8 num_tc = i40e_dcb_get_num_tc(dcbcfg); in i40e_dcb_get_enabled_tc()
5458 struct i40e_dcbx_config *dcbcfg = &hw->local_dcbx_config; in i40e_pf_get_num_tc() local
5469 return i40e_dcb_get_num_tc(dcbcfg); in i40e_pf_get_num_tc()
[all …]