| /tools/testing/selftests/mm/ |
| A D | pkey-x86.h | 48 unsigned int ecx = 0; in __read_pkey_reg() local 53 : "c" (ecx)); in __read_pkey_reg() 61 unsigned int ecx = 0; in __write_pkey_reg() local 67 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg() 79 unsigned int ecx; in cpu_has_pkeys() local 82 __cpuid_count(0x7, 0x0, eax, ebx, ecx, edx); in cpu_has_pkeys() 84 if (!(ecx & X86_FEATURE_PKU)) { in cpu_has_pkeys() 88 if (!(ecx & X86_FEATURE_OSPKE)) { in cpu_has_pkeys() 100 unsigned int ecx; in cpu_max_xsave_size() local 104 return ecx; in cpu_max_xsave_size() [all …]
|
| /tools/arch/x86/kcpuid/ |
| A D | cpuid.csv | 41 0x1, 0, ecx, 8, tm2 , Thermal Monitor 2 42 0x1, 0, ecx, 9, ssse3 , Supplemental SSE3 43 0x1, 0, ecx, 10, cid , L1 Context ID 44 0x1, 0, ecx, 11, sdbg , Silicon Debug 51 0x1, 0, ecx, 19, sse4_1 , SSE4.1 52 0x1, 0, ecx, 20, sse4_2 , SSE4.2 53 0x1, 0, ecx, 21, x2apic , X2APIC support 108 0x2, 0, ecx, 7:0, desc8 , Descriptor #8 109 0x2, 0, ecx, 15:8, desc9 , Descriptor #9 110 0x2, 0, ecx, 23:16, desc10 , Descriptor #10 [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/kvm/x86/ |
| A D | cpuid_test.c | 20 u32 ecx; member 30 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local 35 &eax, &ebx, &ecx, &edx); in test_guest_cpuids() 39 GUEST_ASSERT_EQ(ecx, guest_cpuid->entries[i].ecx); in test_guest_cpuids() 109 (e1->ecx & mask.ecx) == (e2->ecx & mask.ecx) && in compare_cpuids() 114 e1->ecx & mask.ecx, e1->edx & mask.edx, in compare_cpuids() 116 e2->ecx & mask.ecx, e2->edx & mask.edx); in compare_cpuids()
|
| 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/arch/x86/lib/ |
| A D | memset_64.S | 52 movzbl %sil,%ecx 84 movl %edx,%ecx 85 andl $63&(~7),%ecx 87 shrl $3,%ecx 90 decl %ecx
|
| A D | memcpy_64.S | 148 movl (%rsi), %ecx 150 movl %ecx, (%rdi) 160 movzbl (%rsi), %ecx
|
| /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/x86/ |
| 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() 30 return ecx & (1U << 27); in xsave_enabled()
|
| 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()
|
| A D | thunks_32.S | 22 push %ecx 43 pop %ecx
|
| A D | unwind_vdso.c | 72 unsigned long ecx = _Unwind_GetGR(ctx, 1); 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 | raw_syscall_helper_32.S | 12 movl 2*4(%eax), %ecx 26 movl %ecx, 2*4(%eax)
|
| /tools/power/cpupower/debug/i386/ |
| A D | intel_gsic.c | 45 printf("\tevent port = 0x%.8x\n", r.ecx); in main() 65 printf("ecx = 0x%.8x\n", r.ecx); in main()
|
| /tools/power/cpupower/utils/helpers/ |
| A D | cpuid.c | 27 unsigned int eax, ebx, ecx, edx; \ 28 __cpuid(op, eax, ebx, ecx, edx); \ 33 cpuid_func(ecx);
|
| /tools/power/x86/x86_energy_perf_policy/ |
| A D | x86_energy_perf_policy.c | 1396 unsigned int *ecx, unsigned int *edx) 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 1429 has_epb = (ecx >> 3) & 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() 1451 (char *)&ebx, (char *)&edx, (char *)&ecx); in parse_cpuid() 1464 ecx & (1 << 0) ? "SSE3" : "-", in parse_cpuid() 1465 ecx & (1 << 3) ? "MONITOR" : "-", in parse_cpuid() 1466 ecx & (1 << 7) ? "EIST" : "-", in parse_cpuid() [all …]
|
| /tools/perf/arch/x86/tests/ |
| A D | intel-pt-test.c | 344 unsigned int ecx; member 366 __get_cpuid_count(20, i, &r.eax, &r.ebx, &r.ecx, &r.edx); in get_pt_caps() 370 pr_debug("ecx = 0x%08x\n", r.ecx); 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() 396 .ecx = GENMASK(3, 0), in compare_caps()
|
| A D | regs_load.S | 70 movl %ecx, CX(%edi)
|
| /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() 307 return ((ecx >> 3) & 1); in arch_supports_noncont_cat()
|
| /tools/testing/selftests/kvm/include/x86/ |
| A D | processor.h | 636 uint32_t *ecx, uint32_t *edx) in __cpuid() argument 639 *ecx = index; in __cpuid() 644 "=c" (*ecx), in __cpuid() 646 : "0" (*eax), "2" (*ecx) in __cpuid() 652 uint32_t *ecx, uint32_t *edx) 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() [all …]
|
| /tools/arch/x86/include/asm/ |
| A D | asm.h | 61 #define _ASM_ARG3L ecx 91 #define _ASM_ARG4L ecx
|
| /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/power/x86/turbostat/ |
| A D | turbostat.c | 4463 eax = ebx = ecx = edx = 0; in get_apic_id() 4478 eax = ebx = ecx = edx = 0; in get_apic_id() 4485 eax = ebx = ecx = edx = 0; in get_apic_id() 4498 ecx = 0; in get_apic_id() 8818 eax = ebx = ecx = edx = 0; in process_cpuid() 8833 __cpuid(1, fms, ebx, ecx, edx); in process_cpuid() 8841 ecx_flags = ecx; in process_cpuid() 8856 ebx = ecx = edx = 0; in process_cpuid() 8900 has_aperf = ecx & (1 << 0); in process_cpuid() 8913 has_epb = ecx & (1 << 3); in process_cpuid() [all …]
|
| /tools/arch/x86/include/uapi/asm/ |
| A D | kvm.h | 234 __u32 ecx; member 252 __u32 ecx; member
|
| /tools/perf/arch/x86/util/ |
| A D | perf_regs.c | 74 SDT_NAME_REG(ecx, cx),
|