/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A 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 …]
|
/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. 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 35 * Start: grab drv->lock, set req, set tcs_in_use, drop drv->lock, [all …]
|
/linux/tools/testing/selftests/sgx/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2016-20 Intel Corporation. */ 30 * instructions (eg. ENCLU[EACCEPT] and ENCLU[EMODPE]) holds meta-data 49 Elf64_Phdr *phdrtab = addr + ehdr->e_phoff; in vdso_get_dyntab() 52 for (i = 0; i < ehdr->e_phnum; i++) in vdso_get_dyntab() 74 symtab->elf_symtab = vdso_get_dyn(addr, dyntab, DT_SYMTAB); in vdso_get_symtab() 75 if (!symtab->elf_symtab) in vdso_get_symtab() 78 symtab->elf_symstrtab = vdso_get_dyn(addr, dyntab, DT_STRTAB); in vdso_get_symtab() 79 if (!symtab->elf_symstrtab) in vdso_get_symtab() 82 symtab->elf_hashtab = vdso_get_dyn(addr, dyntab, DT_HASH); in vdso_get_symtab() [all …]
|
H A D | load.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2016-20 Intel Corporation. */ 26 if (encl->encl_base) in encl_delete() 27 munmap((void *)encl->encl_base, encl->encl_size); in encl_delete() 29 if (encl->bin) in encl_delete() 30 munmap(encl->bin, encl->bin_size); in encl_delete() 32 if (encl->fd) in encl_delete() 33 close(encl->fd); in encl_delete() 35 if (encl->segment_tbl) { in encl_delete() 36 heap_seg = &encl->segment_tbl[encl->nr_segments - 1]; in encl_delete() [all …]
|
/linux/arch/x86/include/uapi/asm/ |
H A D | sgx.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright(c) 2016-20 Intel Corporation. 12 * enum sgx_page_flags - page control flags 40 * struct sgx_enclave_create - parameter structure for the 49 * struct sgx_enclave_add_pages - parameter structure for the 52 * @offset: starting page offset 60 __u64 offset; member 68 * struct sgx_enclave_init - parameter structure for the 77 * struct sgx_enclave_provision - parameter structure for the 86 * struct sgx_enclave_restrict_permissions - parameters for ioctl [all …]
|
/linux/arch/x86/include/asm/ |
H A D | sgx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright(c) 2016-20 Intel Corporation. 49 * SGX_ENCLS_FAULT_FLAG - flag signifying an ENCLS return code is a trapnr 57 * convert all faults to -EFAULT. 67 * enum sgx_return_code - The return code type for ENCLS, ENCLU and ENCLV 87 /* The modulus size for 3072-bit RSA keys. */ 91 * enum sgx_miscselect - additional information to an SSA frame 108 * enum sgx_attributes - the attributes field in &struct sgx_secs 111 * %SGX_ATTR_MODE64BIT: Tell that this a 64-bit enclave. 150 * struct sgx_secs - SGX Enclave Control Structure (SECS) [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/intel/ |
H A D | iavf.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 2013-2018 Intel Corporation. 13 - Overview 14 - Identifying Your Adapter 15 - Additional Configurations 16 - Known Issues/Troubleshooting 17 - Support 30 The guest OS loading the iavf driver must support MSI-X interrupts. 53 --------------------- 58 # dmesg -n 8 [all …]
|
/linux/arch/x86/kernel/cpu/sgx/ |
H A D | ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2016-20 Intel Corporation. */ 28 if (!(encl->page_cnt % SGX_VA_SLOT_COUNT)) { in sgx_encl_grow() 31 return ERR_PTR(-ENOMEM); in sgx_encl_grow() 33 va_page->epc_page = sgx_alloc_va_page(reclaim); in sgx_encl_grow() 34 if (IS_ERR(va_page->epc_page)) { in sgx_encl_grow() 35 err = ERR_CAST(va_page->epc_page); in sgx_encl_grow() 40 WARN_ON_ONCE(encl->page_cnt % SGX_VA_SLOT_COUNT); in sgx_encl_grow() 42 encl->page_cnt++; in sgx_encl_grow() 48 encl->page_cnt--; in sgx_encl_shrink() [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_nic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 58 rss_params = &cfg->aq_rss; in aq_nic_rss_init() 60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init() 61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init() 62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init() 64 for (i = rss_params->indirection_table_size; i--;) in aq_nic_rss_init() 65 rss_params->indirection_table[i] = i & (num_rss_queues - 1); in aq_nic_rss_init() [all …]
|
H A D | aq_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 55 cmd->base.speed = netif_carrier_ok(ndev) ? in aq_ethtool_get_link_ksettings() 190 (rx_stat_cnt + tx_stat_cnt) * cfg->vecs * cfg->tcs; in aq_ethtool_n_stats() 198 if (nic->macsec_cfg) { in aq_ethtool_n_stats() 230 struct pci_dev *pdev = to_pci_dev(ndev->dev.parent); in aq_ethtool_get_drvinfo() 238 strlcat(drvinfo->driver, AQ_CFG_DRV_NAME, sizeof(drvinfo->driver)); in aq_ethtool_get_drvinfo() 240 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in aq_ethtool_get_drvinfo() 244 strscpy(drvinfo->bus_info, pdev ? pci_name(pdev) : "", in aq_ethtool_get_drvinfo() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A 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 …]
|
H A 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 |= FIELD_PREP(ICE_AQ_LLDP_BRID_TYPE_M, bridge_type); in ice_aq_get_lldp_mib() 45 *local_len = le16_to_cpu(cmd->local_len); in ice_aq_get_lldp_mib() 47 *remote_len = le16_to_cpu(cmd->remote_len); in ice_aq_get_lldp_mib() 74 cmd->command |= ICE_AQ_LLDP_MIB_UPDATE_DIS; in ice_aq_cfg_lldp_mib_change() 76 cmd->command |= FIELD_PREP(ICE_AQ_LLDP_MIB_PENDING_M, in ice_aq_cfg_lldp_mib_change() 105 cmd->command |= ICE_AQ_LLDP_AGENT_SHUTDOWN; in ice_aq_stop_lldp() [all …]
|
H A 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 …]
|
H A D | ice_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * ice_vsi_type_str - maps VSI type enum to string equivalents 38 * ice_vsi_ctrl_all_rx_rings - Start or stop a VSI's Rx rings 55 ice_flush(&vsi->back->hw); in ice_vsi_ctrl_all_rx_rings() 67 * ice_vsi_alloc_arrays - Allocate queue and vector pointer arrays for the VSI 75 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() 79 if (vsi->type == ICE_VSI_CHNL) in ice_vsi_alloc_arrays() 83 vsi->tx_rings = devm_kcalloc(dev, vsi->alloc_txq, in ice_vsi_alloc_arrays() 84 sizeof(*vsi->tx_rings), GFP_KERNEL); in ice_vsi_alloc_arrays() 85 if (!vsi->tx_rings) in ice_vsi_alloc_arrays() [all …]
|
/linux/net/sched/ |
H A D | sch_mqprio_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 for (i = 0; i < qopt->num_tc; i++) { in mqprio_validate_queue_counts() 27 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_validate_queue_counts() 29 if (!qopt->count[i]) { in mqprio_validate_queue_counts() 32 return -EINVAL; in mqprio_validate_queue_counts() 38 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_validate_queue_counts() 39 last > dev->real_num_tx_queues) { in mqprio_validate_queue_counts() 42 qopt->count[i], qopt->offset[i], in mqprio_validate_queue_counts() 43 i, dev->real_num_tx_queues); in mqprio_validate_queue_counts() 44 return -EINVAL; in mqprio_validate_queue_counts() [all …]
|
/linux/arch/x86/entry/vdso/ |
H A D | vsgx.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 35 .cfi_rel_offset %rbx, -8 56 /* Load TCS and AEP */ 85 /* The out-of-line code runs with the pre-leave stack frame. */ 89 mov $(-EINVAL), %eax 109 /* Save the untrusted RSP offset in %rbx (non-volatile register). */ 114 * Align stack per x86_64 ABI. Note, %rsp needs to be 16-byte aligned 117 and $-0x10, %rsp 134 /* Undo the post-exit %rsp adjustment. */ 139 * else re-execute ENCLU with the positive return value interpreted as
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A 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-2021 Marvell International Ltd. 36 0x100) - 1 : 0) 53 #define VOQS_BIT_MASK (BIT(MAX_NUM_VOQS) - 1) 79 #define QM_VP_WFQ_BYPASS_THRESH (QM_VP_WFQ_MIN_INC_VAL - 100) 98 /* RL increment value - rate is specified in mbps */ 133 (ext_voq) * (PBF_REG_YCMD_QS_NUM_LINES_VOQ1_RT_OFFSET - \ 138 (ext_voq) * (PBF_REG_BTB_GUARANTEED_VOQ1_RT_OFFSET - \ 145 ((((pbf_cmd_lines) - 4) * 2) | QM_LINE_CRD_REG_SIGN_BIT) [all …]
|
H A D | qed.h | 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. 94 ((sizeof(type_name) + (u32)(1 << ((p_hwfn)->cdev->cache_shift)) - 1) & \ 95 ~((1 << (p_hwfn->cdev->cache_shift)) - 1)) 97 #define for_each_hwfn(cdev, i) for (i = 0; i < (cdev)->num_hwfns; i++) 268 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \ 269 (dev)->hw_info.personality == QED_PCI_ETH_IWARP || \ 270 (dev)->hw_info.personality == QED_PCI_ETH_RDMA) 272 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \ [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2014-2016 Broadcom Corporation 4 * Copyright (c) 2016-2017 Broadcom Limited 51 return bp->msg_enable; in bnxt_get_msglevel() 58 bp->msg_enable = value; in bnxt_set_msglevel() 72 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce() 74 hw_coal = &bp->rx_coal; in bnxt_get_coalesce() 75 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce() 76 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 77 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() [all …]
|
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/intel/i40e/ |
H A D | i40e_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2021 Intel Corporation. */ 31 static const char i40e_copyright[] = "Copyright (c) 2013 - 2019 Intel Corporation."; 57 /* i40e_pci_tbl - PCI Device ID Table 97 static int debug = -1; 116 if (is_unicast_ether_addr(f->macaddr) || is_link_local_ether_addr(f->macaddr)) in netdev_hw_addr_refcnt() 117 ha_list = &netdev->uc; in netdev_hw_addr_refcnt() 119 ha_list = &netdev->mc; in netdev_hw_addr_refcnt() 122 if (ether_addr_equal(ha->addr, f->macaddr)) { in netdev_hw_addr_refcnt() 123 ha->refcount += delta; in netdev_hw_addr_refcnt() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpni.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 2 /* Copyright 2013-2016 Freescale Semiconductor Inc. 20 * DPNI_MAX_TC - Maximum number of traffic classes 24 * DPNI_MAX_DPBP - Maximum number of buffer pools per DPNI 29 * DPNI_ALL_TCS - All traffic classes considered; see dpni_set_queue() 31 #define DPNI_ALL_TCS (u8)(-1) 33 * DPNI_ALL_TC_FLOWS - All flows within traffic class considered; see 36 #define DPNI_ALL_TC_FLOWS (u16)(-1) 38 * DPNI_NEW_FLOW_ID - Generate new flow ID; see dpni_set_queue() 40 #define DPNI_NEW_FLOW_ID (u16)(-1) [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 28 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_alloc_vf_macvlans() 33 INIT_LIST_HEAD(&adapter->vf_mvs.l); in ixgbe_alloc_vf_macvlans() 35 num_vf_macvlans = hw->mac.num_rar_entries - in ixgbe_alloc_vf_macvlans() 44 mv_list[i].vf = -1; in ixgbe_alloc_vf_macvlans() 46 list_add(&mv_list[i].l, &adapter->vf_mvs.l); in ixgbe_alloc_vf_macvlans() 48 adapter->mv_list = mv_list; in ixgbe_alloc_vf_macvlans() 55 struct ixgbe_hw *hw = &adapter->hw; in __ixgbe_enable_sriov() 58 if (adapter->xdp_prog) { in __ixgbe_enable_sriov() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 74 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_ROCE_B) 77 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_DCB_B) 111 test_bit(HNAE3_DEV_SUPPORT_FD_B, (ae_dev)->caps) 114 test_bit(HNAE3_DEV_SUPPORT_GRO_B, (ae_dev)->caps) 117 test_bit(HNAE3_DEV_SUPPORT_FEC_B, (hdev)->ae_dev->caps) 120 test_bit(HNAE3_DEV_SUPPORT_UDP_GSO_B, (hdev)->ae_dev->caps) 123 test_bit(HNAE3_DEV_SUPPORT_QB_B, (hdev)->ae_dev->caps) 126 test_bit(HNAE3_DEV_SUPPORT_FD_FORWARD_TC_B, (hdev)->ae_dev->caps) [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 …]
|