Lines Matching refs:error
688 int error; in memory_bm_create() local
693 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
694 if (error) in memory_bm_create()
695 return error; in memory_bm_create()
703 error = -ENOMEM; in memory_bm_create()
713 return error; in memory_bm_create()
817 int error; in memory_bm_set_bit() local
819 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit()
820 BUG_ON(error); in memory_bm_set_bit()
828 int error; in mem_bm_set_bit_check() local
830 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in mem_bm_set_bit_check()
831 if (!error) in mem_bm_set_bit_check()
834 return error; in mem_bm_set_bit_check()
841 int error; in memory_bm_clear_bit() local
843 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_clear_bit()
844 BUG_ON(error); in memory_bm_clear_bit()
865 int error; in memory_bm_test_bit() local
867 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_test_bit()
868 BUG_ON(error); in memory_bm_test_bit()
1122 int error = 0; in create_basic_memory_bitmaps() local
1133 error = memory_bm_create(bm1, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1134 if (error) in create_basic_memory_bitmaps()
1141 error = memory_bm_create(bm2, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1142 if (error) in create_basic_memory_bitmaps()
1786 int error; in hibernate_preallocate_memory() local
1791 error = memory_bm_create(&orig_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1792 if (error) { in hibernate_preallocate_memory()
1797 error = memory_bm_create(©_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1798 if (error) { in hibernate_preallocate_memory()
1803 error = memory_bm_create(&zero_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1804 if (error) { in hibernate_preallocate_memory()
2205 int error; in snapshot_read_next() local
2207 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next()
2208 if (error) in snapshot_read_next()
2209 return error; in snapshot_read_next()
2296 int error; in load_header() local
2299 error = check_header(info); in load_header()
2300 if (!error) { in load_header()
2304 return error; in load_header()
2583 int error; in prepare_image() local
2592 error = memory_bm_create(new_bm, GFP_ATOMIC, PG_SAFE); in prepare_image()
2593 if (error) in prepare_image()
2600 error = memory_bm_create(&tmp, GFP_ATOMIC, PG_SAFE); in prepare_image()
2601 if (error) in prepare_image()
2608 error = memory_bm_create(zero_bm, GFP_ATOMIC, PG_SAFE); in prepare_image()
2609 if (error) in prepare_image()
2617 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2618 if (error) in prepare_image()
2635 error = -ENOMEM; in prepare_image()
2647 error = -ENOMEM; in prepare_image()
2664 return error; in prepare_image()
2730 int error = 0; in snapshot_write_next() local
2747 error = load_header(buffer); in snapshot_write_next()
2748 if (error) in snapshot_write_next()
2749 return error; in snapshot_write_next()
2753 error = memory_bm_create(©_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2754 if (error) in snapshot_write_next()
2755 return error; in snapshot_write_next()
2757 error = memory_bm_create(&zero_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2758 if (error) in snapshot_write_next()
2759 return error; in snapshot_write_next()
2765 error = unpack_orig_pfns(buffer, ©_bm, &zero_bm); in snapshot_write_next()
2766 if (error) in snapshot_write_next()
2767 return error; in snapshot_write_next()
2770 error = prepare_image(&orig_bm, ©_bm, &zero_bm); in snapshot_write_next()
2771 if (error) in snapshot_write_next()
2772 return error; in snapshot_write_next()