Lines Matching refs:enabled_tc

1701 					   u8 enabled_tc)  in i40e_vsi_setup_queue_map_mqprio()  argument
1712 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map_mqprio()
1726 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map_mqprio()
1789 u8 enabled_tc, in i40e_vsi_setup_queue_map() argument
1807 if (enabled_tc && (vsi->back->flags & I40E_FLAG_DCB_ENABLED)) { in i40e_vsi_setup_queue_map()
1810 if (enabled_tc & BIT(i)) /* TC is enabled */ in i40e_vsi_setup_queue_map()
1823 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map()
1832 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map()
1840 vsi->tc_config.enabled_tc != 1) { in i40e_vsi_setup_queue_map()
1898 ctxt->info.up_enable_bits = enabled_tc; in i40e_vsi_setup_queue_map()
3486 if (!(vsi->tc_config.enabled_tc & BIT_ULL(n))) in i40e_vsi_config_dcb_rings()
5086 u8 enabled_tc = 1; /* TC0 is always enabled */ in i40e_get_iscsi_tc_map() local
5096 enabled_tc |= BIT(tc); in i40e_get_iscsi_tc_map()
5101 return enabled_tc; in i40e_get_iscsi_tc_map()
5156 u8 enabled_tc = 1; in i40e_dcb_get_enabled_tc() local
5160 enabled_tc |= BIT(i); in i40e_dcb_get_enabled_tc()
5162 return enabled_tc; in i40e_dcb_get_enabled_tc()
5176 u8 enabled_tc = 1, i; in i40e_mqprio_get_enabled_tc() local
5179 enabled_tc |= BIT(i); in i40e_mqprio_get_enabled_tc()
5180 return enabled_tc; in i40e_mqprio_get_enabled_tc()
5192 u8 i, enabled_tc = 1; in i40e_pf_get_num_tc() local
5209 enabled_tc = i40e_get_iscsi_tc_map(pf); in i40e_pf_get_num_tc()
5214 if (enabled_tc & BIT(i)) in i40e_pf_get_num_tc()
5316 static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, in i40e_vsi_configure_bw_alloc() argument
5336 bw_data.tc_valid_bits = enabled_tc; in i40e_vsi_configure_bw_alloc()
5360 static void i40e_vsi_config_netdev_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_netdev_tc() argument
5372 if (!enabled_tc) { in i40e_vsi_config_netdev_tc()
5390 if (vsi->tc_config.enabled_tc & BIT(i)) in i40e_vsi_config_netdev_tc()
5442 static int i40e_vsi_config_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_tc() argument
5452 if (vsi->tc_config.enabled_tc == enabled_tc && in i40e_vsi_config_tc()
5458 if (enabled_tc & BIT(i)) in i40e_vsi_config_tc()
5462 ret = i40e_vsi_configure_bw_alloc(vsi, enabled_tc, bw_share); in i40e_vsi_config_tc()
5468 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5478 if ((bw_config.tc_valid_bits & enabled_tc) != enabled_tc) { in i40e_vsi_config_tc()
5479 u8 valid_tc = bw_config.tc_valid_bits & enabled_tc; in i40e_vsi_config_tc()
5487 enabled_tc, bw_config.tc_valid_bits, valid_tc); in i40e_vsi_config_tc()
5488 enabled_tc = valid_tc; in i40e_vsi_config_tc()
5491 ret = i40e_vsi_configure_bw_alloc(vsi, enabled_tc, bw_share); in i40e_vsi_config_tc()
5495 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5507 ret = i40e_vsi_setup_queue_map_mqprio(vsi, &ctxt, enabled_tc); in i40e_vsi_config_tc()
5511 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, false); in i40e_vsi_config_tc()
5560 i40e_vsi_config_netdev_tc(vsi, enabled_tc); in i40e_vsi_config_tc()
5922 u8 enabled_tc = 0x1; /* TC0 enabled */ in i40e_add_channel() local
5963 ch->enabled_tc = !i40e_is_channel_macvlan(ch) && enabled_tc; in i40e_add_channel()
5989 bw_data.tc_valid_bits = ch->enabled_tc; in i40e_channel_config_bw()
6027 if (ch->enabled_tc & BIT(i)) in i40e_channel_config_tx_ring()
6036 ch->enabled_tc, ch->seid); in i40e_channel_config_tx_ring()
6338 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_configure_queue_channels()
6384 int i40e_veb_config_tc(struct i40e_veb *veb, u8 enabled_tc) in i40e_veb_config_tc() argument
6392 if (!enabled_tc || veb->enabled_tc == enabled_tc) in i40e_veb_config_tc()
6395 bw_data.tc_valid_bits = enabled_tc; in i40e_veb_config_tc()
6400 if (enabled_tc & BIT(i)) in i40e_veb_config_tc()
7320 vsi->tc_config.enabled_tc = 1; in i40e_vsi_set_default_tc_config()
7831 u8 enabled_tc = 0, num_tc, hw; in i40e_setup_tc() local
7895 enabled_tc |= BIT(i); in i40e_setup_tc()
7898 if (enabled_tc == vsi->tc_config.enabled_tc && in i40e_setup_tc()
7909 ret = i40e_vsi_config_tc(vsi, enabled_tc); in i40e_setup_tc()
8408 } else if (vsi->tc_config.enabled_tc & BIT(tc)) { in i40e_handle_tclass()
12806 vsi->tc_config.enabled_tc); in i40e_ndo_bridge_setlink()
13437 i40e_vsi_config_netdev_tc(vsi, vsi->tc_config.enabled_tc); in i40e_config_netdev()
13516 u8 enabled_tc = 0x1; /* TC0 enabled */ in i40e_add_vsi() local
13546 enabled_tc = i40e_pf_get_tc_map(pf); in i40e_add_vsi()
13580 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, false); in i40e_add_vsi()
13601 ret = i40e_vsi_config_tc(vsi, enabled_tc); in i40e_add_vsi()
13608 enabled_tc, in i40e_add_vsi()
13629 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
13650 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
13688 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
13913 u8 enabled_tc; in i40e_vsi_reinit_setup() local
13945 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_vsi_reinit_setup()
13946 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_vsi_reinit_setup()
13948 i40e_vsi_config_tc(pf->vsi[pf->lan_vsi], enabled_tc); in i40e_vsi_reinit_setup()
14033 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
14036 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
14198 veb->enabled_tc = ets_data.tc_valid_bits; in i40e_veb_get_bw_info()
14249 veb->enabled_tc = 1; in i40e_veb_mem_alloc()
14380 veb->enabled_tc, false, in i40e_add_veb()
14437 u8 enabled_tc) in i40e_veb_setup() argument
14485 veb->enabled_tc = (enabled_tc ? enabled_tc : 0x1); in i40e_veb_setup()
14722 u8 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_setup_pf_switch() local
14724 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_setup_pf_switch()
14726 i40e_vsi_config_tc(pf->vsi[pf->lan_vsi], enabled_tc); in i40e_setup_pf_switch()