Lines Matching refs:nr_cpus
236 int nr_cpus; in pyxc_vcpu_setaffinity() local
244 nr_cpus = xc_get_max_cpus(self->xc_handle); in pyxc_vcpu_setaffinity()
245 if ( nr_cpus < 0 ) in pyxc_vcpu_setaffinity()
257 if ( cpu < 0 || cpu >= nr_cpus ) in pyxc_vcpu_setaffinity()
396 int nr_cpus; in pyxc_vcpu_getinfo() local
404 nr_cpus = xc_get_max_cpus(self->xc_handle); in pyxc_vcpu_getinfo()
405 if ( nr_cpus < 0 ) in pyxc_vcpu_getinfo()
431 for ( i = 0; i < nr_cpus; i++ ) in pyxc_vcpu_getinfo()
981 "nr_cpus", pinfo.nr_cpus, in pyxc_physinfo()
994 int max_cpus, nr_cpus, ret, i; in pyxc_getcpuinfo() local
1005 ret = xc_getcpuinfo(self->xc_handle, max_cpus, cpuinfo, &nr_cpus); in pyxc_getcpuinfo()
1013 for (i = 0; i < nr_cpus; i++) { in pyxc_getcpuinfo()
1683 int nr_cpus; in cpumap_to_cpulist() local
1685 nr_cpus = xc_get_max_cpus(self->xc_handle); in cpumap_to_cpulist()
1686 if ( nr_cpus < 0 ) in cpumap_to_cpulist()
1690 for ( i = 0; i < nr_cpus; i++ ) in cpumap_to_cpulist()