Lines Matching refs:nr_pfns
96 unsigned int nr_pfns = ctx->save.nr_batch_pfns; in write_batch() local
105 assert(nr_pfns != 0); in write_batch()
108 mfns = malloc(nr_pfns * sizeof(*mfns)); in write_batch()
110 types = malloc(nr_pfns * sizeof(*types)); in write_batch()
112 errors = malloc(nr_pfns * sizeof(*errors)); in write_batch()
114 guest_data = calloc(nr_pfns, sizeof(*guest_data)); in write_batch()
116 local_pages = calloc(nr_pfns, sizeof(*local_pages)); in write_batch()
118 iov = malloc((nr_pfns + 4) * sizeof(*iov)); in write_batch()
123 nr_pfns); in write_batch()
127 for ( i = 0; i < nr_pfns; ++i ) in write_batch()
140 rc = xc_get_pfn_type_batch(xch, ctx->domid, nr_pfns, types); in write_batch()
148 for ( i = 0; i < nr_pfns; ++i ) in write_batch()
172 for ( i = 0, p = 0; i < nr_pfns; ++i ) in write_batch()
215 rec_pfns = malloc(nr_pfns * sizeof(*rec_pfns)); in write_batch()
219 nr_pfns * sizeof(*rec_pfns)); in write_batch()
223 hdr.count = nr_pfns; in write_batch()
226 rec.length += nr_pfns * sizeof(*rec_pfns); in write_batch()
229 for ( i = 0; i < nr_pfns; ++i ) in write_batch()
242 iov[3].iov_len = nr_pfns * sizeof(*rec_pfns); in write_batch()
248 for ( i = 0; i < nr_pfns; ++i ) in write_batch()
274 for ( i = 0; local_pages && i < nr_pfns; ++i ) in write_batch()