| /tools/testing/selftests/x86/ |
| A D | raw_syscall_helper_32.S | 11 movl 1*4(%eax), %ebx 12 movl 2*4(%eax), %ecx 13 movl 3*4(%eax), %edx 14 movl 4*4(%eax), %esi 15 movl 5*4(%eax), %edi 16 movl 6*4(%eax), %ebp 17 movl 0*4(%eax), %eax 22 pushl %eax 23 movl 6*4(%esp), %eax 24 popl 0*4(%eax) [all …]
|
| A D | xstate.h | 102 uint32_t eax, ebx, ecx, edx; in get_xbuf_size() local 105 eax, ebx, ecx, edx); in get_xbuf_size() 126 uint32_t eax, ebx, ecx, edx; in get_xstate_info() local 138 eax, ebx, ecx, edx); in get_xstate_info() 139 xstate.size = eax; in get_xstate_info()
|
| A D | unwind_vdso.c | 71 unsigned long eax = _Unwind_GetGR(ctx, 0); in trace_fn() local 78 bool ok = (eax == SYS_getpid || eax == getpid()) && in trace_fn() 86 eax, ebx, ecx, edx, esi, edi, ebp); in trace_fn()
|
| A D | corrupt_xstate_header.c | 25 unsigned int eax, ebx, ecx, edx; in xsave_enabled() local 27 __cpuid_count(0x1, 0x0, eax, ebx, ecx, edx); in xsave_enabled()
|
| A D | clang_helpers_32.S | 8 mov %fs:(0), %eax
|
| A D | entry_from_vm86.c | 286 v86.regs.eax = 0; in main() 291 v86.regs.eax = X86_EFLAGS_IF; in main() 296 v86.regs.eax = X86_EFLAGS_IF; in main() 305 v86.regs.eax = (unsigned int)-1; in main()
|
| A D | ldt_gdt.c | 724 unsigned int eax; in test_gdt_invalidation() local 733 eax = 243; in test_gdt_invalidation() 748 "+a" (eax) in test_gdt_invalidation() 764 eax = 243; in test_gdt_invalidation() 779 "+a" (eax) in test_gdt_invalidation() 795 eax = 243; in test_gdt_invalidation() 812 "+a" (eax) in test_gdt_invalidation() 848 eax = 243; in test_gdt_invalidation() 865 "+a" (eax) in test_gdt_invalidation()
|
| A D | thunks_32.S | 19 mov 4(%esp), %eax
|
| A D | xstate.c | 39 uint32_t eax, edx; in xgetbv() local 41 asm volatile("xgetbv" : "=a" (eax), "=d" (edx) : "c" (index)); in xgetbv() 42 return eax + ((uint64_t)edx << 32); in xgetbv()
|
| /tools/testing/selftests/mm/ |
| A D | pkey-x86.h | 47 unsigned int eax, edx; in __read_pkey_reg() local 52 : "=a" (eax), "=d" (edx) in __read_pkey_reg() 54 pkey_reg = eax; in __read_pkey_reg() 60 unsigned int eax = pkey_reg; in __write_pkey_reg() local 67 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg() 77 unsigned int eax; in cpu_has_pkeys() local 82 __cpuid_count(0x7, 0x0, eax, ebx, ecx, edx); in cpu_has_pkeys() 98 unsigned int eax; in cpu_max_xsave_size() local 103 __cpuid_count(XSTATE_CPUID, 0, eax, ebx, ecx, edx); in cpu_max_xsave_size() 118 unsigned int eax; in pkey_reg_xstate_offset() local [all …]
|
| /tools/power/cpupower/debug/i386/ |
| A D | intel_gsic.c | 25 r.eax = 0x0000E980; in main() 34 if (r.eax == 0x47534943) { in main() 37 (r.eax >> 24) & 0xff, in main() 38 (r.eax >> 16) & 0xff, in main() 39 (r.eax >> 8) & 0xff, in main() 40 (r.eax) & 0xff); in main() 63 printf("eax = 0x%.8x\n", r.eax); in main()
|
| /tools/testing/selftests/kvm/x86/ |
| A D | cpuid_test.c | 18 u32 eax; member 30 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local 37 GUEST_ASSERT_EQ(eax, guest_cpuid->entries[i].eax); in test_guest_cpuids() 107 TEST_ASSERT((e1->eax & mask.eax) == (e2->eax & mask.eax) && in compare_cpuids() 113 e1->eax & mask.eax, e1->ebx & mask.ebx, in compare_cpuids() 115 e2->eax & mask.eax, e2->ebx & mask.ebx, in compare_cpuids() 159 u32 eax, ebx, x; in set_cpuid_after_run() local 175 eax = ent->eax; in set_cpuid_after_run() 176 x = eax & 0xff; in set_cpuid_after_run() 177 ent->eax = (eax & ~0xffu) | (x - 1); in set_cpuid_after_run() [all …]
|
| A D | hyperv_cpuid.c | 64 TEST_ASSERT(entry->eax == test_val, in test_hv_cpuid() 67 entry->eax, evmcs_expected in test_hv_cpuid() 75 test_val = entry->eax & (1UL << 18); in test_hv_cpuid() 81 TEST_ASSERT(has_irqchip || !(entry->eax & BIT(10)), in test_hv_cpuid() 85 TEST_ASSERT(entry->eax & (1UL << 19), in test_hv_cpuid() 87 " 0x40000000.EAX: %x", entry->eax); in test_hv_cpuid() 89 TEST_ASSERT((entry->eax & 0xffff) == 0x101, in test_hv_cpuid() 91 " 0x40000000.EAX: %x", entry->eax); in test_hv_cpuid()
|
| A D | pmu_event_filter_test.c | 378 uint32_t eax, ebx, ecx, edx; in supports_event_mem_inst_retired() local 380 cpuid(1, &eax, &ebx, &ecx, &edx); in supports_event_mem_inst_retired() 381 if (x86_family(eax) == 0x6) { in supports_event_mem_inst_retired() 382 switch (x86_model(eax)) { in supports_event_mem_inst_retired()
|
| /tools/arch/x86/kcpuid/ |
| A D | cpuid.csv | 23 0x1, 0, eax, 3:0, stepping , Stepping ID 24 0x1, 0, eax, 7:4, base_model , Base CPU model ID 25 0x1, 0, eax, 11:8, base_family_id , Base CPU family ID 26 0x1, 0, eax, 13:12, cpu_type , CPU type 99 0x2, 0, eax, 15:8, desc1 , Descriptor #1 100 0x2, 0, eax, 23:16, desc2 , Descriptor #2 101 0x2, 0, eax, 30:24, desc3 , Descriptor #3 170 0x6, 0, eax, 17, hwp_flexible , Flexible HWP 637 0x80000001, 0, eax, 3:0, e_stepping_id , Stepping ID 1080 0x80860001, 0, eax, 3:0, stepping , Stepping ID [all …]
|
| A D | kcpuid.c | 241 u32 eax, ebx, ecx, edx; in setup_cpuid_range() local 268 cpuid(f, eax, ebx, ecx, edx); in setup_cpuid_range() 270 allzero = cpuid_store(range, f, 0, eax, ebx, ecx, edx); in setup_cpuid_range() 282 max_subleaf = min((eax & 0xff) + 1, max_subleaf); in setup_cpuid_range() 295 cpuid_count(f, subleaf, eax, ebx, ecx, edx); in setup_cpuid_range() 297 allzero = cpuid_store(range, f, subleaf, eax, ebx, ecx, edx); in setup_cpuid_range()
|
| /tools/perf/arch/x86/tests/ |
| A D | regs_load.S | 68 movl %eax, AX(%edi) 73 pop %eax 74 movl %eax, DI(%edi) 77 leal 4(%esp), %eax /* exclude this call. */ 78 movl %eax, SP(%edi) 80 movl 0(%esp), %eax 81 movl %eax, IP(%edi)
|
| A D | intel-pt-test.c | 342 unsigned int eax; member 366 __get_cpuid_count(20, i, &r.eax, &r.ebx, &r.ecx, &r.edx); in get_pt_caps() 368 pr_debug("eax = 0x%08x\n", r.eax); in get_pt_caps() 380 unsigned int eax, ebx, ecx, edx = 0; in is_hybrid() local 383 __get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx); in is_hybrid() 399 .eax = GENMASK(31, 16), in compare_caps() 422 reg = m & caps->subleaf[1].eax; in compare_caps() 423 reg0 = m & caps0->subleaf[1].eax; in compare_caps()
|
| /tools/build/feature/ |
| A D | test-get_cpuid.c | 6 unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; in main() local 7 return __get_cpuid(0x15, &eax, &ebx, &ecx, &edx); in main()
|
| /tools/testing/selftests/kvm/include/x86/ |
| A D | processor.h | 345 x86 = (eax >> 8) & 0xf; in x86_family() 348 x86 += (eax >> 20) & 0xff; in x86_family() 355 return ((eax >> 12) & 0xf0) | ((eax >> 4) & 0x0f); in x86_model() 438 uint32_t eax, edx; in rdtsc() local 453 uint32_t eax, edx; in rdtscp() local 590 u32 eax, edx; in xgetbv() local 600 u32 eax = value; in xsetbv() local 638 *eax = function; in __cpuid() 642 : "=a" (*eax), in __cpuid() 662 return eax; in this_cpu_fms() [all …]
|
| /tools/power/cpupower/utils/helpers/ |
| A D | cpuid.c | 27 unsigned int eax, ebx, ecx, edx; \ 28 __cpuid(op, eax, ebx, ecx, edx); \ 31 cpuid_func(eax);
|
| /tools/power/x86/x86_energy_perf_policy/ |
| A D | x86_energy_perf_policy.c | 1395 unsigned int *eax, unsigned int *ebx, in get_cpuid_or_exit() argument 1398 if (!__get_cpuid(leaf, eax, ebx, ecx, edx)) in get_cpuid_or_exit() 1409 unsigned int eax, ebx, ecx, edx; in early_cpuid() local 1427 turbo_is_enabled = (eax >> 1) & 1; in early_cpuid() 1428 has_hwp = (eax >> 7) & 1; in early_cpuid() 1439 unsigned int eax, ebx, ecx, edx, max_level; in parse_cpuid() local 1442 eax = ebx = ecx = edx = 0; in parse_cpuid() 1481 has_hwp_notify = eax & (1 << 8); in parse_cpuid() 1482 has_hwp_activity_window = eax & (1 << 9); in parse_cpuid() 1483 has_hwp_epp = eax & (1 << 10); in parse_cpuid() [all …]
|
| /tools/power/x86/intel-speed-select/ |
| A D | hfi-events.c | 235 unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; in check_hf_suport() local 237 __cpuid(6, eax, ebx, ecx, edx); in check_hf_suport() 238 if (eax & BIT(19)) in check_hf_suport()
|
| /tools/testing/selftests/resctrl/ |
| A D | cat_test.c | 298 unsigned int eax, ebx, ecx, edx; in arch_supports_noncont_cat() local 301 __cpuid_count(0x10, 1, eax, ebx, ecx, edx); in arch_supports_noncont_cat() 303 __cpuid_count(0x10, 2, eax, ebx, ecx, edx); in arch_supports_noncont_cat()
|
| /tools/perf/Documentation/ |
| A D | examples.txt | 203 0.00 : 31a2e95602: b8 38 00 00 00 mov $0x38,%eax 207 0.00 : 31a2e95615: 85 c0 test %eax,%eax
|