Home
last modified time | relevance | path

Searched refs:indices (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/kvm/x86_64/
Dget_msr_index_features.c23 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_index_msrs()
51 list = malloc(sizeof(*list) + old_res * sizeof(list->indices[0])); in test_get_msr_index()
69 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_feature_msrs()
86 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_get_msr_feature_list()
118 kvm_get_feature_msr(feature_list->indices[i]); in test_get_msr_feature()
Dxss_msr_test.c28 if (list->indices[i] == msr_index) { in is_supported_msr()
/tools/testing/radix-tree/
Didr-test.c155 int indices[] = {4, 7, 9, 15, 65, 128, 1000, 99999, 0}; in idr_get_next_test() local
157 for(i = 0; indices[i]; i++) { in idr_get_next_test()
158 struct item *item = item_create(indices[i], 0); in idr_get_next_test()
159 assert(idr_alloc(&idr, item, indices[i], indices[i+1], in idr_get_next_test()
160 GFP_KERNEL) == indices[i]); in idr_get_next_test()
163 for(i = 0, nextid = 0; indices[i]; i++) { in idr_get_next_test()
165 assert(nextid == indices[i]); in idr_get_next_test()
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1025 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_get_msr_index_list()
1060 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in vcpu_save_state()
1106 state->msrs.entries[i].index = list->indices[i]; in vcpu_save_state()
1109 r, r == nmsrs ? -1 : list->indices[r]); in vcpu_save_state()
/tools/arch/x86/include/uapi/asm/
Dkvm.h207 __u32 indices[0]; member