Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/linux/Documentation/power/
H A Dswsusp-and-swap-files.rst2 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
13 already taken care of by the swap-handling code, but (2) has to be taken into
16 In principle the location of a swap file's header may be determined with the
18 filesystem holding the swap file to be mounted, and if this filesystem is
20 identify a swap file swsusp uses the name of the partition that holds the file
21 and the offset from the beginning of the partition at which the swap file's
[all …]
H A Dswsusp.rst51 - If you would like to write hibernation image to swap and then suspend
102 powerdowns. You must explicitly specify the swap partition to resume from with
185 encryption) and arbitrary backends for writing the image (eg to swap
224 * SUSPEND all but swap device and parents
227 * SUSPEND swap device and parents
230 Oh no, that does not work, if swap device or its parents uses DMA,
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
[all …]
H A Dswsusp-dmcrypt.rst17 the swap device(s) and the boot partition which may contain a mini
21 At this point you want to encrypt your swap, too. Still you want to
27 swap device.
30 a way that the swap device you suspend to/resume from has
33 to always set up this swap device first with dmsetup, so that
56 card contains at least the encrypted swap setup in a file
67 initrd that allows you to resume from encrypted swap and that
126 pcmcia flash disk. If this succeeds we need to reset the swap
133 Otherwise we just remove the encrypted swap device and leave it to the
H A Duserland-swsusp.rst76 return the amount of available swap in bytes
81 allocate a swap page from the resume partition
83 will contain the swap page offset if the call is successful)
86 free all swap pages allocated by
91 units) from the beginning of the partition at which the swap header is
94 containing the resume device specification and the offset); for swap
96 swap files (see Documentation/power/swsusp-and-swap-files.rst for
130 and all swap pages allocated with SNAPSHOT_ALLOC_SWAP_PAGE (if any).
137 snapshot image from/to the kernel will use a swap partition, called the resume
138 partition, or a swap file as storage space (if a swap file is used, the resume
/linux/Documentation/admin-guide/mm/
H A Dswap_numa.rst2 Automatically bind swap device to numa node
5 If the system has more than one swap device and swap device has the node
6 information, we can make use of this information to decide which swap
15 for swap devices. e.g. on a 2 node machine, assume 2 swap devices swapA and
22 Then node 0 will use the two swap devices in the order of swapA then swapB and
23 node 1 will use the two swap devices in the order of swapB then swapA. Note
26 A more complex example on a 4 node machine. Assume 6 swap devices are going to
29 The way to swap them on is the same as above::
42 swapA and swapB will be used in a round robin mode before any other swap device.
53 other swap devices.
[all …]
/linux/scripts/coccinelle/misc/
H A Dswap.cocci3 /// 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/
H A Dvdsomunge.c101 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()
111 static void write_elf_word(Elf32_Word val, Elf32_Word *dst, bool swap) in write_elf_word() argument
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()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-swap1 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/kernel/power/
H A Duser.c33 int swap; member
74 data->swap = swap_type_of(swsusp_resume_device, 0); in snapshot_open()
85 data->swap = -1; in snapshot_open()
117 free_all_swap_pages(data->swap); in snapshot_release()
242 data->swap = swap_type_of(swdev, offset); in snapshot_set_swap_area()
243 if (data->swap < 0) in snapshot_set_swap_area()
361 size = count_swap_pages(data->swap, 1); in snapshot_ioctl()
367 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()
371 offset = alloc_swapdev_block(data->swap); in snapshot_ioctl()
381 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()
[all …]
/linux/include/linux/mtd/
H A Dcfi_endian.h29 #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/
H A Dilsp.S299 swap %d5 # same as r*b if previous step rqd
300 swap %d6 # get u3 to lsw position
306 swap %d6 # get u4
311 swap %d1
314 swap %d5 # now remainder
344 swap %d2
345 swap %d3
363 swap %d6 # in lsw position
367 swap %d3
372 swap %d4
[all …]
/linux/drivers/video/fbdev/
H A Dpxa168fb.h236 #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/
H A Dbebob_focusrite.c250 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/arch/arm64/kernel/pi/
H A Drelacheck.c27 static bool swap; variable
31 return swap ? __builtin_bswap64(val) : val; in swab_elfxword()
36 return swap ? __builtin_bswap32(val) : val; in swab_elfword()
41 return swap ? __builtin_bswap16(val) : val; in swab_elfhword()
72 swap = ehdr->e_ident[EI_DATA] != HOST_ORDER; in main()
/linux/arch/m68k/math-emu/
H A Dfp_move.S49 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
H A Dfp_cond.S63 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/Documentation/translations/zh_CN/filesystems/
H A Dtmpfs.rst19 页面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/
H A Dtmpfs.rst19 頁面swap出去。它具有最大限制,可以通過“mount -o remount ...”調整。
23 此之上創建一個普通的文件系統。Ramdisks無法swap,因此無法調整它們的大小。
25 由於tmpfs完全保存於頁面緩存和swap中,因此所有tmpfs頁面將在/proc/meminfo
47 swap分區。目前循環掛載tmpfs可以正常工作,所以大多數發佈都應當可以
56 size tmpfs實例分配的字節數限制。默認值是不swap時物理RAM的一半。
/linux/arch/sh/lib/
H A Dudivsi3_i4i-Os.S31 swap.w r4,r0
47 swap.w r4,r4
53 swap.w r0,r0
103 swap.w r4,r0
115 swap.w r4,r0
H A Dstrlen.S51 swap.b r1,r1
52 swap.w r1,r1
53 swap.b r1,r1
/linux/Documentation/admin-guide/cgroup-v1/
H A Dmemcg_test.rst47 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/drivers/gpu/drm/tegra/
H A Dplane.c65 copy->swap = state->swap; in tegra_plane_atomic_duplicate_state()
326 int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap) in tegra_plane_format() argument
329 if (swap) in tegra_plane_format()
330 *swap = BYTE_SWAP_NOSWAP; in tegra_plane_format()
410 if (!swap) in tegra_plane_format()
414 *swap = BYTE_SWAP_SWAP2; in tegra_plane_format()
418 if (!swap) in tegra_plane_format()
422 *swap = BYTE_SWAP_SWAP4; in tegra_plane_format()
426 if (!swap) in tegra_plane_format()
430 *swap = BYTE_SWAP_SWAP4HW; in tegra_plane_format()
/linux/fs/bcachefs/
H A Dfifo.h38 swap((l)->front, (r)->front); \
39 swap((l)->back, (r)->back); \
40 swap((l)->size, (r)->size); \
41 swap((l)->mask, (r)->mask); \
42 swap((l)->data, (r)->data); \
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.c477 bool rotate, bool swap) in exynos_drm_ipp_check_size_limits() argument
492 if (swap) { in exynos_drm_ipp_check_size_limits()
524 unsigned int num_limits, bool swap) in exynos_drm_ipp_check_scale_limits() argument
536 lh = (!swap) ? &limits->h : &limits->v; in exynos_drm_ipp_check_scale_limits()
537 lv = (!swap) ? &limits->v : &limits->h; in exynos_drm_ipp_check_scale_limits()
538 dw = (!swap) ? dst->w : dst->h; in exynos_drm_ipp_check_scale_limits()
539 dh = (!swap) ? dst->h : dst->w; in exynos_drm_ipp_check_scale_limits()
552 bool rotate, bool swap) in exynos_drm_ipp_check_format() argument
593 buf == dst ? swap : false); in exynos_drm_ipp_check_format()
598 fmt->num_limits, swap); in exynos_drm_ipp_check_format()
[all …]
/linux/include/trace/events/
H A Dhuge_memory.h178 int present, int swap, int result),
180 TP_ARGS(mm, folio, file, present, swap, result),
187 __field(int, swap)
196 __entry->swap = swap;
205 __entry->swap,

12345678910>>...23