| /linux/drivers/soc/qcom/ |
| H A D | rpmh-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 11 #include <linux/wait.h> 12 #include <soc/qcom/tcs.h> 23 * struct tcs_group: group of Trigger Command Sets (TCS) to send state requests 27 * @type: Type of the TCS in this group - active, sleep, wake. 29 * @offset: Start of the TCS group relative to the TCSes in the RSC. 31 * @ncpt: Number of commands in each TCS. 32 * @req: Requests that are sent from the TCS; only used for ACTIVE_ONLY 33 * transfers (could be on a wake/sleep TCS if we are borrowing for [all …]
|
| H A D | rpmh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 19 #include <linux/wait.h> 23 #include "rpmh-internal.h" 59 * struct batch_cache_req - An entry in our batch catch 74 struct rsc_drv *drv = dev_get_drvdata(dev->parent); in get_rpmh_ctrlr() 76 return &drv->client; in get_rpmh_ctrlr() 83 struct completion *compl = rpm_msg->completion; in rpmh_tx_done() 84 bool free = rpm_msg->needs_free; in rpmh_tx_done() 101 list_for_each_entry(p, &ctrlr->cache, list) { in __find_req() [all …]
|
| /linux/Documentation/devicetree/bindings/interconnect/ |
| H A D | qcom,bcm-voter.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interconnect/qcom,bcm-voter.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm BCM-Voter Interconnect 10 - Georgi Djakov <georgi.djakov@linaro.org> 22 - qcom,bcm-voter 24 qcom,tcs-wait: 26 Optional mask of which TCSs (Triggered Command Sets) wait for completion 27 upon triggering. If not specified, then the AMC and WAKE sets wait for [all …]
|
| /linux/drivers/interconnect/qcom/ |
| H A D | bcm-voter.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. 7 #include <linux/interconnect-provider.h> 14 #include <soc/qcom/tcs.h> 16 #include "bcm-voter.h" 17 #include "icc-rpmh.h" 23 * struct bcm_voter - Bus Clock Manager voter 30 * @tcs_wait: mask for which buckets require TCS completion 47 return bcm_a->aux_data.vcd - bcm_b->aux_data.vcd; in cmp_vcd() 61 /* BCMs with enable_mask use one-hot-encoding for on/off signaling */ [all …]
|
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_tmf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 /* ---------- Internal enqueue ---------- */ 24 ascb->tasklet_complete = tasklet_complete; in asd_enqueue_internal() 25 ascb->uldd_timer = 1; in asd_enqueue_internal() 27 ascb->timer.function = timed_out; in asd_enqueue_internal() 28 ascb->timer.expires = jiffies + AIC94XX_SCB_TIMEOUT; in asd_enqueue_internal() 30 add_timer(&ascb->timer); in asd_enqueue_internal() 32 res = asd_post_ascb_list(ascb->ha, ascb, 1); in asd_enqueue_internal() 34 timer_delete(&ascb->timer); in asd_enqueue_internal() 38 /* ---------- CLEAR NEXUS ---------- */ [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 9 * ixgbe_cache_ring_dcb_sriov - Descriptor ring to register mapping for SR-IOV 12 * Cache the descriptor ring offsets for SR-IOV to the assigned rings. It 20 struct ixgbe_ring_feature *fcoe = &adapter->ring_feature[RING_F_FCOE]; in ixgbe_cache_ring_dcb_sriov() 22 struct ixgbe_ring_feature *vmdq = &adapter->ring_feature[RING_F_VMDQ]; in ixgbe_cache_ring_dcb_sriov() 25 u8 tcs = adapter->hw_tcs; in ixgbe_cache_ring_dcb_sriov() local 28 if (tcs <= 1) in ixgbe_cache_ring_dcb_sriov() 32 if (!(adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)) in ixgbe_cache_ring_dcb_sriov() 35 /* start at VMDq register offset for SR-IOV enabled setups */ in ixgbe_cache_ring_dcb_sriov() [all …]
|
| H A D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 26 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 31 * than the 10ms recommended by the pci-e spec. To address this we need to 40 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 72 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() 77 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; in ixgbe_get_invariants_82598() 78 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; in ixgbe_get_invariants_82598() 79 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; in ixgbe_get_invariants_82598() 80 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE; in ixgbe_get_invariants_82598() [all …]
|
| H A D | ixgbe_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 66 "Copyright (c) 1999-2016 Intel Corporation."; 82 /* ixgbe_pci_tbl - PCI Device ID Table 162 …"Maximum number of virtual functions to allocate per physical function - default is zero and maxim… 168 "Allow unsupported and untested SFP+ modules on 82599-based adapters"); 171 static int debug = -1; 193 return dev && (dev->netdev_ops == &ixgbe_netdev_ops); in netif_is_ixgbe() 202 parent_bus = adapter->pdev->bus->parent; in ixgbe_read_pci_cfg_word_parent() 204 return -1; in ixgbe_read_pci_cfg_word_parent() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | rtlx-mt.c | 12 #include <linux/wait.h> 75 return -ENODEV; in rtlx_module_init() 79 pr_warn("No TCs reserved for AP/SP, not initializing RTLX.\n" in rtlx_module_init() 82 return -ENODEV; in rtlx_module_init() 91 /* initialise the wait queues */ in rtlx_module_init() 101 while (i--) in rtlx_module_init() 117 pr_err("APRP RTLX init on non-vectored-interrupt processor\n"); in rtlx_module_init() 118 err = -ENODEV; in rtlx_module_init()
|
| H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 #include <asm/r4k-timer.h> 35 #include <asm/mips-cps.h> 47 /* Number of TCs (or siblings in Intel speak) per CPU core */ 51 /* representing the TCs (or siblings in Intel speak) of each logical CPU */ 55 /* representing the core map of multi-core chips of each logical CPU */ 144 /* Re-calculate the mask */ in calculate_cpu_foreign_map() 365 mp_ops->init_secondary(); in start_secondary() 407 * irq will be enabled in ->smp_finish(), enabling it too early in start_secondary() 411 mp_ops->smp_finish(); in start_secondary() [all …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | devlink_rate_tc_bw.py | 2 # SPDX-License-Identifier: GPL-2.0 8 This test suite verifies the functionality of devlink-rate traffic class (TC) 14 ---------------- 15 - Creates 1 VF 16 - Establishes a bridge connecting the VF representor and the uplink representor 17 - Sets up 2 VLAN interfaces on the VF with different VLAN IDs (101, 102) 18 - Configures different traffic classes (TC3 and TC4) for each VLAN 21 ---------- 23 - Verifies that without TC mapping, bandwidth is NOT distributed according to 25 - This test should fail if bandwidth matches the 80/20 split without TC [all …]
|
| /linux/drivers/scsi/isci/ |
| H A D | task.c | 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 68 * isci_task_refuse() - complete the request to the upper layer driver in 84 dev_dbg(&ihost->pdev->dev, "%s: task = %p, response=%d, status=%d\n", in isci_task_refuse() 87 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_refuse() 89 task->task_status.resp = response; in isci_task_refuse() 90 task->task_status.stat = status; in isci_task_refuse() 93 task->task_state_flags |= SAS_TASK_STATE_DONE; in isci_task_refuse() 94 task->task_state_flags &= ~SAS_TASK_STATE_PENDING; in isci_task_refuse() [all …]
|
| H A D | host.c | 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 93 * The number of milliseconds to wait while a given phy is consuming power 100 * NORMALIZE_PUT_POINTER() - 110 * NORMALIZE_EVENT_POINTER() - 122 * NORMALIZE_GET_POINTER() - 131 * NORMALIZE_GET_POINTER_CYCLE_BIT() - 137 ((SMU_CQGR_CYCLE_BIT & (x)) << (31 - SMU_COMPLETION_QUEUE_GET_CYCLE_BIT_SHIFT)) 140 * COMPLETION_QUEUE_CYCLE_BIT() - [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2021 Intel Corporation. */ 32 static const char i40e_copyright[] = "Copyright (c) 2013 - 2019 Intel Corporation."; 58 /* i40e_pci_tbl - PCI Device ID Table 98 static int debug = -1; 118 if (is_unicast_ether_addr(f->macaddr) || is_link_local_ether_addr(f->macaddr)) in netdev_hw_addr_refcnt() 119 ha_list = &netdev->uc; in netdev_hw_addr_refcnt() 121 ha_list = &netdev->mc; in netdev_hw_addr_refcnt() 124 if (ether_addr_equal(ha->addr, f->macaddr)) { in netdev_hw_addr_refcnt() 125 ha->refcount += delta; in netdev_hw_addr_refcnt() [all …]
|
| H A D | i40e_virtchnl_pf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 25 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast() 26 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() 29 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 30 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast() 32 if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states) && in i40e_vc_vf_broadcast() 33 !test_bit(I40E_VF_STATE_ACTIVE, &vf->vf_states)) in i40e_vc_vf_broadcast() 36 /* Ignore return value on purpose - a given VF may fail, but in i40e_vc_vf_broadcast() 88 u8 link_status = ls->link_info & I40E_AQ_LINK_UP; in i40e_set_vf_link_state() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | marvell_nand.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author: Miquel RAYNAL <miquel.raynal@free-electrons.com> 17 * The ECC layouts are depicted in details in Marvell AN-379, but here 28 * +-------------------------------------------------------------+ 30 * +-------------------------------------------------------------+ 39 * +----------------------------------------- 41 * +----------------------------------------- 43 * ------------------------------------------- 45 * ------------------------------------------- 47 * --------------------------------------------+ [all …]
|
| H A D | stm32_fmc2_nand.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/dma-mapping.h> 295 struct stm32_fmc2_nfc *nfc = to_stm32_nfc(chip->controller); in stm32_fmc2_nfc_timings_init() 297 struct stm32_fmc2_timings *timings = &nand->timings; in stm32_fmc2_nfc_timings_init() 301 regmap_update_bits(nfc->regmap, FMC2_PCR, in stm32_fmc2_nfc_timings_init() 303 FIELD_PREP(FMC2_PCR_TCLR, timings->tclr) | in stm32_fmc2_nfc_timings_init() 304 FIELD_PREP(FMC2_PCR_TAR, timings->tar)); in stm32_fmc2_nfc_timings_init() 307 pmem = FIELD_PREP(FMC2_PMEM_MEMSET, timings->tset_mem); in stm32_fmc2_nfc_timings_init() 308 pmem |= FIELD_PREP(FMC2_PMEM_MEMWAIT, timings->twait); in stm32_fmc2_nfc_timings_init() 309 pmem |= FIELD_PREP(FMC2_PMEM_MEMHOLD, timings->thold_mem); in stm32_fmc2_nfc_timings_init() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_device.c | 1 // SPDX-License-Identifier: MIT 10 #include <linux/fault-inject.h> 83 int ret = -ENOMEM; in xe_file_open() 96 xef->drm = file; in xe_file_open() 97 xef->client = client; in xe_file_open() 98 xef->xe = xe; in xe_file_open() 100 mutex_init(&xef->vm.lock); in xe_file_open() 101 xa_init_flags(&xef->vm.xa, XA_FLAGS_ALLOC1); in xe_file_open() 103 mutex_init(&xef->exec_queue.lock); in xe_file_open() 104 xa_init_flags(&xef->exec_queue.xa, XA_FLAGS_ALLOC1); in xe_file_open() [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-rpmh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. 6 #include <linux/clk-provider.h> 13 #include <soc/qcom/cmd-db.h> 15 #include <soc/qcom/tcs.h> 17 #include <dt-bindings/clock/qcom,rpmh.h> 23 * struct bcm_db - Auxiliary data pertaining to each Bus Clock Manager(BCM) 37 * struct clk_rpmh - individual rpmh clock data structure 38 * @hw: handle between common and hardware-specific interfaces 142 return (c->last_sent_aggr_state & BIT(state)) in has_state_changed() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #include <linux/dma-mapping.h> 22 #include <linux/wait.h> 89 #define ICE_MAX_NUM_DESC_BY_MAC(hw) ((hw)->mac_type == ICE_MAC_E830 ? \ 125 #define ICE_MAX_MTU (ICE_AQ_SET_MAC_FRAME_SIZE_MAX - ICE_ETH_PKT_HDR_PAD) 133 #define ICE_TX_DESC(R, i) (&(((struct ice_tx_desc *)((R)->desc))[i])) 134 #define ICE_RX_DESC(R, i) (&(((union ice_32b_rx_flex_desc *)((R)->desc))[i])) 135 #define ICE_TX_CTX_DESC(R, i) (&(((struct ice_tx_ctx_desc *)((R)->desc))[i])) 136 #define ICE_TX_FDIRDESC(R, i) (&(((struct ice_fltr_desc *)((R)->desc))[i])) 162 for ((i) = 0; (i) < (pf)->num_alloc_vsi; (i)++) [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_ethtool.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. 176 "Coupled-Function", 276 if (txq->is_xdp) in qede_get_strings_stats_txq() 281 ethtool_sprintf(buf, "%d_%d: %s", txq->index, txq->cos, in qede_get_strings_stats_txq() 291 ethtool_sprintf(buf, "%d: %s", rxq->rxq_id, in qede_get_strings_stats_rxq() 309 fp = &edev->fp_array[i]; in qede_get_strings_stats() 311 if (fp->type & QEDE_FASTPATH_RX) in qede_get_strings_stats() 312 qede_get_strings_stats_rxq(edev, fp->rxq, &buf); in qede_get_strings_stats() [all …]
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | a6xx_gmu.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. */ 11 #include <soc/qcom/cmd-db.h> 12 #include <soc/qcom/tcs.h> 24 struct adreno_gpu *adreno_gpu = &a6xx_gpu->base; in a6xx_gmu_fault() 25 struct msm_gpu *gpu = &adreno_gpu->base; in a6xx_gmu_fault() 28 gmu->hung = true; in a6xx_gmu_fault() 31 timer_delete(&gpu->hangcheck_timer); in a6xx_gmu_fault() 34 kthread_queue_work(gpu->worker, &gpu->recover_work); in a6xx_gmu_fault() 46 dev_err_ratelimited(gmu->dev, "GMU watchdog expired\n"); in a6xx_gmu_irq() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2014-2016 Broadcom Corporation 4 * Copyright (c) 2016-2019 Broadcom Limited 25 #include <linux/dma-mapping.h> 60 #include <linux/pci-tph.h> 95 [BCM57301] = { "Broadcom BCM57301 NetXtreme-C 10Gb Ethernet" }, 96 [BCM57302] = { "Broadcom BCM57302 NetXtreme-C 10Gb/25Gb Ethernet" }, 97 [BCM57304] = { "Broadcom BCM57304 NetXtreme-C 10Gb/25Gb/40Gb/50Gb Ethernet" }, 98 [BCM57417_NPAR] = { "Broadcom BCM57417 NetXtreme-E Ethernet Partition" }, 100 [BCM57311] = { "Broadcom BCM57311 NetXtreme-C 10Gb Ethernet" }, [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_main.c | 2 * Copyright (c) 2015-2016, Mellanox Technologies. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 88 /* Our HW-GRO implementation relies on "KSM Mkey" for in mlx5e_hw_gro_supported() 128 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier() 137 if (up == netif_carrier_ok(priv->netdev)) in mlx5e_update_carrier() 138 netif_carrier_event(priv->netdev); in mlx5e_update_carrier() 140 netdev_info(priv->netdev, "Link up\n"); in mlx5e_update_carrier() 141 netif_carrier_on(priv->netdev); in mlx5e_update_carrier() 143 netdev_info(priv->netdev, "Link down\n"); in mlx5e_update_carrier() [all …]
|
| /linux/drivers/mtd/nand/raw/atmel/ |
| H A D | nand-controller.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 23 * Derived from Das U-Boot source code 24 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 38 * - atmel_nand_: all generic structures/functions 39 * - atmel_smc_nand_: all structures/functions specific to the SMC interface 41 * - atmel_hsmc_nand_: all structures/functions specific to the HSMC interface 43 * - atmel_nfc_: all structures/functions used to manipulate the NFC sub-block 45 * - <soc>_nand_: all SoC specific structures/functions 49 #include <linux/dma-mapping.h> [all …]
|