Home
last modified time | relevance | path

Searched refs:ebx (Results 1 – 25 of 29) sorted by relevance

12

/tools/testing/selftests/kvm/x86/
A Dcpuid_test.c19 u32 ebx; member
30 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local
38 GUEST_ASSERT_EQ(ebx, guest_cpuid->entries[i].ebx); in test_guest_cpuids()
77 mask.ebx = 0; in get_const_cpuid_mask()
108 (e1->ebx & mask.ebx) == (e2->ebx & mask.ebx) && 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
167 ebx = ent->ebx; in set_cpuid_after_run()
168 ent->ebx--; in set_cpuid_after_run()
[all …]
A Dkvm_pv_test.c181 kvm_sig_old = ent->ebx; in test_pv_unhalt()
182 ent->ebx = 0xdeadbeef; in test_pv_unhalt()
190 ent->ebx = kvm_sig_old; in test_pv_unhalt()
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()
/tools/power/cpupower/debug/i386/
A Dintel_gsic.c42 r.ebx & 0xffff); in main()
44 (r.ebx >> 16) & 0xffff); in main()
47 if (((r.ebx >> 16) & 0xffff) != 0x82) { in main()
54 if ((r.ebx & 0xffff) != 0xb2) { in main()
64 printf("ebx = 0x%.8x\n", r.ebx); in main()
/tools/testing/selftests/mm/
A Dpkey-x86.h78 unsigned int ebx; in cpu_has_pkeys() local
82 __cpuid_count(0x7, 0x0, eax, ebx, ecx, edx); in cpu_has_pkeys()
99 unsigned int ebx; in cpu_max_xsave_size() local
103 __cpuid_count(XSTATE_CPUID, 0, eax, ebx, ecx, edx); in cpu_max_xsave_size()
119 unsigned int ebx; in pkey_reg_xstate_offset() local
130 __cpuid_count(XSTATE_CPUID, leaf, eax, ebx, ecx, edx); in pkey_reg_xstate_offset()
133 xstate_offset = ebx; in pkey_reg_xstate_offset()
/tools/arch/x86/kcpuid/
A Dcpuid.csv29 0x1, 0, ebx, 7:0, brand_id , Brand index
31 0x1, 0, ebx, 23:16, n_logical_cpu , Logical CPU count
103 0x2, 0, ebx, 7:0, desc4 , Descriptor #4
104 0x2, 0, ebx, 15:8, desc5 , Descriptor #5
105 0x2, 0, ebx, 23:16, desc6 , Descriptor #6
106 0x2, 0, ebx, 30:24, desc7 , Descriptor #7
212 0x7, 0, ebx, 24, clwb , CLWB instruction
453 0x14, 0, ebx, 4, ptwrite , PTWRITE support
486 0x17, 0, ebx, 15:0, soc_vendor_id , SoC vendor ID
643 0x80000001, 0, ebx, 15:0, brand_id , Brand ID
[all …]
A Dkcpuid.c241 u32 eax, ebx, ecx, edx; in setup_cpuid_range() local
243 cpuid(range->index, max_func, ebx, ecx, edx); in setup_cpuid_range()
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()
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/testing/selftests/x86/
A Dxstate.h102 uint32_t eax, ebx, ecx, edx; in get_xbuf_size() local
105 eax, ebx, ecx, edx); in get_xbuf_size()
112 return ebx; 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()
140 xstate.xbuf_offset = ebx; in get_xstate_info()
A Draw_syscall_helper_32.S6 pushl %ebx
11 movl 1*4(%eax), %ebx
25 movl %ebx, 1*4(%eax)
34 popl %ebx
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 Dunwind_vdso.c74 unsigned long ebx = _Unwind_GetGR(ctx, 3); in trace_fn() local
79 ebx == 1 && ecx == 2 && edx == 3 && in trace_fn()
86 eax, ebx, ecx, edx, esi, edi, ebp); in trace_fn()
A Dptrace_syscall.c33 # define user_arg0 ebx
/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/perf/arch/x86/tests/
A Dintel-pt-test.c343 unsigned int ebx; member
366 __get_cpuid_count(20, i, &r.eax, &r.ebx, &r.ecx, &r.edx); in get_pt_caps()
369 pr_debug("ebx = 0x%08x\n", r.ebx); 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()
395 .ebx = GENMASK(8, 0), in compare_caps()
400 .ebx = GENMASK(31, 0), in compare_caps()
A Dregs_load.S69 movl %ebx, BX(%edi)
/tools/power/cpupower/utils/helpers/
A Dcpuid.c27 unsigned int eax, ebx, ecx, edx; \
28 __cpuid(op, eax, ebx, ecx, edx); \
32 cpuid_func(ebx);
/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
1412 get_cpuid_or_exit(1, &fms, &ebx, &ecx, &edx); in early_cpuid()
1426 get_cpuid_or_exit(0x6, &eax, &ebx, &ecx, &edx); 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()
1444 get_cpuid_or_exit(0, &max_level, &ebx, &ecx, &edx); in parse_cpuid()
1451 (char *)&ebx, (char *)&edx, (char *)&ecx); in parse_cpuid()
1453 get_cpuid_or_exit(1, &fms, &ebx, &ecx, &edx); in parse_cpuid()
[all …]
/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/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()
/tools/testing/selftests/kvm/include/x86/
A Dprocessor.h635 uint32_t *eax, uint32_t *ebx, in __cpuid() argument
643 "=b" (*ebx), in __cpuid()
651 uint32_t *eax, uint32_t *ebx, in cpuid() argument
654 return __cpuid(function, 0, eax, ebx, ecx, edx); in cpuid()
659 uint32_t eax, ebx, ecx, edx; in this_cpu_fms() local
661 cpuid(1, &eax, &ebx, &ecx, &edx); in this_cpu_fms()
678 uint32_t eax, ebx, ecx, edx; in this_cpu_vendor_string_is() local
680 cpuid(0, &eax, &ebx, &ecx, &edx); in this_cpu_vendor_string_is()
681 return (ebx == chunk[0] && edx == chunk[1] && ecx == chunk[2]); in this_cpu_vendor_string_is()
/tools/power/x86/turbostat/
A Dturbostat.c4460 unsigned int eax, ebx, ecx, edx; in get_apic_id() local
4463 eax = ebx = ecx = edx = 0; in get_apic_id()
4464 __cpuid(1, eax, ebx, ecx, edx); in get_apic_id()
4478 eax = ebx = ecx = edx = 0; in get_apic_id()
4485 eax = ebx = ecx = edx = 0; in get_apic_id()
6279 unsigned int eax, ebx, ecx, edx; in set_my_cpu_type() local
8818 eax = ebx = ecx = edx = 0; in process_cpuid()
8833 __cpuid(1, fms, ebx, ecx, edx); in process_cpuid()
8856 ebx = ecx = edx = 0; in process_cpuid()
8937 has_sgx = ebx & (1 << 2); in process_cpuid()
[all …]
/tools/arch/x86/include/uapi/asm/
A Dkvm.h233 __u32 ebx; member
251 __u32 ebx; member
/tools/perf/arch/x86/util/
A Dperf_regs.c70 SDT_NAME_REG(ebx, bx),
A Dintel-pt.c312 unsigned int eax = 0, ebx = 0, ecx = 0, edx = 0; in intel_pt_tsc_ctc_ratio() local
314 __get_cpuid(0x15, &eax, &ebx, &ecx, &edx); in intel_pt_tsc_ctc_ratio()
315 *n = ebx; in intel_pt_tsc_ctc_ratio()
/tools/testing/selftests/sgx/
A Dmain.c91 unsigned int eax, ebx, ecx, edx; in sgx2_supported() local
93 __cpuid_count(SGX_CPUID, 0x0, eax, ebx, ecx, edx); in sgx2_supported()
329 unsigned int eax, ebx, ecx, edx; in get_total_epc_mem() local
335 __cpuid_count(SGX_CPUID, section + SGX_CPUID_EPC, eax, ebx, ecx, edx); in get_total_epc_mem()

Completed in 75 milliseconds

12