/linux/Documentation/admin-guide/mm/ |
H A D | pagemap.rst | 12 physical frame each virtual page is mapped to. It contains one 64-bit 16 * Bits 0-54 page frame number (PFN) if present 17 * Bits 0-4 swap type if swapped 18 * Bits 5-54 swap offset if swapped 19 * Bit 55 pte is soft-dirty (see 20 Documentation/admin-guide/mm/soft-dirty.rst) 22 * Bit 57 pte is uffd-wp write-protected (since 5.13) (see 23 Documentation/admin-guide/mm/userfaultfd.rst) 24 * Bits 58-60 zero 25 * Bit 61 page is file-page or shared-anon (since 3.5) [all …]
|
H A D | concepts.rst | 7 systems from MMU-less microcontrollers to supercomputers. The memory 21 the amount of memory that can be installed. The physical memory is not 80 improves TLB hit-rate and thus improves overall system performance. 87 Documentation/admin-guide/mm/hugetlbpage.rst. 94 name. See Documentation/admin-guide/mm/transhuge.rst for more details 107 devices for DMA, ZONE_HIGHMEM will contain memory that is not 111 The actual layout of the memory zones is hardware dependent as not all 118 Many multi-processor machines are NUMA - Non-Uniform Memory Access - 126 Documentation/admin-guide/mm/numa_memory_policy.rst. 144 is not backed by a filesystem. Such mappings are implicitly created [all …]
|
/linux/sound/firewire/dice/ |
H A D | dice-interface.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * block read transactions with at least quadlet-aligned offset and length. 12 * Writes are not allowed except where noted; quadlet-sized registers must be 15 * All values are in big endian. The DICE firmware runs on a little-endian CPU 16 * and just byte-swaps _all_ quadlets on the bus, so values without endianness 17 * (e.g. strings) get scrambled and must be byte-swapped again by the driver. 32 * size values are measured in quadlets. Read-only. 50 * Stores the full 64-bit address (node ID and offset in the node's address 60 * A bitmask with asynchronous events; read-only. When any event(s) happen, 74 /* Other bits may be used for device-specific events. */ [all …]
|
/linux/drivers/media/platform/renesas/ |
H A D | renesas-ceu.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2017-2018 Jacopo Mondi <jacopo+renesas@jmondi.org> 6 * Based on soc-camera driver "soc_camera/sh_mobile_ceu_camera.c" 9 * Based on V4L2 Driver for PXA camera host - "pxa_camera.c", 16 #include <linux/dma-mapping.h> 32 #include <media/v4l2-async.h> 33 #include <media/v4l2-common.h> 34 #include <media/v4l2-ctrls.h> 35 #include <media/v4l2-dev.h> 36 #include <media/v4l2-device.h> [all …]
|
/linux/mm/ |
H A D | shmem.c | 6 * 2000-2001 Christoph Rohland 7 * 2000-2001 SAP AG 9 * Copyright (C) 2002-2011 Hugh Dickins. 11 * Copyright (C) 2002-2005 VERITAS Software Corporation. 18 * tiny-shmem: 61 #include <linux/backing-dev.h> 102 * inode->i_private (with i_rwsem making sure that it has only one user at 103 * a time): we would prefer not to enlarge the shmem inode just for that. 151 return min3(nr_pages - totalhigh_pages(), nr_pages / 2, in shmem_default_max_inodes() 162 return sb->s_fs_info; in SHMEM_SB() [all …]
|
H A D | mincore.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1994-2006 Linus Torvalds 30 unsigned char *vec = walk->private; in mincore_hugetlb() 34 * swapped out, but theoretically it needs to be checked. in mincore_hugetlb() 36 present = pte && !huge_pte_none_mostly(huge_ptep_get(walk->mm, addr, pte)); in mincore_hugetlb() 39 walk->private = vec; in mincore_hugetlb() 49 * and is up to date; i.e. that no page-in operation would be required 59 * file will not get a swp_entry_t in its pte, but rather it is like in mincore_page() 61 * tmpfs's .fault). So swapped out tmpfs mappings are tested here. in mincore_page() 75 unsigned long nr = (end - addr) >> PAGE_SHIFT; in __mincore_unmapped_range() [all …]
|
/linux/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 6 * Copyright (C) 2004-2017 Cavium, Inc. 18 #include <asm/octeon/cvmx-helper-board.h> 24 #include <asm/octeon/cvmx-uctlx-defs.h> 78 if (dev->of_node) { in octeon2_usb_clocks_start() 82 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start() 88 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start() 90 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start() 95 "refclk-type", &clock_type); in octeon2_usb_clocks_start() 203 * Step 4: Program the power-on reset field in the UCTL in octeon2_usb_clocks_start() 204 * clock-reset-control register. in octeon2_usb_clocks_start() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | userp.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 14 particular user pointer method (not only memory mapping) is supported 21 data are exchanged, these pointers and meta-information are passed in 23 :c:type:`v4l2_plane` in the multi-planar API case). The 26 No buffers (planes) are allocated beforehand, consequently they are not 33 .. code-block:: c 41 if (ioctl (fd, VIDIOC_REQBUFS, &reqbuf) == -1) { 43 printf ("Video capturing or user pointer streaming is not supported\\n"); 57 swapped out to disk they are brought back and finally locked in physical 66 Applications must take care not to free buffers without dequeuing. [all …]
|
/linux/include/uapi/linux/ |
H A D | virtio_balloon.h | 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 64 #define VIRTIO_BALLOON_S_SWAP_IN 0 /* Amount of memory swapped in */ 65 #define VIRTIO_BALLOON_S_SWAP_OUT 1 /* Amount of memory swapped out */ 83 VIRTIO_BALLOON_S_NAMES_prefix "swap-in", \ 84 VIRTIO_BALLOON_S_NAMES_prefix "swap-out", \ 85 VIRTIO_BALLOON_S_NAMES_prefix "major-faults", \ 86 VIRTIO_BALLOON_S_NAMES_prefix "minor-faults", \ 87 VIRTIO_BALLOON_S_NAMES_prefix "free-memory", \ 88 VIRTIO_BALLOON_S_NAMES_prefix "total-memor [all...] |
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_exec.c | 1 // SPDX-License-Identifier: MIT 24 * userspace-managable portion of the VA space. It provides operations to map 25 * and unmap memory. Mappings may be flagged as sparse. Sparse mappings are not 30 * bounds (but not crossing those bounds) of a previously mapped sparse 38 * Unmap requests are not bound to the range of existing mappings and can even 49 * The kernel does not permit to: 50 * - unmap non-existent sparse mappings 51 * - unmap a sparse mapping and map a new sparse mapping overlapping the range 53 * - unmap a sparse mapping and map new memory backed mappings overlapping the 59 * mappings are created in the GPU's MMU. If the given memory is swapped out [all …]
|
/linux/Documentation/mm/ |
H A D | arch_pgtable_helpers.rst | 1 .. SPDX-License-Identifier: GPL-2.0 18 +---------------------------+--------------------------------------------------+ 20 +---------------------------+--------------------------------------------------+ 22 +---------------------------+--------------------------------------------------+ 24 +---------------------------+--------------------------------------------------+ 26 +---------------------------+--------------------------------------------------+ 28 +---------------------------+--------------------------------------------------+ 30 +---------------------------+--------------------------------------------------+ 32 +---------------------------+--------------------------------------------------+ 34 +---------------------------+--------------------------------------------------+ [all …]
|
/linux/Documentation/input/devices/ |
H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 30 |---------------| |---------------| |---------------| |---------------| 37 Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 38 Bit1 => Right Button, 1 is pressed, 0 is not pressed. 39 Bit0 => Left Button, 1 is pressed, 0 is not pressed. 40 Byte 2: X Movement(9-bit 2's complement integers) 41 Byte 3: Y Movement(9-bit 2's complement integers) 43 valid values, -8 ~ +7 [all …]
|
/linux/arch/s390/appldata/ |
H A D | appldata_mem.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Data gathering module for Linux-VM Monitor Stream, Stage 1. 23 #define P2K(x) ((x) << (PAGE_SHIFT - 10)) /* Converts #Pages to KB */ 37 same. If not, the record has been updated on 43 u64 pswpin; /* pages swapped in */ 44 u64 pswpout; /* pages swapped out */ 58 // New in 2.6 --> 62 // <-- New in 2.6 83 mem_data->sync_count_1++; in appldata_get_mem_data() 86 mem_data->pgpgin = ev[PGPGIN] >> 1; in appldata_get_mem_data() [all …]
|
/linux/net/bluetooth/ |
H A D | lib.c | 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 12 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 34 * baswap() - Swaps the order of a bd address 35 * @dst: Pointer to a bdaddr_t struct that will store the swapped 37 * @src: Pointer to the bdaddr_t struct to be swapped. 49 d[i] = s[5 - i]; in baswap() 54 * bt_to_errno() - Bluetooth error codes to standard errno 64 * If the given bt error code is not known, ENOSYS is returned. 160 * bt_status() - Standard errno value to Bluetooth error code [all …]
|
/linux/drivers/mtd/parsers/ |
H A D | redboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Parse RedBoot-style Flash Image System (FIS) tables and 7 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org> 26 unsigned char _pad[256 - (16 + 7 * sizeof(u32))]; 60 ret = of_property_read_u32(npart, "fis-index-block", &dirblock); in parse_redboot_of() 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 99 pr_notice("Failed to find a non-bad block to check for RedBoot partition table\n"); in parse_redboot_partitions() 100 return -EIO; in parse_redboot_partitions() 102 offset -= master->erasesize; in parse_redboot_partitions() 105 offset = (unsigned long) directory * master->erasesize; in parse_redboot_partitions() [all …]
|
/linux/drivers/cpuidle/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 CPU idle is a generic framework for supporting software-controlled 11 idle processor power management. It includes modular cross-platform 12 governors that can be swapped during runtime. 14 If you're using an ACPI-enabled platform, you should say Y here. 31 focused on timer events and does not do any interactivity boosting. 34 to use. Say Y here if you are not happy with the alternatives. 69 menu "RISC-V CPU Idle Drivers"
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shrinker.c | 2 * SPDX-License-Identifier: MIT 4 * Copyright © 2008-2015 Intel Corporation 13 #include <linux/dma-buf.h> 37 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages() 61 if (obj->ops->shrink) { in try_to_writeback() 70 return obj->ops->shrink(obj, shrink_flags); in try_to_writeback() 77 * i915_gem_shrink - Shrink buffer object caches 89 * Note that it's not guaranteed that released amount is actually available as 90 * free system memory - the pages might still be in-used to due to other reasons 95 * Also note that any kind of pinning (both per-vma address space pins and [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | pgtable-bits.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 26 * _PAGE_PROT_NONE is set on not-present pages (and ignored by the hardware) to 27 * distinguish them from swapped out pages
|
/linux/arch/sh/include/cpu-sh2/cpu/ |
H A D | watchdog.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * include/asm-sh/cpu-sh2/watchdog.h 11 * More SH-2 brilliance .. its not good enough that we can't read 35 * sh_wdt_read_rstcsr - Read from Reset Control/Status Register 42 * Same read/write brain-damage as for WTCNT here.. in sh_wdt_read_rstcsr() 48 * sh_wdt_write_csr - Write to Reset Control/Status Register 58 * Note: Due to the brain-damaged nature of this register, in sh_wdt_write_rstcsr() 60 * has to be swapped for this. So just leave it alone.. in sh_wdt_write_rstcsr()
|
/linux/Documentation/virt/kvm/s390/ |
H A D | s390-pv-dump.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ------- 27 ------------ 45 in the dump data. For the same reason it is very important to not only 52 time of the export does not matter as no re-encryption is 53 needed. Memory that has been swapped out and hence was exported can be
|
/linux/Documentation/arch/sparc/ |
H A D | adi.rst | 34 SPARC M7 processor, MMU uses bits 63-60 for version tags and ADI block 37 virtual addresses that contain 0xa in bits 63-60. 58 - Version tag values of 0x0 and 0xf are reserved. These values match any 61 - Version tags are set on virtual addresses from userspace even though 66 - When a task frees a memory page it had set version tags on, the page 67 goes back to free page pool. When this page is re-allocated to a task, 73 - ADI tag mismatches are not detected for non-faulting loads. 75 - Kernel does not set any tags for user pages and it is entirely a 77 version tags are preserved if a page is swapped out to the disk and 78 swapped back in. It also preserves that version tags if a page is [all …]
|
/linux/fs/btrfs/ |
H A D | qgroup.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 38 * - Newly allocated extents 39 * - Extents going to be deleted (in this trans) 40 * - Extents whose owner is going to be modified 71 * 1) Record the subtree root block get swapped. 83 * In this case, NA and OA are going to be swapped, record (NA, OA) into 110 * modification to the swapped subtrees, no need to trigger heavy qgroup 169 * Space reserved for metadata (per-transaction) 195 * *currently* meta is just reserve-and-clear during transaction. 198 * Current metadata reservation behavior is not suitable for such case. [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | imagis,ist3038c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Markuss Broks <markuss.broks@gmail.com> 14 pattern: "^touchscreen@[0-9a-f]+$" 18 - imagis,ist3032c 19 - imagis,ist3038 20 - imagis,ist3038b 21 - imagis,ist3038c 29 vdd-supply: [all …]
|
/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_plane.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2018-2020 Intel Corporation 27 /* Conversion (yuv->rgb) matrix from myriadx */ 30 1024, -352, -731, 32 -179, 125, -226 72 int plane_id = kmb_plane->id; in check_pixel_format() 75 kmb = to_kmb(plane->dev); in check_pixel_format() 76 init_disp_cfg = kmb->init_disp_cfg[plane_id]; in check_pixel_format() 78 * plane configuration is not supported. in check_pixel_format() 81 drm_dbg(&kmb->drm, "Cannot change format after initial plane configuration"); in check_pixel_format() [all …]
|
/linux/Documentation/trace/ |
H A D | ring-buffer-design.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.2-no-invariants-only 19 --------------------------------- 22 - where new writes happen in the ring buffer. 25 - where new reads happen in the ring buffer. 28 - the task that writes into the ring buffer (same as writer) 31 - same as producer 34 - the task that reads from the buffer (same as reader) 37 - same as consumer. 40 - A page outside the ring buffer used solely (for the most part) 44 - a pointer to the page that the reader will use next [all …]
|