Home
last modified time | relevance | path

Searched refs:tcs (Results 1 – 19 of 19) sorted by relevance

/drivers/soc/qcom/
A Drpmh-rsc.c265 struct tcs_group *tcs = &drv->tcs[type]; in tcs_invalidate() local
271 for (m = tcs->offset; m < tcs->offset + tcs->num_tcs; m++) in tcs_invalidate()
328 tcs = &drv->tcs[type]; in get_tcs_for_msg()
330 tcs = &drv->tcs[WAKE_TCS]; in get_tcs_for_msg()
358 tcs = &drv->tcs[i]; in get_req_from_tcs()
360 return tcs->req[tcs_id - tcs->offset]; in get_req_from_tcs()
663 tcs->req[tcs_id - tcs->offset] = msg; in rpmh_rsc_send_data()
715 if (slot >= tcs->num_tcs * tcs->ncpt) in find_slots()
788 tcs = &drv->tcs[WAKE_TCS]; in rpmh_rsc_ctrlr_is_busy()
790 max = tcs->offset + tcs->num_tcs; in rpmh_rsc_ctrlr_is_busy()
[all …]
A Drpmh-internal.h129 struct tcs_group tcs[TCS_TYPE_NR]; member
/drivers/scsi/aic94xx/
A Daic94xx_tmf.c47 #define DECLARE_TCS(tcs) \ argument
86 DECLARE_TCS(tcs); \
95 ascb->uldd_task = &tcs; \
107 res = tcs.dl_opcode; \
309 tcs = ascb->uldd_task; in asd_tmf_tasklet_complete()
317 tcs->tag = ascb->tag; in asd_tmf_tasklet_complete()
395 DECLARE_TCS(tcs); in asd_abort_task()
462 tascb->tag = tcs.tag; in asd_abort_task()
480 res = tcs.tmf_state; in asd_abort_task()
564 DECLARE_TCS(tcs); in asd_initiate_ssp_tmf()
[all …]
/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_lib.c25 u8 tcs = adapter->hw_tcs; in ixgbe_cache_ring_dcb_sriov() local
28 if (tcs <= 1) in ixgbe_cache_ring_dcb_sriov()
61 if (fcoe->offset < tcs) in ixgbe_cache_ring_dcb_sriov()
334 u8 tcs = adapter->hw_tcs; in ixgbe_set_dcb_sriov_queues() local
337 if (tcs <= 1) in ixgbe_set_dcb_sriov_queues()
351 if (tcs > 4) { in ixgbe_set_dcb_sriov_queues()
406 } else if (tcs > 1) { in ixgbe_set_dcb_sriov_queues()
431 int tcs; in ixgbe_set_dcb_queues() local
434 tcs = adapter->hw_tcs; in ixgbe_set_dcb_queues()
437 if (tcs <= 1) in ixgbe_set_dcb_queues()
[all …]
A Dixgbe_main.c3998 u8 tcs = adapter->hw_tcs; in ixgbe_setup_mtqc() local
4011 if (tcs > 4) in ixgbe_setup_mtqc()
4013 else if (tcs > 1) in ixgbe_setup_mtqc()
4021 if (tcs > 4) { in ixgbe_setup_mtqc()
4023 } else if (tcs > 1) { in ixgbe_setup_mtqc()
4038 if (tcs) { in ixgbe_setup_mtqc()
4382 u8 tcs = adapter->hw_tcs; in ixgbe_setup_mrqc() local
4385 if (tcs > 4) in ixgbe_setup_mrqc()
4387 else if (tcs > 1) in ixgbe_setup_mrqc()
4401 if (tcs > 4) in ixgbe_setup_mrqc()
[all …]
A Dixgbe_sriov.c978 u8 tcs = adapter->hw_tcs; in ixgbe_set_vf_vlan_msg() local
980 if (adapter->vfinfo[vf].pf_vlan || tcs) { in ixgbe_set_vf_vlan_msg()
A Dixgbe_ethtool.c3344 u8 tcs = adapter->hw_tcs; in ixgbe_max_channels() local
3352 } else if (tcs > 1) { in ixgbe_max_channels()
3357 } else if (tcs > 4) { in ixgbe_max_channels()
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
A Dhw_atl2.c115 unsigned int tcs, q_per_tc; in hw_atl2_hw_queue_to_tc_map_set() local
124 tcs = 8; in hw_atl2_hw_queue_to_tc_map_set()
128 tcs = 4; in hw_atl2_hw_queue_to_tc_map_set()
135 for (tc = 0; tc != tcs; tc++) { in hw_atl2_hw_queue_to_tc_map_set()
177 tx_buff_size /= cfg->tcs; in hw_atl2_hw_qos_set()
178 rx_buff_size /= cfg->tcs; in hw_atl2_hw_qos_set()
179 for (tc = 0; tc < cfg->tcs; tc++) { in hw_atl2_hw_qos_set()
263 (BIT(nic_cfg->tcs) - 1); in hw_atl2_hw_init_tx_tc_rate_limit()
269 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl2_hw_init_tx_tc_rate_limit()
295 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl2_hw_init_tx_tc_rate_limit()
[all …]
/drivers/net/ethernet/aquantia/atlantic/
A Daq_nic.c81 if (cfg->tcs > 2) in aq_nic_cfg_update_num_vecs()
101 cfg->tcs = AQ_CFG_TCS_DEF; in aq_nic_cfg_start()
153 cfg->prio_tc_map[i] = cfg->tcs * i / 8; in aq_nic_cfg_start()
555 self->aq_vecs * cfg->tcs); in aq_nic_start()
560 self->aq_vecs * cfg->tcs); in aq_nic_start()
564 for (i = 0; i < cfg->tcs; i++) { in aq_nic_start()
1613 if (tcs == cfg->tcs || (tcs == 0 && !cfg->is_qos)) in aq_nic_setup_tc_mqprio()
1620 cfg->tcs = tcs; in aq_nic_setup_tc_mqprio()
1621 if (cfg->tcs == 0) in aq_nic_setup_tc_mqprio()
1622 cfg->tcs = 1; in aq_nic_setup_tc_mqprio()
[all …]
A Daq_nic.h73 u8 tcs; member
216 int aq_nic_setup_tc_mqprio(struct aq_nic_s *self, u32 tcs, u8 *prio_tc_map);
A Daq_filters.c175 if (fsp->ring_cookie > cfg->num_rss_queues * cfg->tcs) { in aq_check_approve_fvlan()
178 cfg->num_rss_queues * cfg->tcs - 1); in aq_check_approve_fvlan()
280 if (fsp->ring_cookie >= cfg->num_rss_queues * cfg->tcs) { in aq_rule_is_not_correct()
284 cfg->num_rss_queues * cfg->tcs - 1); in aq_rule_is_not_correct()
A Daq_vec.c135 for (i = 0; i < aq_nic_cfg->tcs; ++i) { in aq_vec_ring_alloc()
A Daq_ethtool.c190 (rx_stat_cnt + tx_stat_cnt) * cfg->vecs * cfg->tcs; in aq_ethtool_n_stats()
277 for (tc = 0; tc < cfg->tcs; tc++) { in aq_ethtool_get_strings()
/drivers/net/ethernet/broadcom/bnge/
A Dbnge_resc.c17 u16 tcs = bd->num_tc; in bnge_num_tx_to_cp() local
19 if (!tcs) in bnge_num_tx_to_cp()
20 tcs = 1; in bnge_num_tx_to_cp()
22 return tx / tcs; in bnge_num_tx_to_cp()
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
A Dhw_atl_b0.c172 tx_buff_size /= cfg->tcs; in hw_atl_b0_hw_qos_set()
173 rx_buff_size /= cfg->tcs; in hw_atl_b0_hw_qos_set()
174 for (tc = 0; tc < cfg->tcs; tc++) { in hw_atl_b0_hw_qos_set()
353 (BIT(nic_cfg->tcs) - 1); in hw_atl_b0_hw_init_tx_tc_rate_limit()
359 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl_b0_hw_init_tx_tc_rate_limit()
390 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl_b0_hw_init_tx_tc_rate_limit()
404 (nic_cfg->tcs - num_min_rated_tcs); in hw_atl_b0_hw_init_tx_tc_rate_limit()
438 for (tc = nic_cfg->tcs; tc != AQ_CFG_TCS_MAX; tc++) { in hw_atl_b0_hw_init_tx_tc_rate_limit()
/drivers/net/ethernet/intel/fm10k/
A Dfm10k_ethtool.c1098 u8 tcs = netdev_get_num_tc(dev); in fm10k_max_channels() local
1101 if (tcs > 1) in fm10k_max_channels()
1102 max_combined = BIT((fls(max_combined / tcs) - 1)); in fm10k_max_channels()
/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_ethtool.c890 int max_rx_rings, max_tx_rings, tcs; in bnxt_get_channels() local
902 tcs = bp->num_tc; in bnxt_get_channels()
903 tx_grps = max(tcs, 1); in bnxt_get_channels()
916 if (tcs > 1) in bnxt_get_channels()
917 max_tx_rings /= tcs; in bnxt_get_channels()
938 int req_tx_rings, req_rx_rings, tcs; in bnxt_set_channels() local
962 tcs = bp->num_tc; in bnxt_set_channels()
981 rc = bnxt_check_rings(bp, req_tx_rings, req_rx_rings, sh, tcs, tx_xdp); in bnxt_set_channels()
1007 if (tcs > 1) in bnxt_set_channels()
1008 bp->tx_nr_rings = bp->tx_nr_rings_per_tc * tcs + tx_xdp; in bnxt_set_channels()
A Dbnxt.c4159 if (!tcs) in bnxt_alloc_cp_rings()
4160 tcs = 1; in bnxt_alloc_cp_rings()
4194 cp_count += tcs; in bnxt_alloc_cp_rings()
11134 if (!tcs) in bnxt_num_tx_to_cp()
11135 tcs = 1; in bnxt_num_tx_to_cp()
11169 int tcs, i; in bnxt_setup_msix() local
11171 tcs = bp->num_tc; in bnxt_setup_msix()
11172 if (tcs) { in bnxt_setup_msix()
11430 if (tcs && (bp->tx_nr_rings_per_tc * tcs != in bnxt_reserve_rings()
14586 if (tcs) in bnxt_check_rings()
[all …]
A Dbnxt.h2955 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,

Completed in 138 milliseconds