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