• Home
  • Raw
  • Download

Lines Matching refs:nent

1112 	if (cpuid->nent > KVM_MAX_CPUID_ENTRIES)  in kvm_vcpu_ioctl_set_cpuid()
1115 cpuid_entries = vmalloc(sizeof(struct kvm_cpuid_entry) * cpuid->nent); in kvm_vcpu_ioctl_set_cpuid()
1120 cpuid->nent * sizeof(struct kvm_cpuid_entry))) in kvm_vcpu_ioctl_set_cpuid()
1122 for (i = 0; i < cpuid->nent; i++) { in kvm_vcpu_ioctl_set_cpuid()
1134 vcpu->arch.cpuid_nent = cpuid->nent; in kvm_vcpu_ioctl_set_cpuid()
1151 if (cpuid->nent > KVM_MAX_CPUID_ENTRIES) in kvm_vcpu_ioctl_set_cpuid2()
1155 cpuid->nent * sizeof(struct kvm_cpuid_entry2))) in kvm_vcpu_ioctl_set_cpuid2()
1157 vcpu->arch.cpuid_nent = cpuid->nent; in kvm_vcpu_ioctl_set_cpuid2()
1171 if (cpuid->nent < vcpu->arch.cpuid_nent) in kvm_vcpu_ioctl_get_cpuid2()
1180 cpuid->nent = vcpu->arch.cpuid_nent; in kvm_vcpu_ioctl_get_cpuid2()
1200 u32 index, int *nent, int maxnent) in do_cpuid_ent() argument
1236 ++*nent; in do_cpuid_ent()
1255 for (t = 1; t < times && *nent < maxnent; ++t) { in do_cpuid_ent()
1258 ++*nent; in do_cpuid_ent()
1268 for (i = 1; *nent < maxnent; ++i) { in do_cpuid_ent()
1275 ++*nent; in do_cpuid_ent()
1284 for (i = 1; *nent < maxnent; ++i) { in do_cpuid_ent()
1291 ++*nent; in do_cpuid_ent()
1310 int limit, nent = 0, r = -E2BIG; in kvm_dev_ioctl_get_supported_cpuid() local
1313 if (cpuid->nent < 1) in kvm_dev_ioctl_get_supported_cpuid()
1316 cpuid_entries = vmalloc(sizeof(struct kvm_cpuid_entry2) * cpuid->nent); in kvm_dev_ioctl_get_supported_cpuid()
1320 do_cpuid_ent(&cpuid_entries[0], 0, 0, &nent, cpuid->nent); in kvm_dev_ioctl_get_supported_cpuid()
1322 for (func = 1; func <= limit && nent < cpuid->nent; ++func) in kvm_dev_ioctl_get_supported_cpuid()
1323 do_cpuid_ent(&cpuid_entries[nent], func, 0, in kvm_dev_ioctl_get_supported_cpuid()
1324 &nent, cpuid->nent); in kvm_dev_ioctl_get_supported_cpuid()
1326 if (nent >= cpuid->nent) in kvm_dev_ioctl_get_supported_cpuid()
1329 do_cpuid_ent(&cpuid_entries[nent], 0x80000000, 0, &nent, cpuid->nent); in kvm_dev_ioctl_get_supported_cpuid()
1330 limit = cpuid_entries[nent - 1].eax; in kvm_dev_ioctl_get_supported_cpuid()
1331 for (func = 0x80000001; func <= limit && nent < cpuid->nent; ++func) in kvm_dev_ioctl_get_supported_cpuid()
1332 do_cpuid_ent(&cpuid_entries[nent], func, 0, in kvm_dev_ioctl_get_supported_cpuid()
1333 &nent, cpuid->nent); in kvm_dev_ioctl_get_supported_cpuid()
1336 nent * sizeof(struct kvm_cpuid_entry2))) in kvm_dev_ioctl_get_supported_cpuid()
1338 cpuid->nent = nent; in kvm_dev_ioctl_get_supported_cpuid()
2806 int j, nent = vcpu->arch.cpuid_nent; in move_to_next_stateful_cpuid_entry() local
2810 for (j = i + 1; ; j = (j + 1) % nent) { in move_to_next_stateful_cpuid_entry()