/linux/Documentation/devicetree/bindings/sound/ |
H A D | atmel,sama5d2-classd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/sound/atmel,sama5d2-classd.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nicolas Ferre <nicolas.ferre@microchip.com> 12 - Alexandre Belloni <alexandre.belloni@bootlin.com> 13 - Claudiu Beznea <claudiu.beznea@microchip.com> 22 - items: 23 - const: atmel,sama5d2-classd 24 - items: [all …]
|
/linux/arch/x86/kvm/mmu/ |
H A D | spte.h | 1 // SPDX-License-Identifier: GPL-2.0-only 22 * be restricted to using write-protection (for L2 when CPU dirty logging, i.e. 28 * is guaranteed to have A/D bits and write-protection is forced only for 29 * TDP with CPU dirty logging (PML). If NPT ever gains PML-like support, it 30 * must be restricted to 64-bit KVM. 40 #define SPTE_BASE_ADDR_MASK (physical_mask & ~(u64)(PAGE_SIZE-1)) 42 #define SPTE_BASE_ADDR_MASK (((1ULL << 52) - 1) & ~(u64)(PAGE_SIZE-1)) 64 * as not-present for access tracking purposes. We do not save the W bit as the 67 * must not overlap the A/D type mask. 78 * SPTE is write-protected. See is_writable_pte() for details. [all …]
|
/linux/Documentation/filesystems/ |
H A D | resctrl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 :Authors: - Fenghua Yu <fenghua.yu@intel.com> 10 - Tony Luck <tony.luck@intel.com> 11 - Vikas Shivappa <vikas.shivappa@intel.com> 38 # mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps][,debug]] /sys/fs/resctrl 57 pseudo-locking is a unique way of using cache control to "pin" or 59 "Cache Pseudo-Locking". 96 own settings for cache use which can over-ride 128 Corresponding region is pseudo-locked. No 131 Indicates if non-contiguous 1s value in CBM is supported. [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | ip_defrag.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <time.h> 63 if (ret == -1 && (errno == ETIMEDOUT || errno == EAGAIN)) in recv_validate_udp() 66 if (ret != -1) in recv_validate_udp() 73 if (ret == -1) in recv_validate_udp() 89 sum -= 0xffff; in raw_checksum() 95 sum -= 0xffff; in raw_checksum() 106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum() 122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum() 124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum() [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | cpusets.rst | 11 - Portions Copyright (c) 2004-2006 Silicon Graphics, Inc. 12 - Modified by Paul Jackson <pj@sgi.com> 13 - Modified by Christoph Lameter <cl@gentwo.org> 14 - Modified by Paul Menage <menage@google.com> 15 - Modified by Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> 41 ---------------------- 45 an on-line node that contains memory. 54 Documentation/admin-guide/cgroup-v1/cgroups.rst. 73 ---------------------------- 77 non-uniform access times (NUMA) presents additional challenges for [all …]
|
/linux/drivers/video/ |
H A D | aperture.c | 1 // SPDX-License-Identifier: MIT 20 * driver can be active at any given time. Many systems load a generic 21 * graphics drivers, such as EFI-GOP or VESA, early during the boot process. 23 * hardware-specific driver. To take over the device, the dedicated driver 25 * ownership of framebuffer memory and hand-over between drivers. 32 * .. code-block:: c 42 * return -ENODEV; 43 * base = mem->start; 61 * The given example reads the platform device's I/O-memory range from the 82 * .. code-block:: c [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_types.h | 1 /* SPDX-License-Identifier: MIT */ 53 * overlap in valid steering targets with 'subslice' style registers, we will 54 * need to explicitly re-steer reads of registers of the other type. 56 * Only the replication types that may need additional non-default steering 69 * will always return a non-terminated value at instance (0, 0). We'll 190 * @total: Total time this engine was busy. 192 * Accumulated time not counting the most recent block in cases 212 * Mask of the non fused CCS slices 250 * Should be taken before uncore->lock in cases where both are desired. 255 * Base of per-tile GTTMMADR where we can derive the MMIO and the GGTT. [all …]
|
/linux/arch/x86/boot/compressed/ |
H A D | kaslr.c | 1 // SPDX-License-Identifier: GPL-2.0 37 /* Simplified build-specific string for starting entropy. */ 49 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor() 78 * Store memory limit: MAXMEM on 64-bit and KERNEL_IMAGE_SIZE on 32-bit. 92 MEM_AVOID_MEMMAP_END = MEM_AVOID_MEMMAP_BEGIN + MAX_MEMMAP_REGIONS - 1, 101 if (one->start + one->size <= two->start) in mem_overlaps() 104 if (one->start >= two->start + two->size) in mem_overlaps() 124 return -EINVAL; in parse_memmap() 128 return -EINVAL; in parse_memmap() 133 return -EINVAL; in parse_memmap() [all …]
|
/linux/Documentation/admin-guide/mm/ |
H A D | numa_memory_policy.rst | 10 supported platforms with Non-Uniform Memory Access architectures since 2.4.?. 16 (``Documentation/admin-guide/cgroup-v1/cpusets.rst``) 19 programming interface that a NUMA-aware application can take advantage of. When 28 ------------------------ 41 not to overload the initial boot node with boot-time 45 this is an optional, per-task policy. When defined for a 61 In a multi-threaded task, task policies apply only to the thread 64 at the time a new task policy is installed retain their current 70 the policy at the time they were allocated. 98 mapping-- i.e., at Copy-On-Write. [all …]
|
/linux/net/netfilter/ |
H A D | xt_time.c | 6 * This is a module which is used for time matching 23 u_int8_t month; /* (1-12) */ 24 u_int8_t monthday; /* (1-31) */ 25 u_int8_t weekday; /* (1-7) */ 26 u_int8_t hour; /* (0-23) */ 27 u_int8_t minute; /* (0-59) */ 28 u_int8_t second; /* (0-59) */ 43 * Since time progresses forward, it is best to organize this array in reverse, 44 * to minimize lookup time. 51 /* 2039 - 2030 */ [all …]
|
/linux/drivers/firmware/tegra/ |
H A D | ivc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 47 * This structure is divided into two-cache aligned parts, the first is only 50 * lines, which is critical to performance and necessary in non-cache coherent 79 if (!ivc->peer) in tegra_ivc_invalidate() 82 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate() 88 if (!ivc->peer) in tegra_ivc_flush() 91 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_flush() 106 * Perform an over-full check to prevent denial of service attacks in tegra_ivc_empty() 109 * expected to check for full or over-full conditions. in tegra_ivc_empty() [all …]
|
/linux/include/linux/ |
H A D | string.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 * memdup_array_user - duplicate array from user space 37 return ERR_PTR(-EOVERFLOW); in memdup_array_user() 43 * vmemdup_array_user - duplicate array from user space 57 return ERR_PTR(-EOVERFLOW); in vmemdup_array_user() 92 * strscpy - Copy a C-string into a sized buffer 99 * buffers overlap. The destination @dst buffer is always NUL terminated, 100 * unless it's zero-sized. 110 * trailing %NUL) or -E2BIG if @size is 0 or the copy from @src was 124 memset(__dst + __wrote + 1, 0, __count - __wrote - 1); \ [all …]
|
/linux/fs/nilfs2/ |
H A D | gcinode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 12 * This file adds the cache of on-disk blocks to be moved in garbage 18 * time after they are copied to a new log. Dirty blocks made on the 19 * current generation and the blocks to be moved by GC never overlap 38 * nilfs_gccache_submit_read_data() - add data buffer and submit read request 39 * @inode - gc inode 40 * @blkoff - dummy offset treated as the key for the page cache 41 * @pbn - physical block number of the block 42 * @vbn - virtual block number of the block, 0 for non-virtual block [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | dev-raw-vbi.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _raw-vbi: 12 information is transmitted, allowing some time while the electron beam 64 time to permit Unix tool chains, programming a device and then reading 89 overlap, or when the driver supports multiple opens and another process 106 .. flat-table:: struct v4l2_vbi_format 107 :header-rows: 0 108 :stub-columns: 0 111 * - __u32 112 - ``sampling_rate`` [all …]
|
/linux/mm/ |
H A D | numa_memblks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 for (i = 0; i < ARRAY_SIZE(mi->blk); i++) in numa_nodemask_from_meminfo() 27 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() 28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo() 29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo() 33 * numa_reset_distance - Reset NUMA distance table 69 return -ENOMEM; in numa_alloc_distance() 85 * numa_set_distance - Set NUMA distance from one NUMA to another 99 * at the time of table creation or @distance doesn't make sense, the call 142 pr_warn("Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n", in numa_add_memblk_to() [all …]
|
/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | pseudo_lock.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Pseudo-locking support built on top of Cache Allocation Technology (CAT) 38 * resctrl_arch_get_prefetch_disable_bits - prefetch disable bits of supported 43 * pseudo-locking. This includes testing to ensure pseudo-locked regions 45 * as well as that these pseudo-locked regions can maintain their low cache 46 * miss rates under variety of load conditions for significant lengths of time. 48 * After a platform has been validated to support pseudo-locking its 98 * resctrl_arch_pseudo_lock_fn - Load kernel memory into cache 99 * @_plr: the pseudo-lock region descriptor 101 * This is the core pseudo-locking flow. [all …]
|
/linux/Documentation/networking/ |
H A D | nexthop-group-resilient.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Resilient Next-hop Groups 7 Resilient groups are a type of next-hop group that is aimed at minimizing 12 the legacy multipath next-hop group, which uses the hash-threshold 15 To select a next hop, hash-threshold algorithm first assigns a range of 22 +-------+-------+-------+-------+-------+ 24 +-------+-+-----+---+---+-----+-+-------+ 26 +---------+---------+---------+---------+ 29 under the hash-threshold algorithm. 32 and 4 in favor of 5. While there will usually be some overlap between the [all …]
|
/linux/arch/sh/lib/ |
H A D | memcpy-sh4.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Modified from memcpy.S and micro-optimised for SH4 16 * It is assumed that there is no overlap between src and dst. 17 * If there is an overlap, then the results are undefined. 21 ! GHIJ KLMN OPQR --> ...G HIJK LMNO PQR. 30 add #-1,r5 ! 79 EX 34 add #-4,r5 ! 50 EX 55 mov.l r3,@-r0 ! 30 LS 72 mov.l r3,@-r0 ! 30 LS 79 add #-6,r2 ! 50 EX [all …]
|
/linux/fs/erofs/ |
H A D | erofs_fs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ 3 * EROFS (Enhanced ROM File System) on-disk format definition 5 * Copyright (C) 2017-2018 HUAWEI, Inc. 35 ((EROFS_FEATURE_INCOMPAT_48BIT << 1) - 1) 49 /* erofs on-disk super block (currently 128 bytes) */ 52 __le32 checksum; /* crc32c to avoid unexpected on-disk overlap */ 60 __le64 inos; /* total valid ino # (== f_files - f_favail) */ 66 __u8 uuid[16]; /* 128-bit uuid for volume */ 83 __le32 build_time; /* seconds added to epoch for mkfs time */ 89 * EROFS inode datalayout (i_format in on-disk inode): [all …]
|
/linux/include/uapi/linux/ |
H A D | hdreg.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 17 #define IDE_DRIVE_TASK_INVALID -1 137 * 0x01->0x02 Reserved 141 * 0x04->0x07 Reserved 146 * 0x09->0x0F Reserved 151 * 0x10->0x1F Reserved 153 #define WIN_READ 0x20 /* 28-Bit */ 154 #define WIN_READ_ONCE 0x21 /* 28-Bit without retries */ 155 #define WIN_READ_LONG 0x22 /* 28-Bit */ 156 #define WIN_READ_LONG_ONCE 0x23 /* 28-Bit without retries */ [all …]
|
/linux/Documentation/userspace-api/ |
H A D | seccomp_filter.rst | 25 to time-of-check-time-of-use (TOCTOU) attacks that are common in system 65 call will return -1 and set errno to ``EINVAL``. 73 true, ``-EACCES`` will be returned. This requirement ensures that filter 79 time, but allow for further decreasing the attack surface during 82 The above call returns 0 on success and non-zero on error. 106 task without executing the system call. ``siginfo->si_call_addr`` 108 ``siginfo->si_syscall`` and ``siginfo->si_arch`` will indicate which 111 instruction). The return value register will contain an arch- 112 dependent value -- if resuming execution, set it to something 114 it with ``-ENOSYS`` could overwrite some useful information.) [all …]
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | hash_tlb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 27 #include <asm/pte-walk.h> 51 i = batch->index; in hpte_need_flush() 58 * must still exist (and thus the VMA not reused) at the time in hpte_need_flush() 65 addr &= ~((1UL << mmu_psize_defs[psize].shift) - 1); in hpte_need_flush() 90 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_need_flush() 103 if (!batch->active) { in hpte_need_flush() 119 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush() 120 batch->ssize != ssize)) { in hpte_need_flush() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-decoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2013-2014, Intel Corporation. 22 #include "intel-pt-insn-decoder.h" 23 #include "intel-pt-pk [all...] |
/linux/tools/memory-model/Documentation/ |
H A D | simple.txt | 2 memory-ordering lives simple, as is necessary for those whose domain 3 is complex. After all, there are bugs other than memory-ordering bugs, 4 and the time spent gaining memory-ordering knowledge is not available 5 for gaining domain knowledge. Furthermore Linux-kernel memory model 15 of MMIO-based device drivers will often need to use mb(), rmb(), and 22 Single-threaded code 25 In single-threaded code, there is no reordering, at least assuming 29 CPUs at the same time. One important exception is a function that makes 38 this lock at a given time, your code will be executed single-threaded. 56 surprisingly hard to correctly code production-quality lock acquisition [all …]
|
/linux/drivers/vfio/pci/ |
H A D | vfio_pci_config.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * which fields are 'virtualized' - special actions and translations to 48 [PCI_CAP_ID_SLOTID] = 0, /* bridge - don't care */ 50 [PCI_CAP_ID_CHSWP] = 0, /* cpci - not yet */ 54 [PCI_CAP_ID_DBG] = 0, /* debug - don't care */ 55 [PCI_CAP_ID_CCRC] = 0, /* cpci - not yet */ 56 [PCI_CAP_ID_SHPC] = 0, /* hotswap - not yet */ 57 [PCI_CAP_ID_SSVID] = 0, /* bridge - don't care */ 58 [PCI_CAP_ID_AGP3] = 0, /* AGP8x - not yet */ 67 * Lengths of PCIe/PCI-X Extended Config Capabilities [all …]
|