/linux/Documentation/power/ |
A D | swsusp-and-swap-files.rst | 2 Using swap files with software suspend (swsusp) 7 The Linux kernel handles swap files almost in the same way as it handles swap 8 partitions and there are only two differences between these two types of swap 10 (1) swap files need not be contiguous, 11 (2) the header of a swap file is not in the first block of the partition that 18 filesystem holding the swap file to be mounted, and if this filesystem is 25 In order to use a swap file with swsusp, you need to: 27 1) Create the swap file and make it active, eg.:: 33 2) Use an application that will bmap the swap file with the help of the 36 holds the swap file. [all …]
|
A D | swsusp.rst | 224 * SUSPEND all but swap device and parents 227 * SUSPEND swap device and parents 233 * SUSPEND all but swap device and parents 234 * FREEZE swap device and parents 236 * UNFREEZE swap device and parents 238 * SUSPEND swap device and parents 291 write image to swap 354 Can I suspend to a swap file? 360 swsusp-and-swap-files.txt for details. 373 Only one swap partition, sorry. [all …]
|
/linux/Documentation/admin-guide/mm/ |
A D | swap_numa.rst | 4 Automatically bind swap device to numa node 7 If the system has more than one swap device and swap device has the node 8 information, we can make use of this information to decide which swap 17 for swap devices. e.g. on a 2 node machine, assume 2 swap devices swapA and 31 The way to swap them on is the same as above:: 55 other swap devices. 66 which swap device to use and if multiple swap devices share the same 69 it sees its own priority based list of available swap devices. Swap 72 The current swap device's priority is set as: user can set a >=0 value, 74 value in the swap_avail_list is the negated value of the swap device's [all …]
|
A D | zswap.rst | 10 Zswap is a lightweight compressed cache for swap pages. It takes pages that are 13 for potentially reduced swap I/O. This trade-off can also result in a 15 faster than reads from a swap device. 28 dramatically reduce their swap I/O pressure, avoiding heavy handed I/O 31 * Users with SSDs as swap devices can extend the life of the device by 34 Zswap evicts pages from compressed cache on an LRU basis to the backing swap 53 pages out of the compressed pool, a swapoff on the swap device(s) will 62 the backing swap device in the case that the compressed pool is full. 84 of the swap entry, a combination of the swap type and swap offset, to the zpool 85 handle that references that compressed swap page. This mapping is achieved [all …]
|
/linux/Documentation/vm/ |
A D | frontswap.rst | 46 page can be written to swap as usual. 151 registers, one bit is allocated for every swap page for every swap 154 for every swap page for every swap device that is swapon'd. (Hugh 158 4K pagesize, this is 1MB per 32GB swap. 180 Whenever the swap subsystem is readying a page to write to a swap 194 When the swap subsystem needs to swap-in a page (swap_readpage()), 198 the swap-in is complete. If not, the normal swap-in code is 208 or maybe swap-over-nbd/NFS)? 248 slot on a real swap device to swap the page. Thus frontswap must be 253 swap devices. For example, if NO swap device is configured on some [all …]
|
/linux/scripts/coccinelle/misc/ |
A D | swap.cocci | 3 /// Check for opencoded swap() implementation. 9 // Keywords: swap 64 + swap(a, b) 76 + swap(a, b) 85 swap(...); 90 swap(...); 95 swap(...); 104 coccilib.report.print_report(p[0], "WARNING opportunity for swap()") 110 coccilib.org.print_todo(p[0], "WARNING opportunity for swap()") 116 coccilib.report.print_report(p[0], "WARNING opportunity for swap()") [all …]
|
/linux/arch/arm/vdso/ |
A D | vdsomunge.c | 101 static Elf32_Word read_elf_word(Elf32_Word word, bool swap) in read_elf_word() argument 103 return swap ? swab32(word) : word; in read_elf_word() 106 static Elf32_Half read_elf_half(Elf32_Half half, bool swap) in read_elf_half() argument 108 return swap ? swab16(half) : half; in read_elf_half() 113 *dst = swap ? swab32(val) : val; in write_elf_word() 125 bool swap; in main() local 159 swap = inhdr->e_ident[EI_DATA] != HOST_ORDER; in main() 161 if (read_elf_half(inhdr->e_type, swap) != ET_DYN) in main() 164 if (read_elf_half(inhdr->e_machine, swap) != EM_ARM) in main() 167 e_flags = read_elf_word(inhdr->e_flags, swap); in main() [all …]
|
/linux/drivers/gpu/drm/xlnx/ |
A D | zynqmp_disp.c | 89 bool swap; member 243 .swap = true, 258 .swap = true, 268 .swap = true, 278 .swap = true, 288 .swap = true, 298 .swap = true, 308 .swap = true, 318 .swap = true, 328 .swap = true, [all …]
|
/linux/tools/lib/traceevent/ |
A D | event-parse-api.c | 97 unsigned short swap; in data2host2() local 102 swap = ((data & 0xffULL) << 8) | in data2host2() 105 return swap; in data2host2() 110 unsigned int swap; in data2host4() local 115 swap = ((data & 0xffULL) << 24) | in data2host4() 120 return swap; in data2host4() 126 unsigned long long swap; in data2host8() local 131 swap = ((data & 0xffULL) << 56) | in data2host8() 140 return swap; in data2host8()
|
/linux/kernel/power/ |
A D | user.c | 32 int swap; member 72 data->swap = swap_type_of(swsusp_resume_device, 0); in snapshot_open() 83 data->swap = -1; in snapshot_open() 114 free_all_swap_pages(data->swap); in snapshot_release() 232 data->swap = swap_type_of(swdev, offset); in snapshot_set_swap_area() 233 if (data->swap < 0) in snapshot_set_swap_area() 344 size = count_swap_pages(data->swap, 1); in snapshot_ioctl() 350 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl() 354 offset = alloc_swapdev_block(data->swap); in snapshot_ioctl() 364 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl() [all …]
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-kernel-mm-swap | 1 What: /sys/kernel/mm/swap/ 6 What: /sys/kernel/mm/swap/vma_ra_enabled 9 Description: Enable/disable VMA based swap readahead. 11 If set to true, the VMA based swap readahead algorithm 13 VMA, and the global swap readahead algorithm will be 15 false, the global swap readahead algorithm will be
|
/linux/include/linux/mtd/ |
A D | cfi_endian.h | 29 #define cpu_to_cfi16(map, x) _cpu_to_cfi(16, (map)->swap, (x)) 30 #define cpu_to_cfi32(map, x) _cpu_to_cfi(32, (map)->swap, (x)) 31 #define cpu_to_cfi64(map, x) _cpu_to_cfi(64, (map)->swap, (x)) 32 #define cfi16_to_cpu(map, x) _cfi_to_cpu(16, (map)->swap, (x)) 33 #define cfi32_to_cpu(map, x) _cfi_to_cpu(32, (map)->swap, (x)) 34 #define cfi64_to_cpu(map, x) _cfi_to_cpu(64, (map)->swap, (x))
|
/linux/arch/m68k/ifpsp060/src/ |
A D | ilsp.S | 311 swap %d1 344 swap %d2 345 swap %d3 367 swap %d3 372 swap %d4 407 swap %d3 422 swap %d5 423 swap %d6 433 swap %d6 434 swap %d5 [all …]
|
/linux/drivers/video/fbdev/ |
A D | pxa168fb.h | 236 #define CFG_GRA_SWAPRB(swap) ((swap) << 12) argument 238 #define CFG_GRA_SWAPUV(swap) ((swap) << 11) argument 240 #define CFG_GRA_SWAPYU(swap) ((swap) << 10) argument 253 #define CFG_DMA_SWAPRB(swap) ((swap) << 4) argument 255 #define CFG_DMA_SWAPUV(swap) ((swap) << 3) argument 257 #define CFG_DMA_SWAPYU(swap) ((swap) << 2) argument
|
/linux/sound/firewire/bebob/ |
A D | bebob_focusrite.c | 250 swap(buf[1], buf[3]); in saffire_meter_get() 251 swap(buf[2], buf[3]); in saffire_meter_get() 252 swap(buf[3], buf[4]); in saffire_meter_get() 254 swap(buf[7], buf[10]); in saffire_meter_get() 255 swap(buf[8], buf[10]); in saffire_meter_get() 256 swap(buf[9], buf[11]); in saffire_meter_get() 257 swap(buf[11], buf[12]); in saffire_meter_get() 259 swap(buf[15], buf[16]); in saffire_meter_get()
|
/linux/drivers/staging/wlan-ng/ |
A D | p80211wep.c | 129 swap(i, j); in wep_decrypt() 138 swap(i, j); in wep_decrypt() 152 swap(i, j); in wep_decrypt() 200 swap(i, j); in wep_encrypt() 209 swap(i, j); in wep_encrypt() 223 swap(i, j); in wep_encrypt()
|
/linux/arch/m68k/math-emu/ |
A D | fp_move.S | 49 swap %d1 | one can be trashed below 83 swap %d1 99 swap %d2 111 swap %d2 122 swap %d2 130 swap %d2 191 swap %d2
|
A D | fp_cond.S | 63 swap %d0 68 swap %d0 83 swap %d1 | test condition in %d1 103 swap %d1 118 swap %d1 120 swap %d1 165 swap %d1
|
/linux/drivers/ata/ |
A D | pata_falcon.c | 49 bool swap = 1; in pata_falcon_data_xfer() local 53 swap = 0; in pata_falcon_data_xfer() 57 if (swap) in pata_falcon_data_xfer() 62 if (swap) in pata_falcon_data_xfer() 76 if (swap) in pata_falcon_data_xfer() 83 if (swap) in pata_falcon_data_xfer()
|
/linux/Documentation/translations/zh_CN/filesystems/ |
A D | tmpfs.rst | 19 页面swap出去。它具有最大限制,可以通过“mount -o remount ...”调整。 23 此之上创建一个普通的文件系统。Ramdisks无法swap,因此无法调整它们的大小。 25 由于tmpfs完全保存于页面缓存和swap中,因此所有tmpfs页面将在/proc/meminfo 47 swap分区。目前循环挂载tmpfs可以正常工作,所以大多数发布都应当可以 56 size tmpfs实例分配的字节数限制。默认值是不swap时物理RAM的一半。
|
/linux/Documentation/translations/zh_TW/filesystems/ |
A D | tmpfs.rst | 20 頁面swap出去。它具有最大限制,可以通過「mount -o remount ...」調整。 24 此之上創建一個普通的文件系統。Ramdisks無法swap,因此無法調整它們的大小。 26 由於tmpfs完全保存於頁面緩存和swap中,因此所有tmpfs頁面將在/proc/meminfo 48 swap分區。目前循環掛載tmpfs可以正常工作,所以大多數發布都應當可以 57 size tmpfs實例分配的字節數限制。默認值是不swap時物理RAM的一半。
|
/linux/arch/nds32/kernel/ |
A D | module.c | 31 unsigned int partial_in_place, unsigned int swap) in do_reloc16() argument 38 "1:\n":"=r"(tmp):"0"(tmp), "r"(loc), "r"(swap) in do_reloc16() 54 "r"(loc), "r"(swap) in do_reloc16() 60 unsigned int partial_in_place, unsigned int swap) in do_reloc32() argument 68 "1:\n":"=r"(tmp):"0"(tmp), "r"(loc), "r"(swap) in do_reloc32() 85 "r"(loc), "r"(swap) in do_reloc32()
|
/linux/drivers/staging/vt6655/ |
A D | card.c | 610 swap(phy.swap[0], phy.swap[1]); in CARDvSetRSPINF() 619 swap(phy.swap[0], phy.swap[1]); in CARDvSetRSPINF() 628 swap(phy.swap[0], phy.swap[1]); in CARDvSetRSPINF() 637 swap(phy.swap[0], phy.swap[1]); in CARDvSetRSPINF()
|
/linux/Documentation/admin-guide/cgroup-v1/ |
A D | memcg_test.rst | 47 Called when swp_entry's refcnt goes down to 0. A charge against swap 75 At swap-in, the page is taken from swap-cache. There are 2 cases. 82 At swap-out, typical state transition is below. 84 (a) add to swap cache. (marked as SwapCache) 88 (c) write back to swap. 89 (d) delete from swap cache. (remove from SwapCache) 121 - Both on radix-tree and SwapCache. This happens at swap-in 122 and swap-out, 248 Besides management of swap is one of complicated parts of memcg, 249 call path of swap-in at swapoff is not same as usual swap-in path.. [all …]
|
/linux/arch/sh/lib/ |
A D | udivsi3_i4i-Os.S | 31 swap.w r4,r0 47 swap.w r4,r4 53 swap.w r0,r0 103 swap.w r4,r0 115 swap.w r4,r0
|