| /linux/Documentation/admin-guide/mm/ | 
| H A D | pagemap.rst | 12    physical frame each virtual page is mapped to.  It contains one 64-bit16     * 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)
 25     * Bits 59-60 zero
 26     * Bit  61    page is file-page or shared-anon (since 3.5)
 [all …]
 
 | 
| H A D | zswap.rst | 9 in the process of being swapped out and attempts to compress them into a10 dynamically allocated RAM-based memory pool.  zswap basically trades CPU cycles
 11 for potentially reduced swap I/O.  This trade-off can also result in a
 24   drastically reducing life-shortening writes.
 31 the ``CONFIG_ZSWAP_DEFAULT_ON`` Kconfig option is enabled or not.
 41 being swapped out.  However, it will _not_ immediately write out or fault
 46 fault back into memory all swapped out pages, including those in the
 57 allocation in zsmalloc is not directly accessible by address.  Rather, a handle is
 60 pages are freed.  The pool is not preallocated.
 65 achieved with a red-black tree per swap type.  The swap offset is the search
 [all …]
 
 | 
| H A D | concepts.rst | 7 systems from MMU-less microcontrollers to supercomputers. The memory21 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/Documentation/gpu/ | 
| H A D | drm-compute.rst | 5 Long running workloads (compute) are workloads that will not complete in 1010 Some hardware may schedule compute jobs, and have no way to pre-empt them, or
 11 have their memory swapped out from them. Or they simply want their workload
 12 not to be preempted or swapped out at all.
 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,
 17 not even to force preemption. The driver with is simply forced to unmap a BO
 18 from the long compute job's address space on unbind immediately, not even
 32 not to evict when creating a new job (any kind). If all of userspace opts in
 36 If job preemption and recoverable pagefaults are not available, those are the
 [all …]
 
 | 
| /linux/include/drm/ttm/ | 
| H A D | ttm_tt.h | 3  * Copyright (c) 2006-2009 Vmware, Inc., Palo Alto, CA., USA19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 20  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
 44  * struct ttm_tt - This is a structure holding the pages, caching- and aperture
 57 	 * and swapped out by TTM.  Calling ttm_tt_populate() will then swap the
 65 	 * externally, like with dma-buf or userptr. This effectively disables
 85 	 * not encrypted. The framework will try to match what the dma layer
 93 	 * TTM_TT_FLAG_PRIV_POPULATED: TTM internal only. DO NOT USE. This is
 109 	/** @sg: for SG objects via dma-buf. */
 132  * struct ttm_kmap_iter_tt - Specialization of a mappig iterator for a tt.
 [all …]
 
 | 
| /linux/drivers/platform/x86/ | 
| H A D | touchscreen_dmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later24 	/* The EFI embedded-fw code expects this to be the first member! */
 33 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
 34 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
 35 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
 36 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
 37 	PROPERTY_ENTRY_BOOL("silead,home-button"),
 38 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"),
 48 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
 49 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
 [all …]
 
 | 
| /linux/Documentation/mm/ | 
| H A D | swap-table.rst | 1 .. SPDX-License-Identifier: GPL-2.09 Swap table implements swap cache as a per-cluster swap cache value array.
 12 ----------
 23 ----------
 29 1. NULL: This swap entry is not used.
 35 3. shadow: The shadow contains the working set information of the swapped
 36    out folio. This is the normal state for a swapped out page.
 39 --------------------
 48 If we have a per-cluster array to store swap cache value in the cluster.
 51 We give such a per-cluster swap cache value array a name: the swap table.
 [all …]
 
 | 
| H A D | arch_pgtable_helpers.rst | 1 .. SPDX-License-Identifier: GPL-2.018 +---------------------------+--------------------------------------------------+
 20 +---------------------------+--------------------------------------------------+
 22 +---------------------------+--------------------------------------------------+
 24 +---------------------------+--------------------------------------------------+
 26 +---------------------------+--------------------------------------------------+
 28 +---------------------------+--------------------------------------------------+
 30 +---------------------------+--------------------------------------------------+
 32 +---------------------------+--------------------------------------------------+
 34 +---------------------------+--------------------------------------------------+
 [all …]
 
 | 
