| /linux/include/linux/ |
| H A D | tpm_svsm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 * [1] "Secure VM Service Module for SEV-SNP Guests" 25 * struct svsm_vtpm_request - Generic request for single word command 28 * Defined by AMD SVSM spec [1] in section "8.2 SVSM_VTPM_CMD Call" - 40 * struct svsm_vtpm_response - Generic response 43 * Defined by AMD SVSM spec [1] in section "8.2 SVSM_VTPM_CMD Call" - 58 * struct svsm_vtpm_cmd_request - Structure for a TPM_SEND_COMMAND request 60 * @locality: The locality 64 * Defined by AMD SVSM spec [1] in section "8.2 SVSM_VTPM_CMD Call" - 69 * 0x004 1 Locality (must-be-0) [all …]
|
| H A D | workqueue.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * workqueue.h --- work queue handling for Linux. 24 #define work_data_bits(work) ((unsigned long *)(&(work)->data)) 52 * data contains off-queue information when !WORK_STRUCT_PWQ. 61 WORK_OFFQ_FLAG_BITS = WORK_OFFQ_FLAG_END - WORK_OFFQ_FLAG_SHIFT, 67 * When a work item is off queue, the high bits encode off-queue flags 72 WORK_OFFQ_LEFT = BITS_PER_LONG - WORK_OFFQ_POOL_SHIFT, 102 /* Convenience constants - of type 'unsigned long', not 'enum'! */ 104 #define WORK_OFFQ_FLAG_MASK (((1ul << WORK_OFFQ_FLAG_BITS) - 1) << WORK_OFFQ_FLAG_SHIFT) 105 #define WORK_OFFQ_DISABLE_MASK (((1ul << WORK_OFFQ_DISABLE_BITS) - 1) << WORK_OFFQ_DISABLE_SHIFT) [all …]
|
| /linux/Documentation/core-api/ |
| H A D | workqueue.rst | 33 thread system-wide. A single MT wq needed to keep around the same 60 * Use per-CPU unified worker pools shared by all wq to provide 85 worker-pools. 87 The cmwq design differentiates between the user-facing workqueues that 89 which manages worker-pools and processes the queued work items. 91 There are two worker-pools, one for normal work items and the other 93 worker-pools to serve work items queued on unbound workqueues - the 98 Each per-CPU BH worker pool contains only one pseudo worker which represents 106 things like CPU locality, concurrency limits, priority and more. To 110 When a work item is queued to a workqueue, the target worker-pool is [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | tpm_tis_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2014-2021 Nuvoton Technology corporation 4 * Copyright (C) 2019-2022 Infineon Technologies AG 14 #include <linux/crc-ccitt.h> 27 /* TIS-compatible register address to avoid clash with TPM_ACCESS (0x00) */ 78 * Table 51 "I2C-TPM Register Overview". 80 * For most addresses this can be done by simply stripping off the locality 86 * Locality information is ignored, since this driver assumes exclusive access 87 * to the TPM and always uses locality 0. 115 if (msg->flags & I2C_M_RD) in tpm_tis_i2c_retry_transfer_until_ack() [all …]
|
| H A D | tpm-chip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 44 if (!chip->ops->request_locality) in tpm_request_locality() 47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality() 51 chip->locality = rc; in tpm_request_locality() 59 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality() 62 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality() 64 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality() 66 chip->locality = -1; in tpm_relinquish_locality() 71 if (!chip->ops->cmd_ready) in tpm_cmd_ready() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | vtpm_proxy.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 24 * enum vtpm_proxy_flags - flags for the proxy TPM 32 * struct vtpm_proxy_new_dev - parameter structure for the 50 /* vendor specific commands to set locality */
|
| /linux/drivers/acpi/numa/ |
| H A D | hmat.c | 1 // SPDX-License-Identifier: GPL-2.0 27 #include <linux/memory-tiers.h> 95 if (initiator->processor_pxm == cpu_pxm) in find_mem_initiator() 105 if (target->memory_pxm == mem_pxm) in find_mem_target() 111 * hmat_get_extended_linear_cache_size - Retrieve the extended linear cache size 129 return -ENOENT; in hmat_get_extended_linear_cache_size() 131 list_for_each_entry(tcache, &target->caches, node) { in hmat_get_extended_linear_cache_size() 132 if (tcache->cache_attrs.address_mode != in hmat_get_extended_linear_cache_size() 136 res = &target->memregions; in hmat_get_extended_linear_cache_size() 140 *cache_size = tcache->cache_attrs.size; in hmat_get_extended_linear_cache_size() [all …]
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 18 #include <linux/backing-dev.h> 25 * - test ext4_ext_search_left() and ext4_ext_search_right() 26 * - search for metadata in few groups 29 * - normalization should take into account whether file is still open 30 * - discard preallocations if no free space left (policy?) 31 * - don't normalize tails 32 * - quota 33 * - reservation for superuser [all …]
|
| /linux/drivers/pci/ |
| H A D | tph.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/pci-acpi.h> 13 #include <linux/pci-tph.h> 17 /* System-wide TPH disabled */ 24 * Locality TPH Features"), as specified in the approved ECN for PCI Firmware 25 * Spec and available at https://members.pcisig.com/wg/PCI-SIG/document/15470. 27 * @vm_st_valid: 8-bit ST for volatile memory is valid 28 * @vm_xst_valid: 16-bit extended ST for volatile memory is valid 30 * @vm_st: 8-bit ST for volatile mem 31 * @vm_xst: 16-bit extended ST for volatile mem [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_alloc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. 38 struct xfs_perag *pag; /* per-ag struct for this agno */ 41 xfs_agblock_t agbno; /* allocation group-relative block # */ 102 * Allocate an extent anywhere in the specific AG given. If there is no 124 * Locality aware allocation will be attempted in the initial AG, but on failure 125 * non-localised attempts will be made. The AGs are constrained by previous 126 * allocations in the current transaction. Two passes will be made - the first 127 * non-blocking, the second blocking. 133 * Iterate from the AG indicated from args->fsbno through to the end of the [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 2005-2006 by Texas Instruments 7 * Copyright (C) 2006-2007 Nokia Corporation 32 /* Helper defines for struct musb->hwvers */ 51 /* NOTE: otg and peripheral-only state machines start at B_IDLE. 52 * OTG or host-only go to A_IDLE when ID is sensed. 54 #define is_peripheral_active(m) (!(m)->is_host) 55 #define is_host_active(m) ((m)->is_host) 99 { (_musb)->is_host = true; } 101 { (_musb)->is_host = false; } [all …]
|
| /linux/Documentation/core-api/real-time/ |
| H A D | hardware.rst | 1 .. SPDX-License-Identifier: GPL-2.0 18 ----------------------- 31 user space. Tools such as **lstopo** from the Portable Hardware Locality (hwloc) 32 project (https://www.open-mpi.org/projects/hwloc/) can visualize the hierarchy. 52 c2c tool can help identify cache-to-cache issues, where multiple CPU 56 -------------- 58 Real-time systems often need to access hardware directly to perform their work. 76 requirements of certain real-time use cases. 82 is not limited to PCIe; internal buses within a System-on-Chip (SoC) can also be 86 -------------- [all …]
|
| /linux/include/drm/intel/ |
| H A D | i915_hdcp_interface.h | 1 /* SPDX-License-Identifier: (GPL-2.0+) */ 3 * Copyright © 2017-2019 Intel Corporation 17 * enum hdcp_port_type - HDCP port implementation type defined by ME/GSC FW 19 * @HDCP_PORT_TYPE_INTEGRATED: In-Host HDCP2.x port 33 * enum hdcp_wired_protocol - HDCP adaptation used on the port 57 * enum hdcp_transcoder - ME/GSC Firmware defined index for transcoders 79 * struct hdcp_port_data - intel specific HDCP port data 88 * over re-Auth has to be triggered. 103 * struct i915_hdcp_ops- ops for HDCP2.2 services. 171 * struct i915_hdcp_arbiter - Used for communication between i915 [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | acpi_object_usage.rst | 16 - Required: DSDT, FADT, GTDT, MADT, MCFG, RSDP, SPCR, XSDT 18 - Recommended: BERT, EINJ, ERST, HEST, PCCT, SSDT 20 - Optional: AGDI, BGRT, CEDT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, 24 - Not supported: AEST, APMT, BOOT, DBGP, DMAR, ETDT, HPET, IVRS, LPIT, 41 This table describes a non-maskable event, that is used by the platform 68 Optional, not currently supported, with no real use-case for an 83 time as ARM-compatible hardware is available, and the specification 151 UEFI-based; if it is UEFI-based, this table may be supplied. When this 167 the hardware reduced profile, and only 64-bit address fields will 184 filled in properly - that the PSCI_COMPLIANT flag is set and that [all …]
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * This code is based on the uncore PMUs like arm-cci and arm-ccn. 24 #define HISI_MAX_PERIOD(nr) (GENMASK_ULL((nr) - 1, 0)) 36 return sysfs_emit(page, "config=0x%lx\n", (unsigned long)eattr->var); in hisi_event_sysfs_show() 48 return sysfs_emit(buf, "%d\n", hisi_pmu->on_cpu); in hisi_cpumask_sysfs_show() 59 return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(&hisi_pmu->associated_cpus)); in hisi_associated_cpus_sysfs_show() 80 return sysfs_emit(page, "0x%08x\n", hisi_pmu->identifier); in hisi_uncore_pmu_identifier_attr_show() 99 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group() 100 struct hisi_pmu *hisi_pmu = to_hisi_pmu(event->pmu); in hisi_validate_event_group() 109 if (leader->pmu != event->pmu) in hisi_validate_event_group() [all …]
|
| /linux/kernel/sched/ext/ |
| H A D | idle.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * BPF extensible scheduler class: Documentation/scheduler/sched-ext.rst 5 * Built-in idle CPU tracking policy. 17 /* Enable/disable built-in idle CPU selection policy */ 20 /* Enable/disable per-node idle cpumasks */ 41 * Global host-wide idle cpumasks (used when SCX_OPS_BUILTIN_IDLE_PER_NODE 47 * Per-node idle cpumasks. 52 * Local per-CP [all...] |
| H A D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * BPF extensible scheduler class: Documentation/scheduler/sched-ext.rst 17 * scx_add_event - Increase an event counter for 'name' by 'cnt' 25 this_cpu_add((sch)->pcpu->event_stats.name, (cnt)); \ 30 * __scx_add_event - Increase an event counter for 'name' by 'cnt' 38 __this_cpu_add((sch)->pcpu->event_stat [all...] |
| /linux/drivers/md/bcache/ |
| H A D | alloc.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * btree pointers - they must match for the pointer to be considered valid. 20 * for that write to complete before we use it - otherwise after a crash we 29 * free_inc isn't the only freelist - if it was, we'd often to sleep while 30 * priorities and gens were being written before we could allocate. c->free is a 34 * have nothing pointing into them - these we can reuse without waiting for 37 * them (because they were overwritten). That's the unused list - buckets on the 40 * It's also important to ensure that gens don't wrap around - with respect to 42 * difficult to do in practice, but we explicitly guard against it anyways - if 47 * bch_bucket_alloc() allocates a single bucket from a specific cache. [all …]
|
| /linux/Documentation/devicetree/bindings/riscv/ |
| H A D | extensions.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V ISA extensions 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 12 - Conor Dooley <conor@kernel.org> 15 RISC-V has a large number of extensions, some of which are "standard" 16 extensions, meaning they are ratified by RISC-V International, and others 30 Identifies the specific RISC-V instruction set architecture [all …]
|
| /linux/drivers/net/ethernet/via/ |
| H A D | via-velocity.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * File: via-velocity.h 10 * Author: Chuang Liang-Shing, AJ Jiang 21 #define VELOCITY_NAME "via-velocity" 30 #define OPTION_DEFAULT { [0 ... MAX_UNITS-1] = -1} 167 __le16 len; /* bits 0--13; bit 15 - owner */ 185 __le16 size; /* bits 0--14 - frame size, bit 15 - enable int. */ 194 __le16 len; /* bits 0--13 - size of frame, bit 15 - owner */ 200 u8 cmd; /* bits 0--1 - TCPLS, bits 4--7 - CMDZ */ 210 __le16 size; /* bits 0--13 - size, bit 15 - queue */ [all …]
|
| /linux/net/sunrpc/ |
| H A D | sched.c | 1 // SPDX-License-Identifier: GPL-2.0-only 54 * rpciod-related stuff 62 if (current->flags & PF_WQ_WORKER) in rpc_task_gfp_mask() 70 if (cmpxchg(&task->tk_rpc_status, 0, rpc_status) == 0) in rpc_task_set_rpc_status() 78 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout() 83 return timeout - now; in rpc_task_timeout() 91 * queue->lock and bh_disabled in order to avoid races within 97 if (list_empty(&task->u.tk_wait.timer_list)) in __rpc_disable_timer() 99 task->tk_timeout = 0; in __rpc_disable_timer() 100 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer() [all …]
|
| H A D | svc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * High-level RPC service routines 60 * only so that writing a previously-valid value still succeeds. 75 * sunrpc_get_pool_mode - get the current pool_mode for the host 112 m->to_pool = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays() 113 if (!m->to_pool) in svc_pool_map_alloc_arrays() 115 m->pool_to = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays() 116 if (!m->pool_to) in svc_pool_map_alloc_arrays() 122 kfree(m->to_pool); in svc_pool_map_alloc_arrays() 123 m->to_pool = NULL; in svc_pool_map_alloc_arrays() [all …]
|
| /linux/kernel/sched/ |
| H A D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 47 #include <linux/memory-tiers.h> 65 * The initial- and re-scaling of tunables is configurable 69 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 70 * SCHED_TUNABLESCALING_LOG - scaled logarithmically, *1+ilog(ncpus) 71 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 102 return -cp in arch_asym_cpu_priority() [all...] |
| /linux/Documentation/admin-guide/ |
| H A D | cgroup-v2.rst | 1 .. _cgroup-v2: 11 conventions of cgroup v2. It describes all userland-visible aspects 12 of cgroup including core and specific controller behaviors. All 14 v1 is available under :ref:`Documentation/admin-guide/cgroup-v1/index.rst <cgroup-v1>`. 22 1-1. Terminology 23 1-2. What is cgroup? 25 2-1. Mounting 26 2-2. Organizing Processes and Threads 27 2-2-1. Processes 28 2-2-2. Threads [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_rtalloc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 50 uint8_t *rsum_cache = args->rtg->rtg_rsum_cache; in xfs_rtany_summary() 57 high = min(high, rsum_cache[bbno] - 1); in xfs_rtany_summary() 59 *maxlog = -1; in xfs_rtany_summary() 67 for (log = high; log >= low; log--) { in xfs_rtany_summary() 86 *maxlog = -1; in xfs_rtany_summary() 108 for (log = oargs->mp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary() 109 for (bbno = oargs->mp->m_sb.sb_rbmblocks - 1; in xfs_rtcopy_summary() 111 bbno--) { in xfs_rtcopy_summary() [all …]
|