Lines Matching refs:cpumap

55     rc = libxl_cpu_bitmap_alloc(CTX, &info->cpumap, 0);  in cpupool_info()
59 memcpy(info->cpumap.map, xcinfo->cpumap, info->cpumap.size); in cpupool_info()
113 int libxl_get_freecpus(libxl_ctx *ctx, libxl_bitmap *cpumap) in libxl_get_freecpus() argument
121 cpumap->map = xc_cpupool_freeinfo(ctx->xch); in libxl_get_freecpus()
122 if (cpumap->map == NULL) in libxl_get_freecpus()
125 cpumap->size = (ncpus + 7) / 8; in libxl_get_freecpus()
132 libxl_bitmap cpumap, libxl_uuid *uuid, in libxl_cpupool_create() argument
163 libxl_for_each_bit(i, cpumap) in libxl_cpupool_create()
164 if (libxl_bitmap_test(&cpumap, i)) { in libxl_cpupool_create()
198 libxl_bitmap cpumap; in libxl_cpupool_destroy() local
210 rc = libxl_cpu_bitmap_alloc(ctx, &cpumap, 0); in libxl_cpupool_destroy()
214 memcpy(cpumap.map, info->cpumap, cpumap.size); in libxl_cpupool_destroy()
215 libxl_for_each_bit(i, cpumap) in libxl_cpupool_destroy()
216 if (libxl_bitmap_test(&cpumap, i)) { in libxl_cpupool_destroy()
244 libxl_bitmap_dispose(&cpumap); in libxl_cpupool_destroy()
311 const libxl_bitmap *cpumap) in libxl_cpupool_cpuadd_cpumap() argument
315 libxl_for_each_set_bit(c, *cpumap) { in libxl_cpupool_cpuadd_cpumap()
320 if (ncpus != libxl_bitmap_count_set(cpumap)) in libxl_cpupool_cpuadd_cpumap()
374 const libxl_bitmap *cpumap) in libxl_cpupool_cpuremove_cpumap() argument
378 libxl_for_each_set_bit(c, *cpumap) { in libxl_cpupool_cpuremove_cpumap()
383 if (ncpus != libxl_bitmap_count_set(cpumap)) in libxl_cpupool_cpuremove_cpumap()
414 libxl_bitmap_test(&poolinfo[p].cpumap, cpu) && in libxl_cpupool_cpuremove_node()