Lines Matching refs:nr_pages
352 int nr_vcpus, unsigned long nr_pages) in elfnote_dump_core_header() argument
365 header.xch_nr_pages = nr_pages; in elfnote_dump_core_header()
440 unsigned long nr_pages; in xc_domain_dumpcore_via_callback() local
563 nr_pages = info.nr_pages; in xc_domain_dumpcore_via_callback()
568 p2m_array = malloc(nr_pages * sizeof(p2m_array[0])); in xc_domain_dumpcore_via_callback()
582 pfn_array = malloc(nr_pages * sizeof(pfn_array[0])); in xc_domain_dumpcore_via_callback()
709 filesz = (uint64_t)nr_pages * PAGE_SIZE; in xc_domain_dumpcore_via_callback()
725 filesz = (uint64_t)nr_pages * sizeof(p2m_array[0]); in xc_domain_dumpcore_via_callback()
733 filesz = (uint64_t)nr_pages * sizeof(pfn_array[0]); in xc_domain_dumpcore_via_callback()
768 sts = elfnote_dump_core_header(xch, args, dump_rtn, &info, nr_vcpus, nr_pages); in xc_domain_dumpcore_via_callback()
821 if ( j >= nr_pages ) in xc_domain_dumpcore_via_callback()
827 IPRINTF("exceeded nr_pages (%ld) losing pages", nr_pages); in xc_domain_dumpcore_via_callback()
885 if ( j < nr_pages ) in xc_domain_dumpcore_via_callback()
890 DPRINTF("j (%ld) != nr_pages (%ld)", j, nr_pages); in xc_domain_dumpcore_via_callback()
892 for (; j < nr_pages; j++) { in xc_domain_dumpcore_via_callback()
909 xch, args, (char *)p2m_array, sizeof(p2m_array[0]) * nr_pages); in xc_domain_dumpcore_via_callback()
912 xch, args, (char *)pfn_array, sizeof(pfn_array[0]) * nr_pages); in xc_domain_dumpcore_via_callback()