Home
last modified time | relevance | path

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

12345678910>>...30

/openbmc/u-boot/test/dm/
H A Dpci.c28 struct udevice *swap; in dm_test_pci_busdev() local
62 struct udevice *swap; in dm_test_pci_swapcase() local
70 io_addr = dm_pci_read_bar32(swap, 0); in dm_test_pci_swapcase()
78 mem_addr = dm_pci_read_bar32(swap, 1); in dm_test_pci_swapcase()
91 io_addr = dm_pci_read_bar32(swap, 0); in dm_test_pci_swapcase()
115 struct udevice *bus, *swap; in dm_test_pci_drvdata() local
122 ut_assertok(dev_of_valid(swap)); in dm_test_pci_drvdata()
125 ut_assertok(dev_of_valid(swap)); in dm_test_pci_drvdata()
128 ut_assertok(!dev_of_valid(swap)); in dm_test_pci_drvdata()
138 struct udevice *bus, *swap; in dm_test_pci_mixed() local
[all …]
/openbmc/openbmc/meta-security/recipes-security/ecryptfs-utils/files/
H A Decryptfs-utils-CVE-2016-6224.patch6 src/utils/ecryptfs-setup-swap: Prevent unencrypted swap partitions from
22 src/utils/ecryptfs-setup-swap | 10 ++++++++--
32 + * src/utils/ecryptfs-setup-swap: Prevent unencrypted swap partitions from
42 diff --git a/src/utils/ecryptfs-setup-swap b/src/utils/ecryptfs-setup-swap
44 --- a/src/utils/ecryptfs-setup-swap
45 +++ b/src/utils/ecryptfs-setup-swap
46 @@ -166,8 +166,14 @@ for swap in $swaps; do
50 - drive="${swap%[0-9]*}"
51 - partno="${swap#$drive}"
54 + if echo "$swap" | grep -qE "^/dev/.+[0-9]+p[0-9]+$"; then
[all …]
/openbmc/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
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 …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/zram/
H A Dzram_0.2.bb1 SUMMARY = "Linux zram compressed in-memory swap"
14 file://zram-swap-init \
15 file://zram-swap-deinit \
16 file://zram-swap.service \
17 file://dev-zram0.swap \
29 install -m 0755 ${WORKDIR}/zram-swap-init ${D}${libexecdir}
30 install -m 0755 ${WORKDIR}/zram-swap-deinit ${D}${libexecdir}
32 install -m 0644 ${WORKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service
33 sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service
34 install -m 0644 ${WORKDIR}/dev-zram0.swap ${D}${systemd_unitdir}/system/dev-zram0.swap
[all …]
/openbmc/u-boot/drivers/fpga/
H A Dzynqmppl.c55 if (swap == SWAP_NO) { in load_word()
73 int swap = SWAP_NO; in check_header() local
80 pattern = load_word(&test[i], swap); in check_header()
90 swap = SWAP_DONE; in check_header()
100 return swap; in check_header()
116 *swap = check_header(&buf[p]); in check_data()
117 if (*swap) { in check_data()
147 buf, new_buf, swap); in zynqmp_align_dma_buffer()
153 } else if ((swap != SWAP_DONE) && in zynqmp_align_dma_buffer()
159 swap); in zynqmp_align_dma_buffer()
[all …]
H A Dzynqpl.c74 if (swap == SWAP_NO) { in load_word()
92 int swap = SWAP_NO; in check_header() local
99 pattern = load_word(&test[i], swap); in check_header()
110 swap = SWAP_DONE; in check_header()
124 return swap; in check_header()
140 *swap = check_header(&buf[p]); in check_data()
141 if (*swap) { in check_data()
322 } else if (swap != SWAP_DONE) { in zynq_align_dma_buffer()
327 swap); in zynq_align_dma_buffer()
372 u32 isr_status, swap; in zynq_load() local
[all …]
/openbmc/linux/drivers/gpu/drm/xlnx/
H A Dzynqmp_disp.c77 bool swap; member
192 .swap = true,
207 .swap = true,
217 .swap = true,
227 .swap = true,
237 .swap = true,
247 .swap = true,
257 .swap = true,
267 .swap = true,
277 .swap = true,
[all …]
/openbmc/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 …]
/openbmc/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
29 The way to swap them on is the same as above::
53 other swap devices.
64 which swap device to use and if multiple swap devices share the same
67 it sees its own priority based list of available swap devices. Swap
70 The current swap device's priority is set as: user can set a >=0 value,
72 value in the swap_avail_list is the negated value of the swap device's
[all …]
H A Dzswap.rst8 Zswap is a lightweight compressed cache for swap pages. It takes pages that are
11 for potentially reduced swap I/O. This trade-off can also result in a
13 faster than reads from a swap device.
20 dramatically reduce their swap I/O pressure, avoiding heavy handed I/O
23 * Users with SSDs as swap devices can extend the life of the device by
26 Zswap evicts pages from compressed cache on an LRU basis to the backing swap
45 pages out of the compressed pool, a swapoff on the swap device(s) will
52 Zswap receives pages for compression from the swap subsystem and is able to
54 the backing swap device in the case that the compressed pool is full.
74 of the swap entry, a combination of the swap type and swap offset, to the zpool
[all …]
/openbmc/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()
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 …]
/openbmc/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
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/zram/zram/
H A Ddev-zram0.swap2 Description=Enable compressed swap in memory using zram
3 Requires=zram-swap.service
4 After=zram-swap.service
10 WantedBy=swap.target
H A Dzram-swap.service2 Description=Create compressed swap in memory using zram
9 ExecStart=@LIBEXECDIR@/zram-swap-init /dev/zram0
10 ExecStop=@LIBEXECDIR@/zram-swap-deinit /dev/zram0
/openbmc/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))
/openbmc/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()
359 size = count_swap_pages(data->swap, 1); in snapshot_ioctl()
365 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()
369 offset = alloc_swapdev_block(data->swap); in snapshot_ioctl()
379 if (data->swap < 0 || data->swap >= MAX_SWAPFILES) { in snapshot_ioctl()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/files/
H A Dinit-install.sh184 swap=${device}${part_prefix}3
189 swap=${device}${part_prefix}4
196 echo "Swap partition size: $swap_size MB ($swap)"
219 echo "Creating swap partition on $swap"
221 parted ${device} mkpart $pname linux-swap $swap_start 100%
227 while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do
238 echo "Formatting swap partition...($swap)"
239 mkswap $swap
253 swap_part_uuid=$(blkid -o value -s PARTUUID ${swap})
258 swapdev=${swap}
H A Dinit-install-efi.sh175 swap=${device}${part_prefix}3
180 echo "Swap partition size: $swap_size MB ($swap)"
195 echo "Creating swap partition on $swap"
196 parted ${device} mkpart swap linux-swap $swap_start 100%
202 while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do
213 echo "Formatting swap partition...($swap)"
214 mkswap $swap
227 swap_part_uuid=$(blkid -o value -s PARTUUID ${swap})
/openbmc/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()
/openbmc/u-boot/doc/device-tree-bindings/net/
H A Dti,dp83867.txt11 - enet-phy-lane-swap - Indicates that PHY will swap the TX/RX lanes to
13 - enet-phy-no-lane-swap - Indicates that PHY will disable swap of the
28 enet-phy-lane-no-swap;
/openbmc/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
/openbmc/linux/arch/m68k/ifpsp060/src/
H A Dilsp.S311 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 …]
/openbmc/linux/drivers/staging/wlan-ng/
H A Dp80211wep.c108 swap(i, j); in wep_decrypt()
117 swap(i, j); in wep_decrypt()
131 swap(i, j); in wep_decrypt()
179 swap(i, j); in wep_encrypt()
188 swap(i, j); in wep_encrypt()
202 swap(i, j); in wep_encrypt()
/openbmc/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的一半。
/openbmc/linux/Documentation/translations/zh_TW/filesystems/
H A Dtmpfs.rst20 頁面swap出去。它具有最大限制,可以通過「mount -o remount ...」調整。
24 此之上創建一個普通的文件系統。Ramdisks無法swap,因此無法調整它們的大小。
26 由於tmpfs完全保存於頁面緩存和swap中,因此所有tmpfs頁面將在/proc/meminfo
48 swap分區。目前循環掛載tmpfs可以正常工作,所以大多數發布都應當可以
57 size tmpfs實例分配的字節數限制。默認值是不swap時物理RAM的一半。

12345678910>>...30