Lines Matching refs:num_pages
2949 long num_pages; in mapped_ram_setup_ramblock() local
2954 num_pages = block->used_length >> TARGET_PAGE_BITS; in mapped_ram_setup_ramblock()
2955 bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in mapped_ram_setup_ramblock()
3129 long num_pages = block->used_length >> TARGET_PAGE_BITS; in ram_save_file_bmap() local
3130 long bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in ram_save_file_bmap()
3943 long num_pages, unsigned long *bitmap, in read_ramblock_mapped_ram() argument
3952 for (set_bit_idx = find_first_bit(bitmap, num_pages); in read_ramblock_mapped_ram()
3953 set_bit_idx < num_pages; in read_ramblock_mapped_ram()
3954 set_bit_idx = find_next_bit(bitmap, num_pages, clear_bit_idx + 1)) { in read_ramblock_mapped_ram()
3956 clear_bit_idx = find_next_zero_bit(bitmap, num_pages, set_bit_idx + 1); in read_ramblock_mapped_ram()
4003 long num_pages; in parse_ramblock_mapped_ram() local
4024 num_pages = length / header.page_size; in parse_ramblock_mapped_ram()
4025 bitmap_size = BITS_TO_LONGS(num_pages) * sizeof(unsigned long); in parse_ramblock_mapped_ram()
4034 if (!read_ramblock_mapped_ram(f, block, num_pages, bitmap, errp)) { in parse_ramblock_mapped_ram()