| /tools/testing/selftests/kvm/x86/ |
| A D | cpuid_test.c | 19 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 D | kvm_pv_test.c | 181 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 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()
|
| /tools/power/cpupower/debug/i386/ |
| A D | intel_gsic.c | 42 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 D | pkey-x86.h | 78 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 D | cpuid.csv | 29 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 D | kcpuid.c | 241 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 D | xstate.h | 102 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 D | raw_syscall_helper_32.S | 6 pushl %ebx 11 movl 1*4(%eax), %ebx 25 movl %ebx, 1*4(%eax) 34 popl %ebx
|
| 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 | unwind_vdso.c | 74 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 D | ptrace_syscall.c | 33 # define user_arg0 ebx
|
| /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/perf/arch/x86/tests/ |
| A D | intel-pt-test.c | 343 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 D | regs_load.S | 69 movl %ebx, BX(%edi)
|
| /tools/power/cpupower/utils/helpers/ |
| A D | cpuid.c | 27 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 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 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 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/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()
|
| /tools/testing/selftests/kvm/include/x86/ |
| A D | processor.h | 635 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 D | turbostat.c | 4460 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 D | kvm.h | 233 __u32 ebx; member 251 __u32 ebx; member
|
| /tools/perf/arch/x86/util/ |
| A D | perf_regs.c | 70 SDT_NAME_REG(ebx, bx),
|
| A D | intel-pt.c | 312 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 D | main.c | 91 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()
|