Lines Matching refs:hib_resume_bdev
225 static struct block_device *hib_resume_bdev; variable
279 bio = bio_alloc(hib_resume_bdev, 1, opf, GFP_NOIO | __GFP_HIGH); in hib_submit_io()
359 hib_resume_bdev = blkdev_get_by_dev(swsusp_resume_device, in swsusp_swap_check()
361 if (IS_ERR(hib_resume_bdev)) in swsusp_swap_check()
362 return PTR_ERR(hib_resume_bdev); in swsusp_swap_check()
364 res = set_blocksize(hib_resume_bdev, PAGE_SIZE); in swsusp_swap_check()
366 blkdev_put(hib_resume_bdev, NULL); in swsusp_swap_check()
1525 hib_resume_bdev = blkdev_get_by_dev(swsusp_resume_device, BLK_OPEN_READ, in swsusp_check()
1527 if (!IS_ERR(hib_resume_bdev)) { in swsusp_check()
1528 set_blocksize(hib_resume_bdev, PAGE_SIZE); in swsusp_check()
1553 blkdev_put(hib_resume_bdev, holder); in swsusp_check()
1557 error = PTR_ERR(hib_resume_bdev); in swsusp_check()
1573 if (IS_ERR(hib_resume_bdev)) { in swsusp_close()
1578 blkdev_put(hib_resume_bdev, exclusive ? &swsusp_holder : NULL); in swsusp_close()