| /linux/scripts/coccinelle/misc/ |
| H A D | array_size_dup.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 5 /// 1. An opencoded expression is used before array_size() to compute the same size 6 /// 2. An opencoded expression is used after array_size() to compute the same size 13 // Options: --no-includes --include-headers --no-loops 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 116 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) [all …]
|
| /linux/Documentation/arch/x86/ |
| H A D | topology.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 The architecture-agnostic topology definitions are in 12 Documentation/admin-guide/cputopology.rst. This file holds x86-specific 17 Needless to say, code should use the generic functions - this file is *only* 35 - packages 36 - cores 37 - threads 48 Package-related topology information in the kernel: 50 - topology_num_threads_per_package() 54 - topology_num_cores_per_package() [all …]
|
| /linux/Documentation/devicetree/bindings/misc/ |
| H A D | qcom,fastrpc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schema [all...] |
| /linux/tools/perf/pmu-events/arch/s390/cf_z16/ |
| H A D | pai_crypto.json | 3 "Unit": "PAI-CRYPTO", 10 "Unit": "PAI-CRYPTO", 14 "PublicDescription": "KM-DEA function ending with CC=0" 17 "Unit": "PAI-CRYPTO", 21 "PublicDescription": "KM-TDEA-128 function ending with CC=0" 24 "Unit": "PAI-CRYPTO", 28 "PublicDescription": "KM-TDEA-192 function ending with CC=0" 31 "Unit": "PAI-CRYPTO", 35 "PublicDescription": "KM-Encrypted-DEA function ending with CC=0" 38 "Unit": "PAI-CRYPTO", [all …]
|
| /linux/Documentation/gpu/ |
| H A D | drm-compute.rst | 2 Long running workloads and compute 5 Long running workloads (compute) are workloads that will not complete in 10 10 Some hardware may schedule compute jobs, and have no way to pre-empt them, or 14 This means that it differs from what is described in driver-api/dma-buf.rst. 16 As with normal compute jobs, dma-fence may not be used at all. In this case, 18 from the long compute job's address space on unbind immediately, not even 26 The first approach you will likely try is to pin all buffers used by compute. 34 older compute jobs to start a new one. 41 driver-allocated CPU memory would be accounted to the correct cgroup, and
|
| /linux/tools/perf/pmu-events/arch/s390/cf_z17/ |
| H A D | pai_crypto.json | 3 "Unit": "PAI-CRYPTO", 10 "Unit": "PAI-CRYPTO", 14 "PublicDescription": "KM-DEA function ending with CC=0" 17 "Unit": "PAI-CRYPTO", 21 "PublicDescription": "KM-TDEA-128 function ending with CC=0" 24 "Unit": "PAI-CRYPTO", 28 "PublicDescription": "KM-TDEA-192 function ending with CC=0" 31 "Unit": "PAI-CRYPTO", 35 "PublicDescription": "KM-Encrypted-DEA function ending with CC=0" 38 "Unit": "PAI-CRYPTO", [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt_ccs_mode.c | 1 // SPDX-License-Identifier: MIT 34 * For example, if there are four compute slices available, the in __xe_gt_apply_ccs_mode() 35 * assignment of compute slices to compute engines would be, in __xe_gt_apply_ccs_mode() 50 for (width = num_slices / num_engines; width; width--) { in __xe_gt_apply_ccs_mode() 55 if (hwe->class != XE_ENGINE_CLASS_COMPUTE) in __xe_gt_apply_ccs_mode() 58 if (hwe->logical_instance >= num_engines) in __xe_gt_apply_ccs_mode() 61 config |= BIT(hwe->instance) << XE_HW_ENGINE_CCS0; in __xe_gt_apply_ccs_mode() 68 mode |= CCS_MODE_CSLICE(cslice, hwe->instance); in __xe_gt_apply_ccs_mode() 79 xe_mmio_write32(>->mmio, CCS_MODE, mode); in __xe_gt_apply_ccs_mode() 87 if (!gt->ccs_mode || IS_SRIOV_VF(gt_to_xe(gt))) in xe_gt_apply_ccs_mode() [all …]
|
| H A D | xe_gt_types.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright © 2022-2023 Intel Corporation 57 * need to explicitly re-steer reads of registers of the other type. 59 * Only the replication types that may need additional non-default steering 80 * will always return a non-terminated value at instance (0, 0). We'll 87 * it's sufficient to keep the HW-default for the selector, or only 97 const struct xe_gt * : (const struct xe_tile *)((gt__)->tile), \ 98 struct xe_gt * : (gt__)->tile) 102 const struct xe_gt * : (const struct xe_device *)(gt_to_tile(gt__)->x [all...] |
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_log2.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES 13 /* Compute a */ 17 /* Compute a - 1 (aka all low bits set) */ 18 #define log2_to_max_int_t(type, a_lg2) ((type)(log2_to_int_t(type, a_lg2) - 1)) 20 /* Compute a / b */ 25 * Compute: 33 /* Compute a % b */ 39 * Compute: 40 * a % b == b - 1 [all …]
|
| /linux/drivers/iio/common/inv_sensors/ |
| H A D | inv_sensors_timestamp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 /* compute jitter, min and max following jitter in per mille */ 17 (((_val) * (1000 - (_jitter))) / 1000) 27 acc->values[acc->idx++] = val; in inv_update_acc() 28 if (acc->idx >= ARRAY_SIZE(acc->values)) in inv_update_acc() 29 acc->idx = 0; in inv_update_acc() 31 /* compute the mean of all stored values, use 0 as empty slot */ in inv_update_acc() 32 for (i = 0; i < ARRAY_SIZE(acc->values); ++i) { in inv_update_acc() 33 if (acc->values[i] == 0) in inv_update_acc() 35 sum += acc->values[i]; in inv_update_acc() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 /* +ve: Passed to listen() as-is. 35 * Most tests only have one on-going connection. 36 * -ve: It is changed to 0 before passing to listen(). 94 * open_netns() - Switch to specified network namespace by name. 106 * append_tid() - Append thread ID to the given string. in csum_fold() 113 * Returns -1 on errors, 0 otherwise in csum_partial() 142 iph->chec [all...] |
| /linux/Documentation/hwmon/ |
| H A D | fam15h_power.rst | 16 - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors 17 - BIOS and Kernel Developer's Guide (BKDG) For AMD Family 16h Processors 18 - AMD64 Architecture Programmer's Manual Volume 2: System Programming 23 ----------- 55 On multi-node processors the calculated value is for the entire 57 attributes only for internal node0 of a multi-node processor. 67 compute unit power accumulator sample period 76 the ratio of compute unit power accumulator sample period to the 80 max compute unit accumulated power which is indicated by 84 compute unit accumulated power which is indicated by [all …]
|
| /linux/lib/ |
| H A D | siphash.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2 /* Copyright (C) 2016-2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 4 * SipHash: a fast short-input PRF 7 * This implementation is specifically for SipHash2-4 for a secure PRF 8 * and HalfSipHash1-3/SipHash1-3 for an insecure PRF only suitable for 17 #include <asm/word-at-a-time.h> 28 v3 ^= key->key[1]; \ 29 v2 ^= key->key[0]; \ 30 v1 ^= key->key[1]; \ 31 v0 ^= key->key[0]; [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-diff.txt | 1 perf-diff(1) 5 ---- 6 perf-diff - Read perf.data files and display the differential profile 9 --- [all...] |
| /linux/Documentation/devicetree/bindings/arm/bcm/ |
| H A D | bcm2835.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Eric Anholt <eric@anholt.net> 11 - Stefan Wahren <wahrenst@gmx.net> 18 - description: BCM2711 based Boards 20 - enum: 21 - raspberrypi,400 22 - raspberrypi,4-compute-module 23 - raspberrypi,4-model-b [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-diff.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * builtin-diff.c 23 #include "util/time-utils.h" 27 #include "util/block-info.h" 33 #include <subcmd/parse-options.h> 113 COMPUTE_STREAM, /* After COMPUTE_MAX to avoid use current compute arrays */ 118 [COMPUTE_DELTA_ABS] = "delta-abs", 124 static int compute variable [all...] |
| /linux/lib/raid6/ |
| H A D | mktables.c | |
| /linux/arch/xtensa/lib/ |
| H A D | strncpy_user.S | 8 * Returns: -EFAULT if exception before terminator, N if the entire 60 bbsi.l a3, 0, .Lsrc1mod2 # if only 8-bit aligned 61 bbsi.l a3, 1, .Lsrc2mod4 # if only 16-bit aligned 62 .Lsrcaligned: # return here when src is word-aligned 74 addi a4, a4, -1 # decrement len 76 bbci.l a3, 1, .Lsrcaligned # if src is now word-aligned 80 /* 1-cycle interlock */ 84 addi a4, a4, -1 # decrement len 91 addi a4, a4, -1 # decrement len 94 sub a2, a11, a2 # compute strlen [all …]
|
| /linux/Documentation/accel/ |
| H A D | introduction.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 The Linux compute accelerators subsystem is designed to expose compute 8 accelerators in a common way to user-space and provide a common set of 11 These devices can be either stand-alone ASICs or IP blocks inside an SoC/GPU. 13 Machine-Learning (ML) and/or Deep-Learning (DL) computations, the accel layer 16 Typically, a compute accelerator will belong to one of the following 19 - Edge AI - doing inference at an edge device. It can be an embedded ASIC/FPGA, 23 - Inference data-center - single/multi user devices in a large server. This 24 type of device can be stand-alone or an IP inside a SoC or a GPU. It will 25 have on-board DRAM (to hold the DL topology), DMA engines and [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | dpll44xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * OMAP4-specific DPLL control functions 20 * can supported when using the DPLL low-power mode. Frequencies are 22 * Status, and Low-Power Operation Mode". 45 mask = clk->flags & CLOCK_CLKOUTX2 ? in omap4_dpllmx_allow_gatectrl() 49 v = ti_clk_ll_ops->clk_readl(&clk->clksel_reg); in omap4_dpllmx_allow_gatectrl() 52 ti_clk_ll_ops->clk_writel(v, &clk->clksel_reg); in omap4_dpllmx_allow_gatectrl() 63 mask = clk->flags & CLOCK_CLKOUTX2 ? in omap4_dpllmx_deny_gatectrl() 67 v = ti_clk_ll_ops->clk_readl(&clk->clksel_reg); in omap4_dpllmx_deny_gatectrl() 70 ti_clk_ll_ops->clk_writel(v, &clk->clksel_reg); in omap4_dpllmx_deny_gatectrl() [all …]
|
| /linux/Documentation/admin-guide/mm/ |
| H A D | numaperf.rst | 8 Some platforms may have multiple types of memory attached to a compute 17 CPUs, they may still be local to one or more compute nodes relative to 18 other nodes. The following diagram shows one such example of two compute 19 nodes with local memory and a memory only node for each of compute node:: 21 +------------------+ +------------------+ 22 | Compute Node 0 +-----+ Compute Node 1 | 24 +--------+---------+ +--------+---------+ 26 +--------+---------+ +--------+---------+ 28 +------------------+ +--------+---------+ 36 performance when accessing a given memory target. Each initiator-target [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | metafmt-vsp1-hgo.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _v4l2-meta-fmt-vsp1-hgo: 10 Renesas R-Car VSP1 1-D Histogram Data 16 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 21 computes the minimum, maximum and sum of all pixels as well as per-channel 24 The HGO can compute histograms independently per channel, on the maximum of the 29 - In *64 bins normal mode*, the HGO operates on the three channels independently 30 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are 32 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B) 33 channels to compute a single 64-bins histogram. Only the RGB image format is [all …]
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include "../../../util/intel-pt.h" 16 #include "../../../util/intel-bts.h" 20 #include "mem-events.h" 31 const char *graniterapids_cpuid = "GenuineIntel-6-A[DE]"; in x86__is_intel_graniterapids() 85 return -1; in num_chas() 90 /* Note, dent->d_typ in num_chas() [all...] |
| /linux/lib/crypto/x86/ |
| H A D | curve25519.h | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation 20 return xnx - (u64)1U; in eq_mask() 28 u64 x_sub_y = x - y; in gte_mask() 33 return x_xor_q_ - (u64)1U; in gte_mask() 36 /* Computes the addition of four-element f1 with value in f2 73 /* Compute the raw addition of f1 + f2 */ in fadd() 85 /* Step 1: Compute carry*38 */ in fadd() 114 /* Compute the raw subtraction of f1-f2 */ in fsub() 126 /* Step 1: Compute carry*38 */ in fsub() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | parse-metric.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "pmu-events/pmu-events.h" 26 while (v->event) { in find_value() 27 if (!strcmp(name, v->event)) in find_value() 28 return v->val; in find_value() 41 count = find_value(evsel->name, vals); in load_runtime_stat() 42 evsel->supported = true; in load_runtime_stat() 43 evsel->stats->aggr->counts.val = count; in load_runtime_stat() 44 evsel->stats->aggr->counts.ena = 1; in load_runtime_stat() 45 evsel->stats->aggr->counts.run = 1; in load_runtime_stat() [all …]
|