Lines Matching refs:swap
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()
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()
383 free_all_swap_pages(data->swap); in snapshot_ioctl()