Lines Matching refs:enabled_tc

1926 					   u8 enabled_tc)  in i40e_vsi_setup_queue_map_mqprio()  argument
1937 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map_mqprio()
1951 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map_mqprio()
2014 u8 enabled_tc, in i40e_vsi_setup_queue_map() argument
2057 if (enabled_tc && (vsi->back->flags & I40E_FLAG_DCB_ENABLED)) { in i40e_vsi_setup_queue_map()
2060 if (enabled_tc & BIT(i)) /* TC is enabled */ in i40e_vsi_setup_queue_map()
2073 vsi->tc_config.enabled_tc = enabled_tc ? enabled_tc : 1; in i40e_vsi_setup_queue_map()
2082 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_vsi_setup_queue_map()
2090 vsi->tc_config.enabled_tc != 1) { in i40e_vsi_setup_queue_map()
2144 ctxt->info.up_enable_bits = enabled_tc; in i40e_vsi_setup_queue_map()
3787 if (!(vsi->tc_config.enabled_tc & BIT_ULL(n))) in i40e_vsi_config_dcb_rings()
5378 u8 enabled_tc = 1; /* TC0 is always enabled */ in i40e_get_iscsi_tc_map() local
5388 enabled_tc |= BIT(tc); in i40e_get_iscsi_tc_map()
5393 return enabled_tc; in i40e_get_iscsi_tc_map()
5448 u8 enabled_tc = 1; in i40e_dcb_get_enabled_tc() local
5452 enabled_tc |= BIT(i); in i40e_dcb_get_enabled_tc()
5454 return enabled_tc; in i40e_dcb_get_enabled_tc()
5468 u8 enabled_tc = 1, i; in i40e_mqprio_get_enabled_tc() local
5471 enabled_tc |= BIT(i); in i40e_mqprio_get_enabled_tc()
5472 return enabled_tc; in i40e_mqprio_get_enabled_tc()
5484 u8 i, enabled_tc = 1; in i40e_pf_get_num_tc() local
5501 enabled_tc = i40e_get_iscsi_tc_map(pf); in i40e_pf_get_num_tc()
5506 if (enabled_tc & BIT(i)) in i40e_pf_get_num_tc()
5608 static int i40e_vsi_configure_bw_alloc(struct i40e_vsi *vsi, u8 enabled_tc, in i40e_vsi_configure_bw_alloc() argument
5628 bw_data.tc_valid_bits = enabled_tc; in i40e_vsi_configure_bw_alloc()
5652 static void i40e_vsi_config_netdev_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_netdev_tc() argument
5664 if (!enabled_tc) { in i40e_vsi_config_netdev_tc()
5682 if (vsi->tc_config.enabled_tc & BIT(i)) in i40e_vsi_config_netdev_tc()
5746 i40e_vsi_setup_queue_map(vsi, &ctxt, vsi->tc_config.enabled_tc, in i40e_update_adq_vsi_queues()
5786 static int i40e_vsi_config_tc(struct i40e_vsi *vsi, u8 enabled_tc) in i40e_vsi_config_tc() argument
5796 if (vsi->tc_config.enabled_tc == enabled_tc && in i40e_vsi_config_tc()
5802 if (enabled_tc & BIT(i)) in i40e_vsi_config_tc()
5806 ret = i40e_vsi_configure_bw_alloc(vsi, enabled_tc, bw_share); in i40e_vsi_config_tc()
5812 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5822 if ((bw_config.tc_valid_bits & enabled_tc) != enabled_tc) { in i40e_vsi_config_tc()
5823 u8 valid_tc = bw_config.tc_valid_bits & enabled_tc; in i40e_vsi_config_tc()
5831 enabled_tc, bw_config.tc_valid_bits, valid_tc); in i40e_vsi_config_tc()
5832 enabled_tc = valid_tc; in i40e_vsi_config_tc()
5835 ret = i40e_vsi_configure_bw_alloc(vsi, enabled_tc, bw_share); in i40e_vsi_config_tc()
5839 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5851 ret = i40e_vsi_setup_queue_map_mqprio(vsi, &ctxt, enabled_tc); in i40e_vsi_config_tc()
5855 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, false); in i40e_vsi_config_tc()
5904 i40e_vsi_config_netdev_tc(vsi, enabled_tc); in i40e_vsi_config_tc()
6268 u8 enabled_tc = 0x1; /* TC0 enabled */ in i40e_add_channel() local
6309 ch->enabled_tc = !i40e_is_channel_macvlan(ch) && enabled_tc; in i40e_add_channel()
6335 bw_data.tc_valid_bits = ch->enabled_tc; in i40e_channel_config_bw()
6373 if (ch->enabled_tc & BIT(i)) in i40e_channel_config_tx_ring()
6382 ch->enabled_tc, ch->seid); in i40e_channel_config_tx_ring()
6673 if (vsi->tc_config.enabled_tc & BIT(i)) { in i40e_configure_queue_channels()
6722 int i40e_veb_config_tc(struct i40e_veb *veb, u8 enabled_tc) in i40e_veb_config_tc() argument
6730 if (!enabled_tc || veb->enabled_tc == enabled_tc) in i40e_veb_config_tc()
6733 bw_data.tc_valid_bits = enabled_tc; in i40e_veb_config_tc()
6738 if (enabled_tc & BIT(i)) in i40e_veb_config_tc()
7658 vsi->tc_config.enabled_tc = 1; in i40e_vsi_set_default_tc_config()
8170 u8 enabled_tc = 0, num_tc, hw; in i40e_setup_tc() local
8234 enabled_tc |= BIT(i); in i40e_setup_tc()
8237 if (enabled_tc == vsi->tc_config.enabled_tc && in i40e_setup_tc()
8248 ret = i40e_vsi_config_tc(vsi, enabled_tc); in i40e_setup_tc()
8254 } else if (enabled_tc && in i40e_setup_tc()
8755 } else if (vsi->tc_config.enabled_tc & BIT(tc)) { in i40e_handle_tclass()
13214 vsi->tc_config.enabled_tc); in i40e_ndo_bridge_setlink()
13886 i40e_vsi_config_netdev_tc(vsi, vsi->tc_config.enabled_tc); in i40e_config_netdev()
13965 u8 enabled_tc = 0x1; /* TC0 enabled */ in i40e_add_vsi() local
13995 enabled_tc = i40e_pf_get_tc_map(pf); in i40e_add_vsi()
14029 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, false); in i40e_add_vsi()
14050 ret = i40e_vsi_config_tc(vsi, enabled_tc); in i40e_add_vsi()
14057 enabled_tc, in i40e_add_vsi()
14078 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
14099 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
14137 i40e_vsi_setup_queue_map(vsi, &ctxt, enabled_tc, true); in i40e_add_vsi()
14362 u8 enabled_tc; in i40e_vsi_reinit_setup() local
14394 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_vsi_reinit_setup()
14395 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_vsi_reinit_setup()
14397 i40e_vsi_config_tc(pf->vsi[pf->lan_vsi], enabled_tc); in i40e_vsi_reinit_setup()
14482 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
14485 vsi->tc_config.enabled_tc); in i40e_vsi_setup()
14650 veb->enabled_tc = ets_data.tc_valid_bits; in i40e_veb_get_bw_info()
14701 veb->enabled_tc = 1; in i40e_veb_mem_alloc()
14832 veb->enabled_tc, false, in i40e_add_veb()
14889 u8 enabled_tc) in i40e_veb_setup() argument
14937 veb->enabled_tc = (enabled_tc ? enabled_tc : 0x1); in i40e_veb_setup()
15174 u8 enabled_tc = pf->vsi[pf->lan_vsi]->tc_config.enabled_tc; in i40e_setup_pf_switch() local
15176 pf->vsi[pf->lan_vsi]->tc_config.enabled_tc = 0; in i40e_setup_pf_switch()
15178 i40e_vsi_config_tc(pf->vsi[pf->lan_vsi], enabled_tc); in i40e_setup_pf_switch()