Lines Matching refs:error
648 int error; in memory_bm_create() local
653 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
654 if (error) in memory_bm_create()
655 return error; in memory_bm_create()
663 error = -ENOMEM; in memory_bm_create()
673 return error; in memory_bm_create()
776 int error; in memory_bm_set_bit() local
778 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit()
779 BUG_ON(error); in memory_bm_set_bit()
787 int error; in mem_bm_set_bit_check() local
789 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in mem_bm_set_bit_check()
790 if (!error) in mem_bm_set_bit_check()
793 return error; in mem_bm_set_bit_check()
800 int error; in memory_bm_clear_bit() local
802 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_clear_bit()
803 BUG_ON(error); in memory_bm_clear_bit()
819 int error; in memory_bm_test_bit() local
821 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_test_bit()
822 BUG_ON(error); in memory_bm_test_bit()
1074 int error = 0; in create_basic_memory_bitmaps() local
1085 error = memory_bm_create(bm1, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1086 if (error) in create_basic_memory_bitmaps()
1093 error = memory_bm_create(bm2, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1094 if (error) in create_basic_memory_bitmaps()
1704 int error; in hibernate_preallocate_memory() local
1709 error = memory_bm_create(&orig_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1710 if (error) { in hibernate_preallocate_memory()
1715 error = memory_bm_create(©_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1716 if (error) { in hibernate_preallocate_memory()
2106 int error; in snapshot_read_next() local
2108 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next()
2109 if (error) in snapshot_read_next()
2110 return error; in snapshot_read_next()
2197 int error; in load_header() local
2200 error = check_header(info); in load_header()
2201 if (!error) { in load_header()
2205 return error; in load_header()
2463 int error; in prepare_image() local
2472 error = memory_bm_create(new_bm, GFP_ATOMIC, PG_SAFE); in prepare_image()
2473 if (error) in prepare_image()
2479 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2480 if (error) in prepare_image()
2497 error = -ENOMEM; in prepare_image()
2509 error = -ENOMEM; in prepare_image()
2526 return error; in prepare_image()
2592 int error = 0; in snapshot_write_next() local
2608 error = load_header(buffer); in snapshot_write_next()
2609 if (error) in snapshot_write_next()
2610 return error; in snapshot_write_next()
2614 error = memory_bm_create(©_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2615 if (error) in snapshot_write_next()
2616 return error; in snapshot_write_next()
2620 error = unpack_orig_pfns(buffer, ©_bm); in snapshot_write_next()
2621 if (error) in snapshot_write_next()
2622 return error; in snapshot_write_next()
2625 error = prepare_image(&orig_bm, ©_bm); in snapshot_write_next()
2626 if (error) in snapshot_write_next()
2627 return error; in snapshot_write_next()