Home
last modified time | relevance | path

Searched refs:ecx (Results 1 – 25 of 32) sorted by relevance

12

/tools/testing/selftests/vm/
Dpkey-x86.h60 unsigned int ecx = 0; in __read_pkey_reg() local
65 : "c" (ecx)); in __read_pkey_reg()
73 unsigned int ecx = 0; in __write_pkey_reg() local
79 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg()
84 unsigned int *ecx, unsigned int *edx) in __cpuid() argument
91 "=c" (*ecx), in __cpuid()
93 : "0" (*eax), "2" (*ecx)); in __cpuid()
104 unsigned int ecx; in cpu_has_pkeys() local
108 ecx = 0x0; in cpu_has_pkeys()
109 __cpuid(&eax, &ebx, &ecx, &edx); in cpu_has_pkeys()
[all …]
/tools/testing/selftests/x86/
Dcorrupt_xstate_header.c21 unsigned int *ecx, unsigned int *edx) in __cpuid() argument
27 "=c" (*ecx), in __cpuid()
29 : "0" (*eax), "2" (*ecx)); in __cpuid()
34 unsigned int eax, ebx, ecx, edx; in xsave_enabled() local
37 ecx = 0x0; in xsave_enabled()
38 __cpuid(&eax, &ebx, &ecx, &edx); in xsave_enabled()
41 return ecx & (1U << 27); in xsave_enabled()
Dthunks_32.S22 push %ecx
43 pop %ecx
Dunwind_vdso.c84 unsigned long ecx = _Unwind_GetGR(ctx, 1); in trace_fn() local
91 ebx == 1 && ecx == 2 && edx == 3 && in trace_fn()
98 eax, ebx, ecx, edx, esi, edi, ebp); in trace_fn()
Draw_syscall_helper_32.S12 movl 2*4(%eax), %ecx
26 movl %ecx, 2*4(%eax)
/tools/testing/selftests/kvm/x86_64/
Dget_cpuid_test.c33 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local
37 ecx = guest_cpuid->entries[i].index; in test_guest_cpuids()
39 cpuid(&eax, &ebx, &ecx, &edx); in test_guest_cpuids()
43 ecx == guest_cpuid->entries[i].ecx && in test_guest_cpuids()
51 u32 eax = 0x40000000, ebx, ecx = 0, edx; in test_cpuid_40000000() local
53 cpuid(&eax, &ebx, &ecx, &edx); in test_cpuid_40000000()
96 cpuid->entries[i].ecx == entrie->ecx && in check_cpuid()
101 cpuid->entries[i].ecx, cpuid->entries[i].edx, in check_cpuid()
102 entrie->eax, entrie->ebx, entrie->ecx, entrie->edx); in check_cpuid()
Dset_sregs_test.c59 if (cpuid_7->ecx & CPUID_UMIP) in calc_cr4_feature_bits()
61 if (cpuid_7->ecx & CPUID_LA57) in calc_cr4_feature_bits()
63 if (cpuid_1->ecx & CPUID_VMX) in calc_cr4_feature_bits()
65 if (cpuid_1->ecx & CPUID_SMX) in calc_cr4_feature_bits()
69 if (cpuid_1->ecx & CPUID_PCID) in calc_cr4_feature_bits()
71 if (cpuid_1->ecx & CPUID_XSAVE) in calc_cr4_feature_bits()
77 if (cpuid_7->ecx & CPUID_PKU) in calc_cr4_feature_bits()
Dcr4_cpuid_sync_test.c29 uint32_t eax, ebx, ecx, edx; in cr4_cpuid_is_sync() local
35 : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) in cr4_cpuid_is_sync()
40 return (!!(ecx & X86_FEATURE_OSXSAVE)) == (!!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
74 if (!(entry->ecx & X86_FEATURE_XSAVE)) { in main()
Dvmx_pmu_msrs_test.c79 pdcm_supported = entry_1_0 && !!(entry_1_0->ecx & X86_FEATURE_PDCM); in main()
114 entry_1_0->ecx &= ~X86_FEATURE_PDCM; in main()
120 entry_1_0->ecx |= X86_FEATURE_PDCM; in main()
122 entry_1_0->ecx = eax.full; in main()
Dvmx_set_nested_state_test.c258 cpuid->entries[i].ecx &= ~CPUID_VMX; in disable_vmx()
260 cpuid->entries[i].ecx |= CPUID_VMX; in disable_vmx()
/tools/arch/x86/kcpuid/
Dkcpuid.c47 u32 eax, ebx, ecx, edx; member
84 static inline void cpuid(u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) in cpuid() argument
90 "=c" (*ecx), in cpuid()
92 : "0" (*eax), "2" (*ecx)); in cpuid()
127 leaf->sub, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw()
130 leaf->index, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw()
172 leaf->ecx = c; in cpuid_store()
209 u32 eax, ebx, ecx, edx; in setup_cpuid_range() local
215 ebx = ecx = edx = 0; in setup_cpuid_range()
217 cpuid(&eax, &ebx, &ecx, &edx); in setup_cpuid_range()
[all …]
/tools/arch/x86/lib/
Dmemset_64.S40 movl %edx,%ecx
73 movzbl %sil,%ecx
105 movl %edx,%ecx
106 andl $63&(~7),%ecx
108 shrl $3,%ecx
111 decl %ecx
Dmemcpy_64.S40 movl %edx, %ecx
161 movl (%rsi), %ecx
163 movl %ecx, (%rdi)
173 movzbl (%rsi), %ecx
/tools/testing/selftests/kvm/include/x86_64/
Dsvm_util.h41 u32 eax = 0x80000001, ecx; in cpu_has_svm() local
44 "=a" (eax), "=c" (ecx) : "0" (eax) : "ebx", "edx"); in cpu_has_svm()
46 return ecx & CPUID_SVM; in cpu_has_svm()
Dprocessor.h285 uint32_t *ecx, uint32_t *edx) in cpuid() argument
291 "=c" (*ecx), in cpuid()
293 : "0" (*eax), "2" (*ecx) in cpuid()
/tools/build/feature/
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/power/cpupower/debug/i386/
Dintel_gsic.c45 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/
Dcpuid.c27 unsigned int eax, ebx, ecx, edx; \
28 __cpuid(op, eax, ebx, ecx, edx); \
33 cpuid_func(ecx);
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c1395 unsigned int *ecx, unsigned int *edx) in get_cpuid_or_exit() argument
1397 if (!__get_cpuid(leaf, eax, ebx, ecx, edx)) in get_cpuid_or_exit()
1408 unsigned int eax, ebx, ecx, edx; in early_cpuid() local
1411 get_cpuid_or_exit(1, &fms, &ebx, &ecx, &edx); in early_cpuid()
1425 get_cpuid_or_exit(0x6, &eax, &ebx, &ecx, &edx); in early_cpuid()
1428 has_epb = (ecx >> 3) & 1; in early_cpuid()
1438 unsigned int eax, ebx, ecx, edx, max_level; in parse_cpuid() local
1441 eax = ebx = ecx = edx = 0; in parse_cpuid()
1443 get_cpuid_or_exit(0, &max_level, &ebx, &ecx, &edx); in parse_cpuid()
1445 if (ebx == 0x756e6547 && edx == 0x49656e69 && ecx == 0x6c65746e) in parse_cpuid()
[all …]
/tools/arch/x86/include/asm/
Dasm.h61 #define _ASM_ARG3L ecx
91 #define _ASM_ARG4L ecx
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1167 int eax, ebx, ecx, edx; in is_intel_cpu() local
1174 "=c"(ecx), "=d"(edx) in is_intel_cpu()
1178 return (ebx == chunk[0] && edx == chunk[1] && ecx == chunk[2]); in is_intel_cpu()
1419 uint32_t eax, ebx, ecx, edx, max_ext_leaf; in vm_compute_max_gfn() local
1424 eax = ecx = 0; in vm_compute_max_gfn()
1425 cpuid(&eax, &ebx, &ecx, &edx); in vm_compute_max_gfn()
1427 ecx != X86EMUL_CPUID_VENDOR_AuthenticAMD_ecx || in vm_compute_max_gfn()
1438 cpuid(&eax, &ebx, &ecx, &edx); in vm_compute_max_gfn()
1448 cpuid(&eax, &ebx, &ecx, &edx); in vm_compute_max_gfn()
1454 cpuid(&eax, &ebx, &ecx, &edx); in vm_compute_max_gfn()
[all …]
/tools/perf/arch/x86/util/
Ddwarf-regs.c56 REG_OFFSET_NAME_32("%cx", ecx),
/tools/power/x86/turbostat/
Dturbostat.c1944 unsigned int eax, ebx, ecx, edx; in get_apic_id() local
1947 eax = ebx = ecx = edx = 0; in get_apic_id()
1948 __cpuid(1, eax, ebx, ecx, edx); in get_apic_id()
1962 eax = ebx = ecx = edx = 0; in get_apic_id()
1963 __cpuid(0x80000001, eax, ebx, ecx, edx); in get_apic_id()
1964 topology_extensions = ecx & (1 << 22); in get_apic_id()
1969 eax = ebx = ecx = edx = 0; in get_apic_id()
1970 __cpuid(0x8000001e, eax, ebx, ecx, edx); in get_apic_id()
1982 ecx = 0; in get_apic_id()
1983 __cpuid(0xb, eax, ebx, ecx, edx); in get_apic_id()
[all …]
/tools/perf/arch/x86/tests/
Dregs_load.S70 movl %ecx, CX(%edi)
/tools/arch/x86/include/uapi/asm/
Dkvm.h235 __u32 ecx; member
253 __u32 ecx; member

12