Home
last modified time | relevance | path

Searched refs:eax (Results 1 – 25 of 41) sorted by relevance

12

/tools/testing/selftests/x86/
A Draw_syscall_helper_32.S11 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 Dxstate.h102 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 Dunwind_vdso.c71 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 Dcorrupt_xstate_header.c25 unsigned int eax, ebx, ecx, edx; in xsave_enabled() local
27 __cpuid_count(0x1, 0x0, eax, ebx, ecx, edx); in xsave_enabled()
A Dclang_helpers_32.S8 mov %fs:(0), %eax
A Dentry_from_vm86.c286 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 Dldt_gdt.c724 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 Dthunks_32.S19 mov 4(%esp), %eax
A Dxstate.c39 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 Dpkey-x86.h47 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 Dintel_gsic.c25 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 Dcpuid_test.c18 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 Dhyperv_cpuid.c64 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 Dpmu_event_filter_test.c378 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 Dcpuid.csv23 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 Dkcpuid.c241 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 Dregs_load.S68 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 Dintel-pt-test.c342 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 Dtest-get_cpuid.c6 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 Dprocessor.h345 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 Dcpuid.c27 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 Dx86_energy_perf_policy.c1395 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 Dhfi-events.c235 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 Dcat_test.c298 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 Dexamples.txt203 0.00 : 31a2e95602: b8 38 00 00 00 mov $0x38,%eax
207 0.00 : 31a2e95615: 85 c0 test %eax,%eax

Completed in 37 milliseconds

12