| /drivers/soc/qcom/ |
| A D | rpmh-rsc.c | 461 if (!drv->tcs[ACTIVE_TCS].num_tcs) in tcs_tx_done() 474 if (!drv->tcs[ACTIVE_TCS].num_tcs) in tcs_tx_done() 583 unsigned long max = tcs->offset + tcs->num_tcs; in find_free_tcs() 715 if (slot >= tcs->num_tcs * tcs->ncpt) in find_slots() 787 if (!tcs->num_tcs) in rpmh_rsc_ctrlr_is_busy() 790 max = tcs->offset + tcs->num_tcs; in rpmh_rsc_ctrlr_is_busy() 1014 tcs->num_tcs = tcs_cfg[i].n; in rpmh_probe_tcs_config() 1020 if (st + tcs->num_tcs > max_tcs || in rpmh_probe_tcs_config() 1024 tcs->mask = ((1 << tcs->num_tcs) - 1) << st; in rpmh_probe_tcs_config() 1026 st += tcs->num_tcs; in rpmh_probe_tcs_config() [all …]
|
| A D | rpmh-internal.h | 49 int num_tcs; member 125 int num_tcs; member
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | selq.c | 15 unsigned int num_tcs; member 47 .num_tcs = 1, in mlx5e_selq_init() 87 selq->standby->num_tcs = mlx5e_get_dcb_num_tc(params); in mlx5e_selq_prepare_params() 89 selq->standby->num_channels * selq->standby->num_tcs; in mlx5e_selq_prepare_params() 171 up = selq->num_tcs > 1 ? mlx5e_get_up(priv, skb) : 0; in mlx5e_select_ptpsq() 214 if (selq->num_tcs <= 1) in mlx5e_select_queue() 262 if (selq->num_tcs <= 1) in mlx5e_select_queue()
|
| /drivers/net/ethernet/wangxun/txgbevf/ |
| A D | txgbevf_main.c | 50 u32 def_q = 0, num_tcs = 0; in txgbevf_set_num_queues() local 60 ret = wx_get_queues_vf(wx, &num_tcs, &def_q); in txgbevf_set_num_queues() 67 if (num_tcs > 1) { in txgbevf_set_num_queues() 68 wx->num_rx_queues = num_tcs; in txgbevf_set_num_queues()
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_sriov.c | 84 adapter->dcb_cfg.num_tcs.pg_tcs = MAX_TRAFFIC_CLASS; in __ixgbe_enable_sriov() 87 adapter->dcb_cfg.num_tcs.pg_tcs = 4; in __ixgbe_enable_sriov() 88 adapter->dcb_cfg.num_tcs.pfc_tcs = 4; in __ixgbe_enable_sriov() 90 adapter->dcb_cfg.num_tcs.pg_tcs = 1; in __ixgbe_enable_sriov() 91 adapter->dcb_cfg.num_tcs.pfc_tcs = 1; in __ixgbe_enable_sriov() 705 u8 num_tcs = adapter->hw_tcs; in ixgbe_vf_reset_event() local 722 if (vfinfo->pf_qos || !num_tcs) in ixgbe_vf_reset_event() 1066 u8 num_tcs = adapter->hw_tcs; in ixgbe_get_vf_queues() local 1085 if (num_tcs > 1) in ixgbe_get_vf_queues() 1089 if (num_tcs) in ixgbe_get_vf_queues() [all …]
|
| A D | ixgbe_lib.c | 94 u8 num_tcs = adapter->hw_tcs; in ixgbe_get_first_reg_idx() local 111 if (num_tcs > 4) { in ixgbe_get_first_reg_idx() 151 u8 num_tcs = adapter->hw_tcs; in ixgbe_cache_ring_dcb() local 156 if (num_tcs <= 1) in ixgbe_cache_ring_dcb() 161 for (tc = 0, offset = 0; tc < num_tcs; tc++, offset += rss_i) { in ixgbe_cache_ring_dcb() 1200 adapter->dcb_cfg.num_tcs.pg_tcs = 1; in ixgbe_set_interrupt_capability() 1201 adapter->dcb_cfg.num_tcs.pfc_tcs = 1; in ixgbe_set_interrupt_capability()
|
| A D | ixgbe_dcb_nl.c | 139 state ? adapter->dcb_cfg.num_tcs.pg_tcs : 0); in ixgbe_dcbnl_set_state() 428 *num = adapter->dcb_cfg.num_tcs.pg_tcs; in ixgbe_dcbnl_getnumtcs() 431 *num = adapter->dcb_cfg.num_tcs.pfc_tcs; in ixgbe_dcbnl_getnumtcs() 492 ets->ets_cap = adapter->dcb_cfg.num_tcs.pg_tcs; in ixgbe_dcbnl_ieee_getets() 545 if (max_tc > adapter->dcb_cfg.num_tcs.pg_tcs) in ixgbe_dcbnl_ieee_setets() 566 pfc->pfc_cap = adapter->dcb_cfg.num_tcs.pfc_tcs; in ixgbe_dcbnl_ieee_getpfc()
|
| A D | ixgbe_dcb.h | 108 struct dcb_num_tcs num_tcs; member
|
| A D | ixgbe_dcb.c | 216 u8 tc = cfg->num_tcs.pg_tcs; in ixgbe_dcb_get_tc_from_up()
|
| /drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| A D | qos.c | 121 int num_tcs = mlx5_max_tc(dev) + 1; in esw_qos_num_tcs() local 123 return num_tcs < DEVLINK_RATE_TCS_MAX ? num_tcs : DEVLINK_RATE_TCS_MAX; in esw_qos_num_tcs() 163 for (i = 0; i < num_tcs; i++) in mlx5_esw_qos_vport_qos_free() 654 int err, i, num_tcs = esw_qos_num_tcs(esw->dev); in esw_qos_create_vports_tc_nodes() local 656 for (i = 0; i < num_tcs; i++) { in esw_qos_create_vports_tc_nodes() 937 for (i = 0; i < num_tcs; i++) { in esw_qos_destroy_vport_tc_sched_elements() 955 int err, num_tcs = esw_qos_num_tcs(vport_node->esw->dev); in esw_qos_create_vport_tc_sched_elements() local 958 vport->qos.sched_nodes = kcalloc(num_tcs, in esw_qos_create_vport_tc_sched_elements() 1066 for (i = 0; i < num_tcs; i++) { in esw_qos_set_vport_tcs_min_rate() 1644 int i, num_tcs = esw_qos_num_tcs(esw->dev); in esw_qos_validate_unsupported_tc_bw() local [all …]
|
| /drivers/net/ethernet/wangxun/libwx/ |
| A D | wx_vf.c | 429 int wx_get_queues_vf(struct wx *wx, u32 *num_tcs, u32 *default_tc) in wx_get_queues_vf() argument 462 *num_tcs = msgbuf[WX_VF_TRANS_VLAN]; in wx_get_queues_vf() 464 if (*num_tcs > wx->mac.max_rx_queues) in wx_get_queues_vf() 465 *num_tcs = 1; in wx_get_queues_vf()
|
| A D | wx_vf.h | 120 int wx_get_queues_vf(struct wx *wx, u32 *num_tcs, u32 *default_tc);
|
| A D | wx_sriov.c | 347 u8 num_tcs = netdev_get_num_tc(wx->netdev); in wx_vf_reset_event() local 356 if (!vfinfo->pf_vlan && !vfinfo->pf_qos && !num_tcs) { in wx_vf_reset_event() 359 if (vfinfo->pf_qos || !num_tcs) in wx_vf_reset_event()
|
| /drivers/net/ethernet/intel/ixgbevf/ |
| A D | vf.c | 941 int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs, in ixgbevf_get_queues() argument 985 *num_tcs = msg[IXGBE_VF_TRANS_VLAN]; in ixgbevf_get_queues() 987 if (*num_tcs > hw->mac.max_rx_queues) in ixgbevf_get_queues() 988 *num_tcs = 1; in ixgbevf_get_queues()
|
| A D | vf.h | 189 int ixgbevf_get_queues(struct ixgbe_hw *hw, unsigned int *num_tcs,
|
| A D | ixgbevf_main.c | 2184 unsigned int num_tcs = 0; in ixgbevf_configure_dcb() local 2192 err = ixgbevf_get_queues(hw, &num_tcs, &def_q); in ixgbevf_configure_dcb() 2199 if (num_tcs > 1) { in ixgbevf_configure_dcb() 2207 num_rx_queues = num_tcs; in ixgbevf_configure_dcb() 2624 unsigned int num_tcs = 0; in ixgbevf_set_num_queues() local 2635 err = ixgbevf_get_queues(hw, &num_tcs, &def_q); in ixgbevf_set_num_queues() 2643 if (num_tcs > 1) { in ixgbevf_set_num_queues() 2644 adapter->num_rx_queues = num_tcs; in ixgbevf_set_num_queues()
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_dcb_nl.c | 232 int num_tcs = 0; in mlx4_en_dcbnl_set_state() local 242 num_tcs = IEEE_8021QAZ_MAX_TCS; in mlx4_en_dcbnl_set_state() 247 if (mlx4_en_alloc_tx_queue_per_tc(dev, num_tcs)) in mlx4_en_dcbnl_set_state()
|
| /drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| A D | hw_atl2.c | 218 const u32 num_tcs = aq_hw_num_tcs(self); in hw_atl2_hw_rss_set() local 223 rpf_redir2_enable = num_tcs > 4 ? 1 : 0; in hw_atl2_hw_rss_set() 228 for (tc = 0; tc != num_tcs; tc++) { in hw_atl2_hw_rss_set()
|
| /drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-dcb.c | 93 pdata->num_tcs = max_tc + 1; in xgbe_dcb_ieee_setets()
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_dcb_lib.c | 33 u8 num_tcs = 0, i, tc, up_mapped_tc, up_in_tc = 0; in ice_is_pfc_causing_hung_q() local 44 num_tcs++; in ice_is_pfc_causing_hung_q() 47 for (tc = 0; tc < num_tcs - 1; tc++) in ice_is_pfc_causing_hung_q()
|
| /drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpsw-cmd.h | 290 u8 num_tcs; member
|
| A D | dpni-cmd.h | 202 u8 num_tcs; member
|
| A D | dpsw.h | 410 u8 num_tcs; member
|
| A D | dpaa2-eth.h | 694 ((priv)->dpni_attrs.num_tcs)
|
| A D | dpni.h | 216 u8 num_tcs; member
|