• Home
  • Raw
  • Download

Lines Matching refs:error

649 	int error;  in memory_bm_create()  local
654 error = create_mem_extents(&mem_extents, gfp_mask); in memory_bm_create()
655 if (error) in memory_bm_create()
656 return error; in memory_bm_create()
664 error = -ENOMEM; in memory_bm_create()
674 return error; in memory_bm_create()
777 int error; in memory_bm_set_bit() local
779 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit()
780 BUG_ON(error); in memory_bm_set_bit()
788 int error; in mem_bm_set_bit_check() local
790 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in mem_bm_set_bit_check()
791 if (!error) in mem_bm_set_bit_check()
794 return error; in mem_bm_set_bit_check()
801 int error; in memory_bm_clear_bit() local
803 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_clear_bit()
804 BUG_ON(error); in memory_bm_clear_bit()
820 int error; in memory_bm_test_bit() local
822 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_test_bit()
823 BUG_ON(error); in memory_bm_test_bit()
1082 int error = 0; in create_basic_memory_bitmaps() local
1093 error = memory_bm_create(bm1, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1094 if (error) in create_basic_memory_bitmaps()
1101 error = memory_bm_create(bm2, GFP_KERNEL, PG_ANY); in create_basic_memory_bitmaps()
1102 if (error) in create_basic_memory_bitmaps()
1706 int error; in hibernate_preallocate_memory() local
1711 error = memory_bm_create(&orig_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1712 if (error) in hibernate_preallocate_memory()
1715 error = memory_bm_create(&copy_bm, GFP_IMAGE, PG_ANY); in hibernate_preallocate_memory()
1716 if (error) in hibernate_preallocate_memory()
2107 int error; in snapshot_read_next() local
2109 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next()
2110 if (error) in snapshot_read_next()
2111 return error; in snapshot_read_next()
2198 int error; in load_header() local
2201 error = check_header(info); in load_header()
2202 if (!error) { in load_header()
2206 return error; in load_header()
2466 int error; in prepare_image() local
2475 error = memory_bm_create(new_bm, GFP_ATOMIC, PG_SAFE); in prepare_image()
2476 if (error) in prepare_image()
2482 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2483 if (error) in prepare_image()
2500 error = -ENOMEM; in prepare_image()
2512 error = -ENOMEM; in prepare_image()
2529 return error; in prepare_image()
2594 int error = 0; in snapshot_write_next() local
2612 error = load_header(buffer); in snapshot_write_next()
2613 if (error) in snapshot_write_next()
2614 return error; in snapshot_write_next()
2618 error = memory_bm_create(&copy_bm, GFP_ATOMIC, PG_ANY); in snapshot_write_next()
2619 if (error) in snapshot_write_next()
2620 return error; in snapshot_write_next()
2623 error = page_key_alloc(nr_copy_pages); in snapshot_write_next()
2624 if (error) in snapshot_write_next()
2625 return error; in snapshot_write_next()
2629 error = unpack_orig_pfns(buffer, &copy_bm); in snapshot_write_next()
2630 if (error) in snapshot_write_next()
2631 return error; in snapshot_write_next()
2634 error = prepare_image(&orig_bm, &copy_bm); in snapshot_write_next()
2635 if (error) in snapshot_write_next()
2636 return error; in snapshot_write_next()