Lines Matching full:swap
16 #include <linux/swap.h>
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()
368 free_all_swap_pages(data->swap); in snapshot_ioctl()