Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/soc/qcom/
Drpmh-rsc.c227 struct tcs_group *tcs = &drv->tcs[type]; in tcs_invalidate() local
230 if (bitmap_empty(tcs->slots, MAX_TCS_SLOTS)) in tcs_invalidate()
233 for (m = tcs->offset; m < tcs->offset + tcs->num_tcs; m++) { in tcs_invalidate()
237 bitmap_zero(tcs->slots, MAX_TCS_SLOTS); in tcs_invalidate()
268 struct tcs_group *tcs; in get_tcs_for_msg() local
291 tcs = &drv->tcs[type]; in get_tcs_for_msg()
292 if (msg->state == RPMH_ACTIVE_ONLY_STATE && !tcs->num_tcs) in get_tcs_for_msg()
293 tcs = &drv->tcs[WAKE_TCS]; in get_tcs_for_msg()
295 return tcs; in get_tcs_for_msg()
317 struct tcs_group *tcs; in get_req_from_tcs() local
[all …]
Drpmh-internal.h121 struct tcs_group tcs[TCS_TYPE_NR]; member
/Linux-v5.10/drivers/scsi/aic94xx/
Daic94xx_tmf.c47 #define DECLARE_TCS(tcs) \ argument
48 struct tasklet_completion_status tcs = { \
59 struct tasklet_completion_status *tcs = ascb->uldd_task; in asd_clear_nexus_tasklet_complete() local
66 tcs->dl_opcode = dl->opcode; in asd_clear_nexus_tasklet_complete()
74 struct tasklet_completion_status *tcs = ascb->uldd_task; in asd_clear_nexus_timedout() local
77 tcs->dl_opcode = TMF_RESP_FUNC_FAILED; in asd_clear_nexus_timedout()
86 DECLARE_TCS(tcs); \
95 ascb->uldd_task = &tcs; \
107 res = tcs.dl_opcode; \
248 struct tasklet_completion_status *tcs = ascb->uldd_task; in asd_tmf_timedout() local
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
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()
39 if ((reg_idx & ~vmdq->mask) >= tcs) { in ixgbe_cache_ring_dcb_sriov()
50 if ((reg_idx & ~vmdq->mask) >= tcs) in ixgbe_cache_ring_dcb_sriov()
61 if (fcoe->offset < tcs) in ixgbe_cache_ring_dcb_sriov()
329 u8 tcs = adapter->hw_tcs; in ixgbe_set_dcb_sriov_queues() local
332 if (tcs <= 1) in ixgbe_set_dcb_sriov_queues()
340 vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); in ixgbe_set_dcb_sriov_queues()
346 if (tcs > 4) { in ixgbe_set_dcb_sriov_queues()
378 adapter->num_rx_queues_per_pool = tcs; in ixgbe_set_dcb_sriov_queues()
[all …]
Dixgbe_main.c3564 u8 tcs = adapter->hw_tcs; in ixgbe_setup_mtqc() local
3577 if (tcs > 4) in ixgbe_setup_mtqc()
3579 else if (tcs > 1) in ixgbe_setup_mtqc()
3587 if (tcs > 4) { in ixgbe_setup_mtqc()
3589 } else if (tcs > 1) { in ixgbe_setup_mtqc()
3604 if (tcs) { in ixgbe_setup_mtqc()
3941 u8 tcs = adapter->hw_tcs; in ixgbe_setup_mrqc() local
3944 if (tcs > 4) in ixgbe_setup_mrqc()
3946 else if (tcs > 1) in ixgbe_setup_mrqc()
3960 if (tcs > 4) in ixgbe_setup_mrqc()
[all …]
Dixgbe_sriov.c947 u8 tcs = adapter->hw_tcs; in ixgbe_set_vf_vlan_msg() local
949 if (adapter->vfinfo[vf].pf_vlan || tcs) { in ixgbe_set_vf_vlan_msg()
Dixgbe_ethtool.c3191 u8 tcs = adapter->hw_tcs; in ixgbe_max_channels() local
3199 } else if (tcs > 1) { in ixgbe_max_channels()
3204 } else if (tcs > 4) { in ixgbe_max_channels()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c101 unsigned int tcs, q_per_tc; in hw_atl2_hw_queue_to_tc_map_set() local
110 tcs = 8; in hw_atl2_hw_queue_to_tc_map_set()
114 tcs = 4; in hw_atl2_hw_queue_to_tc_map_set()
121 for (tc = 0; tc != tcs; tc++) { in hw_atl2_hw_queue_to_tc_map_set()
163 tx_buff_size /= cfg->tcs; in hw_atl2_hw_qos_set()
164 rx_buff_size /= cfg->tcs; in hw_atl2_hw_qos_set()
165 for (tc = 0; tc < cfg->tcs; tc++) { in hw_atl2_hw_qos_set()
249 (BIT(nic_cfg->tcs) - 1); in hw_atl2_hw_init_tx_tc_rate_limit()
255 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl2_hw_init_tx_tc_rate_limit()
281 for (tc = 0; tc != nic_cfg->tcs; tc++) { in hw_atl2_hw_init_tx_tc_rate_limit()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/soc/qcom/
Drpmh-rsc.txt45 The tcs-offset specifies the start address of the
52 "drv-0", "drv-1", "drv-2" etc and "tcs-offset". The
66 - qcom,tcs-config:
109 qcom,tcs-offset = <0xd00>;
111 qcom,tcs-config = <ACTIVE_TCS 2>,
131 qcom,tcs-offset = <0x1c00>;
133 qcom,tcs-config = <ACTIVE_TCS 0>,
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
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()
546 self->aq_vecs * cfg->tcs); in aq_nic_start()
551 self->aq_vecs * cfg->tcs); in aq_nic_start()
555 for (i = 0; i < cfg->tcs; i++) { in aq_nic_start()
918 for (tc = 0U; tc < self->aq_nic_cfg.tcs; tc++) { in aq_nic_get_stats()
1450 int aq_nic_setup_tc_mqprio(struct aq_nic_s *self, u32 tcs, u8 *prio_tc_map) in aq_nic_setup_tc_mqprio() argument
1461 if (tcs == cfg->tcs || (tcs == 0 && !cfg->is_qos)) in aq_nic_setup_tc_mqprio()
1468 cfg->tcs = tcs; in aq_nic_setup_tc_mqprio()
[all …]
Daq_nic.h69 u8 tcs; member
207 int aq_nic_setup_tc_mqprio(struct aq_nic_s *self, u32 tcs, u8 *prio_tc_map);
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()
Daq_vec.c141 for (i = 0; i < aq_nic_cfg->tcs; ++i) { in aq_vec_ring_alloc()
Daq_ethtool.c178 (rx_stat_cnt + tx_stat_cnt) * cfg->vecs * cfg->tcs; in aq_ethtool_n_stats()
265 for (tc = 0; tc < cfg->tcs; tc++) { in aq_ethtool_get_strings()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
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()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c804 int max_rx_rings, max_tx_rings, tcs; in bnxt_get_channels() local
816 tcs = netdev_get_num_tc(dev); in bnxt_get_channels()
817 tx_grps = max(tcs, 1); in bnxt_get_channels()
830 if (tcs > 1) in bnxt_get_channels()
831 max_tx_rings /= tcs; in bnxt_get_channels()
852 int req_tx_rings, req_rx_rings, tcs; in bnxt_set_channels() local
875 tcs = netdev_get_num_tc(dev); in bnxt_set_channels()
886 rc = bnxt_check_rings(bp, req_tx_rings, req_rx_rings, sh, tcs, tx_xdp); in bnxt_set_channels()
924 if (tcs > 1) in bnxt_set_channels()
925 bp->tx_nr_rings = bp->tx_nr_rings_per_tc * tcs + tx_xdp; in bnxt_set_channels()
Dbnxt.c8388 int tcs, i; in bnxt_setup_msix() local
8390 tcs = netdev_get_num_tc(dev); in bnxt_setup_msix()
8391 if (tcs) { in bnxt_setup_msix()
8394 for (i = 0; i < tcs; i++) { in bnxt_setup_msix()
8642 int tcs = netdev_get_num_tc(bp->dev); in bnxt_reserve_rings() local
8665 if (tcs && (bp->tx_nr_rings_per_tc * tcs != bp->tx_nr_rings)) { in bnxt_reserve_rings()
11090 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs, in bnxt_check_rings() argument
11098 if (tcs) in bnxt_check_rings()
11099 tx_sets = tcs; in bnxt_check_rings()
Dbnxt.h2194 int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,
/Linux-v5.10/Documentation/networking/device_drivers/ethernet/intel/
Diavf.rst158 Example: Sets up two tcs, tc0 and tc1, with 16 queues each and max tx rate set
167 map: priority mapping for up to 16 priorities to tcs (e.g. map 0 0 0 0 1 1 1 1
172 number of queues for all tcs is 64 or number of cores, whichever is lower.)
Di40e.rst667 Example: Sets up two tcs, tc0 and tc1, with 16 queues each and max tx rate set
676 map: priority mapping for up to 16 priorities to tcs (e.g. map 0 0 0 0 1 1 1 1
681 number of queues for all tcs is 64 or number of cores, whichever is lower.)
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c1102 u8 tcs = netdev_get_num_tc(dev); in fm10k_max_channels() local
1105 if (tcs > 1) in fm10k_max_channels()
1106 max_combined = BIT((fls(max_combined / tcs) - 1)); in fm10k_max_channels()
/Linux-v5.10/arch/arm64/boot/dts/qcom/
Dsm8150.dtsi1114 qcom,tcs-offset = <0xd00>;
1116 qcom,tcs-config = <ACTIVE_TCS 2>,
Dsm8250.dtsi2282 qcom,tcs-offset = <0xd00>;
2284 qcom,tcs-config = <ACTIVE_TCS 2>, <SLEEP_TCS 3>,
Dsc7180.dtsi3262 qcom,tcs-offset = <0xd00>;
3264 qcom,tcs-config = <ACTIVE_TCS 2>,
Dsdm845.dtsi4398 qcom,tcs-offset = <0xd00>;
4400 qcom,tcs-config = <ACTIVE_TCS 2>,