| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/qcom/ |
| D | qcom,rpmh-rsc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/soc/qcom/qcom,rpmh-rsc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 resources can be written to the Trigger Command Set (TCS) registers and 16 using a (addr, val) pair and triggered. Messages in the TCS are then sent in 25 A TCS may be triggered from Linux or triggered by the F/W after all the CPUs 26 have powered off to facilitate idle power saving. TCS could be classified as:: 27 ACTIVE - Triggered by Linux [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/qcom/ |
| D | rpmh-rsc.txt | 2 ------------ 6 can be written to the Trigger Command Set (TCS) registers and using a (addr, 7 val) pair and triggered. Messages in the TCS are then sent in sequence over an 16 A TCS may be triggered from Linux or triggered by the F/W after all the CPUs 17 have powered off to facilitate idle power saving. TCS could be classified as - 35 - compatible: 38 Definition: Should be "qcom,rpmh-rsc". 40 - reg: 42 Value type: <prop-encoded-array> 45 The tcs-offset specifies the start address of the [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/qcom/ |
| D | rpmh-rsc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 24 #include <soc/qcom/cmd-db.h> 25 #include <soc/qcom/tcs.h> 26 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 28 #include "rpmh-internal.h" 31 #include "trace-rpmh.h" 41 /* DRV TCS Configuration Information Register */ 48 /* Offsets for common TCS Registers, one bit per TCS */ 54 * Offsets for per TCS Registers. [all …]
|
| /kernel/linux/linux-6.6/drivers/soc/qcom/ |
| D | rpmh-rsc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved. 31 #include <soc/qcom/cmd-db.h> 32 #include <soc/qcom/tcs.h> 33 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 35 #include "rpmh-internal.h" 38 #include "trace-rpmh.h" 71 /* DRV TCS Configuration Information Register */ 77 /* Offsets for CONTROL TCS Registers */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| D | ice_dcb_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * ice_dcb_get_ena_tc - return bitmap of enabled TCs 10 * @dcbcfg: DCB config to evaluate for enabled TCs 43 if (vsi->tc_cfg.ena_tc & BIT(i)) in ice_is_pfc_causing_hung_q() 47 for (tc = 0; tc < num_tcs - 1; tc++) in ice_is_pfc_causing_hung_q() 48 if (ice_find_q_in_range(vsi->tc_cfg.tc_info[tc].qoffset, in ice_is_pfc_causing_hung_q() 49 vsi->tc_cfg.tc_info[tc + 1].qoffset, in ice_is_pfc_causing_hung_q() 56 up2tc = rd32(&pf->hw, PRTDCB_TUP2TC); in ice_is_pfc_causing_hung_q() 70 ref_prio_xoff[i] = pf->stats.priority_xoff_rx[i]; in ice_is_pfc_causing_hung_q() 76 if (pf->stats.priority_xoff_rx[i] > ref_prio_xoff[i]) in ice_is_pfc_causing_hung_q() [all …]
|
| D | ice_dcb_nl.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * ice_dcbnl_devreset - perform enough of a ifdown/ifup to sync DCBNL info 18 while (ice_is_reset_in_progress(pf->state)) in ice_dcbnl_devreset() 28 * ice_dcbnl_getets - retrieve local ETS configuration 38 dcbxcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_dcbnl_getets() 40 ets->willing = dcbxcfg->etscfg.willing; in ice_dcbnl_getets() 41 ets->ets_cap = dcbxcfg->etscfg.maxtcs; in ice_dcbnl_getets() 42 ets->cbs = dcbxcfg->etscfg.cbs; in ice_dcbnl_getets() 43 memcpy(ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_tx_bw)); in ice_dcbnl_getets() 44 memcpy(ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, sizeof(ets->tc_rx_bw)); in ice_dcbnl_getets() [all …]
|
| D | ice_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * @buf: pointer to the caller-supplied buffer to store the MIB block 33 return -EINVAL; in ice_aq_get_lldp_mib() 37 cmd->type = mib_type & ICE_AQ_LLDP_MIB_TYPE_M; in ice_aq_get_lldp_mib() 38 cmd->type |= (bridge_type << ICE_AQ_LLDP_BRID_TYPE_S) & in ice_aq_get_lldp_mib() 46 *local_len = le16_to_cpu(cmd->local_len); in ice_aq_get_lldp_mib() 48 *remote_len = le16_to_cpu(cmd->remote_len); in ice_aq_get_lldp_mib() 75 cmd->command |= ICE_AQ_LLDP_MIB_UPDATE_DIS; in ice_aq_cfg_lldp_mib_change() 77 cmd->command |= FIELD_PREP(ICE_AQ_LLDP_MIB_PENDING_M, in ice_aq_cfg_lldp_mib_change() 106 cmd->command |= ICE_AQ_LLDP_AGENT_SHUTDOWN; in ice_aq_stop_lldp() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
| D | ice_dcb_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * ice_vsi_cfg_netdev_tc - Setup the netdev TC configuration 14 struct net_device *netdev = vsi->netdev; in ice_vsi_cfg_netdev_tc() 15 struct ice_pf *pf = vsi->back; in ice_vsi_cfg_netdev_tc() 28 if (netdev_set_num_tc(netdev, vsi->tc_cfg.numtc)) in ice_vsi_cfg_netdev_tc() 31 dcbcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_cfg_netdev_tc() 34 if (vsi->tc_cfg.ena_tc & BIT(i)) in ice_vsi_cfg_netdev_tc() 36 vsi->tc_cfg.tc_info[i].netdev_tc, in ice_vsi_cfg_netdev_tc() 37 vsi->tc_cfg.tc_info[i].qcount_tx, in ice_vsi_cfg_netdev_tc() 38 vsi->tc_cfg.tc_info[i].qoffset); in ice_vsi_cfg_netdev_tc() [all …]
|
| D | ice_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * @buf: pointer to the caller-supplied buffer to store the MIB block 37 cmd->type = mib_type & ICE_AQ_LLDP_MIB_TYPE_M; in ice_aq_get_lldp_mib() 38 cmd->type |= (bridge_type << ICE_AQ_LLDP_BRID_TYPE_S) & in ice_aq_get_lldp_mib() 46 *local_len = le16_to_cpu(cmd->local_len); in ice_aq_get_lldp_mib() 48 *remote_len = le16_to_cpu(cmd->remote_len); in ice_aq_get_lldp_mib() 75 cmd->command |= ICE_AQ_LLDP_MIB_UPDATE_DIS; in ice_aq_cfg_lldp_mib_change() 103 cmd->command |= ICE_AQ_LLDP_AGENT_SHUTDOWN; in ice_aq_stop_lldp() 106 cmd->command |= ICE_AQ_LLDP_AGENT_PERSIST_DIS; in ice_aq_stop_lldp() 129 cmd->command = ICE_AQ_LLDP_AGENT_START; in ice_aq_start_lldp() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_ptp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 21 /* Index must to be 8 (8 TCs) or 16 (4 TCs). 63 struct hwtstamp_config *config); 65 struct hwtstamp_config *config); 128 return -EOPNOTSUPP; in aq_ptp_xmit() 133 struct hwtstamp_config *config) {} in aq_ptp_hwtstamp_config_get() argument 135 struct hwtstamp_config *config) in aq_ptp_hwtstamp_config_set() argument
|
| D | aq_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 49 aq_nic->ndev = ndev; in aq_ndev_alloc() 50 ndev->netdev_ops = &aq_ndev_ops; in aq_ndev_alloc() 51 ndev->ethtool_ops = &aq_ethtool_ops; in aq_ndev_alloc() 102 if (unlikely(aq_utils_obj_test(&aq_nic->flags, AQ_NIC_PTP_DPATH_UP))) { in aq_ndev_start_xmit() 110 if (unlikely(skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) || in aq_ndev_start_xmit() 111 unlikely((ip_hdr(skb)->version == 4) && in aq_ndev_start_xmit() 112 (ip_hdr(skb)->protocol == IPPROTO_UDP) && in aq_ndev_start_xmit() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_ptp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 21 /* Index must to be 8 (8 TCs) or 16 (4 TCs). 63 struct hwtstamp_config *config); 65 struct hwtstamp_config *config); 128 return -EOPNOTSUPP; in aq_ptp_xmit() 133 struct hwtstamp_config *config) {} in aq_ptp_hwtstamp_config_get() argument 135 struct hwtstamp_config *config) in aq_ptp_hwtstamp_config_set() argument
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| D | hw_atl2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 96 struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; in hw_atl2_hw_reset() 105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 114 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set() 115 unsigned int tcs, q_per_tc; in hw_atl2_hw_queue_to_tc_map_set() local 122 switch (cfg->tc_mode) { in hw_atl2_hw_queue_to_tc_map_set() 124 tcs = 8; in hw_atl2_hw_queue_to_tc_map_set() 128 tcs = 4; in hw_atl2_hw_queue_to_tc_map_set() 132 return -EINVAL; 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| D | hw_atl2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 96 struct hw_atl2_priv *priv = self->priv; in hw_atl2_hw_reset() 105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 114 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set() 115 unsigned int tcs, q_per_tc; in hw_atl2_hw_queue_to_tc_map_set() local 122 switch (cfg->tc_mode) { in hw_atl2_hw_queue_to_tc_map_set() 124 tcs = 8; in hw_atl2_hw_queue_to_tc_map_set() 128 tcs = 4; in hw_atl2_hw_queue_to_tc_map_set() 132 return -EINVAL; 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_dcb_82599.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 10 * ixgbe_dcb_config_rx_arbiter_82599 - Config Rx Data arbiter 70 * ixgbe_dcb_config_tx_desc_arbiter_82599 - Config Tx Desc. arbiter 88 /* Clear the per-Tx queue credits; we use per-TC instead */ in ixgbe_dcb_config_tx_desc_arbiter_82599() 121 * ixgbe_dcb_config_tx_data_arbiter_82599 - Config Tx Data arbiter 183 * ixgbe_dcb_config_pfc_82599 - Configure priority flow control 204 * So clear all TCs and only enable those that should be in ixgbe_dcb_config_pfc_82599() 209 if (hw->mac.type >= ixgbe_mac_X540) in ixgbe_dcb_config_pfc_82599() 235 reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; in ixgbe_dcb_config_pfc_82599() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_dcb_82599.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 10 * ixgbe_dcb_config_rx_arbiter_82599 - Config Rx Data arbiter 70 * ixgbe_dcb_config_tx_desc_arbiter_82599 - Config Tx Desc. arbiter 88 /* Clear the per-Tx queue credits; we use per-TC instead */ in ixgbe_dcb_config_tx_desc_arbiter_82599() 121 * ixgbe_dcb_config_tx_data_arbiter_82599 - Config Tx Data arbiter 183 * ixgbe_dcb_config_pfc_82599 - Configure priority flow control 204 * So clear all TCs and only enable those that should be in ixgbe_dcb_config_pfc_82599() 209 if (hw->mac.type >= ixgbe_mac_X540) in ixgbe_dcb_config_pfc_82599() 235 reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; in ixgbe_dcb_config_pfc_82599() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
| D | i40e_dcb_nl.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2021 Intel Corporation. */ 13 * i40e_get_pfc_delay - retrieve PFC Link Delay 29 * i40e_dcbnl_ieee_getets - retrieve local IEEE ETS configuration 41 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets() 42 return -EINVAL; in i40e_dcbnl_ieee_getets() 44 dcbxcfg = &pf->hw.local_dcbx_config; in i40e_dcbnl_ieee_getets() 45 ets->willing = dcbxcfg->etscfg.willing; in i40e_dcbnl_ieee_getets() 46 ets->ets_cap = I40E_MAX_TRAFFIC_CLASS; in i40e_dcbnl_ieee_getets() 47 ets->cbs = dcbxcfg->etscfg.cbs; in i40e_dcbnl_ieee_getets() [all …]
|
| /kernel/linux/linux-6.6/arch/mips/kernel/ |
| D | vpe-mt.c | 22 /* The number of TCs and VPEs physically available on the core */ 37 pr_warn("VPE loader: only Master VPE's are able to config MT\n"); in vpe_run() 40 return -1; in vpe_run() 46 if (list_empty(&v->tc)) { in vpe_run() 52 v->minor); in vpe_run() 54 return -ENOEXEC; in vpe_run() 57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run() 62 settc(t->index); in vpe_run() 72 t->index); in vpe_run() 74 return -ENOEXEC; in vpe_run() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/kernel/ |
| D | vpe-mt.c | 22 /* The number of TCs and VPEs physically available on the core */ 37 pr_warn("VPE loader: only Master VPE's are able to config MT\n"); in vpe_run() 40 return -1; in vpe_run() 46 if (list_empty(&v->tc)) { in vpe_run() 52 v->minor); in vpe_run() 54 return -ENOEXEC; in vpe_run() 57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run() 62 settc(t->index); in vpe_run() 72 t->index); in vpe_run() 74 return -ENOEXEC; in vpe_run() [all …]
|
| /kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/intel/ |
| D | i40e.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999-2018 Intel Corporation. 13 - Overview 14 - Identifying Your Adapter 15 - Intel(R) Ethernet Flow Director 16 - Additional Configurations 17 - Known Issues 18 - Support 47 ---------------------- 49 …intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-m… [all …]
|
| /kernel/linux/linux-6.6/Documentation/networking/device_drivers/ethernet/intel/ |
| D | i40e.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999-2018 Intel Corporation. 13 - Overview 14 - Identifying Your Adapter 15 - Intel(R) Ethernet Flow Director 16 - Additional Configurations 17 - Known Issues 18 - Support 47 ---------------------- 49 …intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-m… [all …]
|
| /kernel/linux/linux-6.6/drivers/regulator/ |
| D | fan53555.c | 1 // SPDX-License-Identifier: GPL-2.0 158 if (di->sleep_vol_cache == uV) in fan53555_set_suspend_voltage() 163 ret = regmap_update_bits(rdev->regmap, di->sleep_reg, in fan53555_set_suspend_voltage() 164 di->desc.vsel_mask, ret); in fan53555_set_suspend_voltage() 169 di->sleep_vol_cache = uV; in fan53555_set_suspend_voltage() 178 return regmap_update_bits(rdev->regmap, di->sleep_en_reg, in fan53555_set_suspend_enable() 186 return regmap_update_bits(rdev->regmap, di->sleep_en_reg, in fan53555_set_suspend_disable() 196 regmap_update_bits(rdev->regmap, di->mode_reg, in fan53555_set_mode() 197 di->mode_mask, di->mode_mask); in fan53555_set_mode() 200 regmap_update_bits(rdev->regmap, di->vol_reg, di->mode_mask, 0); in fan53555_set_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| D | hw_atl_b0.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 154 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_qos_set() 160 if (cfg->is_ptp) { in hw_atl_b0_hw_qos_set() 161 tx_buff_size -= HW_ATL_B0_PTP_TXBUF_SIZE; in hw_atl_b0_hw_qos_set() 162 rx_buff_size -= HW_ATL_B0_PTP_RXBUF_SIZE; in hw_atl_b0_hw_qos_set() 172 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| D | hw_atl_b0.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 154 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl_b0_hw_qos_set() 160 if (cfg->is_ptp) { in hw_atl_b0_hw_qos_set() 161 tx_buff_size -= HW_ATL_B0_PTP_TXBUF_SIZE; in hw_atl_b0_hw_qos_set() 162 rx_buff_size -= HW_ATL_B0_PTP_RXBUF_SIZE; in hw_atl_b0_hw_qos_set() 172 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
| D | qed_init_fw_funcs.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 35 0x100) - 1 : 0) 73 /* RL increment value - rate is specified in mbps */ 96 #define QM_VP_RL_BYPASS_THRESH_SPEED (QM_VP_RL_UPPER_BOUND(10000) - 1) 110 (ext_voq) * (PBF_REG_YCMD_QS_NUM_LINES_VOQ1_RT_OFFSET - \ 115 (ext_voq) * (PBF_REG_BTB_GUARANTEED_VOQ1_RT_OFFSET - \ 122 ((((pbf_cmd_lines) - 4) * 2) | QM_LINE_CRD_REG_SIGN_BIT) 129 /* Headroom per-port */ [all …]
|