| /linux/mm/ | 
| H A D | shmem.c | 6  *		 2000-2001 Christoph Rohland7  *		 2000-2001 SAP AG
 9  * Copyright (C) 2002-2011 Hugh Dickins.
 11  * Copyright (C) 2002-2005 VERITAS Software Corporation.
 18  * tiny-shmem:
 62 #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.
 156 	return min3(nr_pages - totalhigh_pages(), nr_pages / 2,  in shmem_default_max_inodes()
 167 	return sb->s_fs_info;  in SHMEM_SB()
 [all …]
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | userp.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later14 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/arch/mips/cavium-octeon/ | 
| H A D | octeon-platform.c | 6  * Copyright (C) 2004-2017 Cavium, Inc.19 #include <asm/octeon/cvmx-helper-board.h>
 25 #include <asm/octeon/cvmx-uctlx-defs.h>
 79 	if (dev->of_node) {  in octeon2_usb_clocks_start()
 83 		uctl_node = of_get_parent(dev->of_node);  in octeon2_usb_clocks_start()
 89 					 "refclk-frequency", &clock_rate);  in octeon2_usb_clocks_start()
 91 			dev_err(dev, "No UCTL \"refclk-frequency\"\n");  in octeon2_usb_clocks_start()
 96 					    "refclk-type", &clock_type);  in octeon2_usb_clocks_start()
 204 	 * Step 4: Program the power-on reset field in the UCTL  in octeon2_usb_clocks_start()
 205 	 * clock-reset-control register.  in octeon2_usb_clocks_start()
 [all …]
 
 | 
| /linux/include/uapi/linux/ | 
| H A D | virtio_balloon.h | 18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22  * 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-memory", \
 [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/drivers/gpu/drm/nouveau/ | 
| H A D | nouveau_exec.c | 1 // SPDX-License-Identifier: MIT26  * userspace-managable portion of the VA space. It provides operations to map
 27  * and unmap memory. Mappings may be flagged as sparse. Sparse mappings are not
 32  * bounds (but not crossing those bounds) of a previously mapped sparse
 40  * Unmap requests are not bound to the range of existing mappings and can even
 51  * The kernel does not permit to:
 52  *   - unmap non-existent sparse mappings
 53  *   - unmap a sparse mapping and map a new sparse mapping overlapping the range
 55  *   - unmap a sparse mapping and map new memory backed mappings overlapping the
 61  * mappings are created in the GPU's MMU. If the given memory is swapped out
 [all …]
 
 | 
| /linux/drivers/thermal/ | 
| H A D | airoha_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later28 /* period unit calculated in BUS clock * 256 scaling-up */
 62 /* Similar to COLD and HOT also these seems to be swapped in documentation */
 65 /* It seems documentation have these swapped as the HW
 66  * - Fire BIT(1) when lower than EN7581_COLD_THRE
 67  * - Fire BIT(0) and BIT(5) when higher than EN7581_HOT2NORMAL_THRE or
 101 /* Similar to COLD and HOT also these seems to be swapped in documentation */
 104 /* It seems documentation have these swapped as the HW
 105  * - Fire BIT(1) when lower than EN7581_COLD_THRE
 106  * - Fire BIT(0) and BIT(5) when higher than EN7581_HOT2NORMAL_THRE or
 [all …]
 
 | 
| /linux/arch/s390/appldata/ | 
| H A D | appldata_mem.c | 1 // SPDX-License-Identifier: GPL-2.03  * 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 Linux3    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-later3  * 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-only10 	  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/arch/sh/include/cpu-sh2/cpu/ | 
| H A D | watchdog.h | 1 /* SPDX-License-Identifier: GPL-2.03  * 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.08 -------
 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 block37 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 */41  *    - Newly allocated extents
 42  *    - Extents going to be deleted (in this trans)
 43  *    - Extents whose owner is going to be modified
 74  * 1) Record the subtree root block get swapped.
 86  *   In this case, NA and OA are going to be swapped, record (NA, OA) into
 113  *     modification to the swapped subtrees, no need to trigger heavy qgroup
 136 	 * fs_info->sectorsize_bits.
 179  * 	Space reserved for metadata (per-transaction)
 205  * *currently* meta is just reserve-and-clear during transaction.
 [all …]
 
 | 
| /linux/Documentation/trace/ | 
| H A D | ring-buffer-design.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.2-no-invariants-only19 ---------------------------------
 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 …]
 
 |