Home
last modified time | relevance | path

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

12

/tools/testing/selftests/mm/
Dpkey-x86.h42 unsigned int ecx = 0; in __read_pkey_reg() local
47 : "c" (ecx)); in __read_pkey_reg()
55 unsigned int ecx = 0; in __write_pkey_reg() local
61 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg()
73 unsigned int ecx; in cpu_has_pkeys() local
76 __cpuid_count(0x7, 0x0, eax, ebx, ecx, edx); in cpu_has_pkeys()
78 if (!(ecx & X86_FEATURE_PKU)) { in cpu_has_pkeys()
82 if (!(ecx & X86_FEATURE_OSPKE)) { in cpu_has_pkeys()
94 unsigned int ecx; in cpu_max_xsave_size() local
97 __cpuid_count(XSTATE_CPUID, 0, eax, ebx, ecx, edx); in cpu_max_xsave_size()
[all …]
/tools/arch/x86/kcpuid/
Dkcpuid.c51 u32 eax, ebx, ecx, edx; member
88 static inline void cpuid(u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) in cpuid() argument
94 "=c" (*ecx), in cpuid()
96 : "0" (*eax), "2" (*ecx)); in cpuid()
131 leaf->sub, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw()
134 leaf->index, leaf->eax, leaf->ebx, leaf->ecx, leaf->edx); in leaf_print_raw()
176 leaf->ecx = c; in cpuid_store()
213 u32 eax, ebx, ecx, edx; in setup_cpuid_range() local
219 ebx = ecx = edx = 0; in setup_cpuid_range()
221 cpuid(&eax, &ebx, &ecx, &edx); in setup_cpuid_range()
[all …]
/tools/arch/x86/lib/
Dmemset_64.S50 movzbl %sil,%ecx
82 movl %edx,%ecx
83 andl $63&(~7),%ecx
85 shrl $3,%ecx
88 decl %ecx
Dmemcpy_64.S147 movl (%rsi), %ecx
149 movl %ecx, (%rdi)
159 movzbl (%rsi), %ecx
/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/testing/selftests/kvm/x86_64/
Dcpuid_test.c31 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local
36 &eax, &ebx, &ecx, &edx); in test_guest_cpuids()
40 GUEST_ASSERT_EQ(ecx, guest_cpuid->entries[i].ecx); in test_guest_cpuids()
95 e1->ecx == e2->ecx && e1->edx == e2->edx, in compare_cpuids()
98 e1->eax, e1->ebx, e1->ecx, e1->edx, in compare_cpuids()
99 e2->eax, e2->ebx, e2->ecx, e2->edx); in compare_cpuids()
Dpmu_event_filter_test.c461 uint32_t eax, ebx, ecx, edx; in supports_event_mem_inst_retired() local
463 cpuid(1, &eax, &ebx, &ecx, &edx); in supports_event_mem_inst_retired()
/tools/testing/selftests/x86/
Dcorrupt_xstate_header.c24 unsigned int eax, ebx, ecx, edx; in xsave_enabled() local
26 __cpuid_count(0x1, 0x0, eax, ebx, ecx, edx); in xsave_enabled()
29 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)
Damx.c108 uint32_t eax, ebx, ecx, edx; in check_cpuid_xsave() local
115 __cpuid_count(1, 0, eax, ebx, ecx, edx); in check_cpuid_xsave()
116 if (!(ecx & CPUID_LEAF1_ECX_XSAVE_MASK)) in check_cpuid_xsave()
118 if (!(ecx & CPUID_LEAF1_ECX_OSXSAVE_MASK)) in check_cpuid_xsave()
136 uint32_t eax, ebx, ecx, edx; in check_cpuid_xtiledata() local
139 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
151 eax, ebx, ecx, edx); in check_cpuid_xtiledata()
/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.c1396 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
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()
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()
1444 get_cpuid_or_exit(0, &max_level, &ebx, &ecx, &edx); in parse_cpuid()
1446 if (ebx == 0x756e6547 && edx == 0x49656e69 && ecx == 0x6c65746e) in parse_cpuid()
[all …]
/tools/perf/arch/x86/tests/
Dintel-pt-test.c344 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_hydrid() local
383 __get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx); in is_hydrid()
396 .ecx = GENMASK(3, 0), in compare_caps()
Dregs_load.S70 movl %ecx, CX(%edi)
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h593 uint32_t *ecx, uint32_t *edx) in __cpuid() argument
596 *ecx = index; in __cpuid()
601 "=c" (*ecx), in __cpuid()
603 : "0" (*eax), "2" (*ecx) in __cpuid()
609 uint32_t *ecx, uint32_t *edx) in cpuid() argument
611 return __cpuid(function, 0, eax, ebx, ecx, edx); in cpuid()
616 uint32_t eax, ebx, ecx, edx; in this_cpu_fms() local
618 cpuid(1, &eax, &ebx, &ecx, &edx); in this_cpu_fms()
635 uint32_t eax, ebx, ecx, edx; in this_cpu_vendor_string_is() local
637 cpuid(0, &eax, &ebx, &ecx, &edx); in this_cpu_vendor_string_is()
[all …]
/tools/arch/x86/include/asm/
Dasm.h61 #define _ASM_ARG3L ecx
91 #define _ASM_ARG4L ecx
/tools/power/x86/intel-speed-select/
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/perf/arch/x86/util/
Ddwarf-regs.c56 REG_OFFSET_NAME_32("%cx", ecx),
Dperf_regs.c74 SDT_NAME_REG(ecx, cx),
/tools/power/x86/turbostat/
Dturbostat.c2008 unsigned int eax, ebx, ecx, edx; in get_apic_id() local
2011 eax = ebx = ecx = edx = 0; in get_apic_id()
2012 __cpuid(1, eax, ebx, ecx, edx); in get_apic_id()
2026 eax = ebx = ecx = edx = 0; in get_apic_id()
2027 __cpuid(0x80000001, eax, ebx, ecx, edx); in get_apic_id()
2028 topology_extensions = ecx & (1 << 22); in get_apic_id()
2033 eax = ebx = ecx = edx = 0; in get_apic_id()
2034 __cpuid(0x8000001e, eax, ebx, ecx, edx); in get_apic_id()
2046 ecx = 0; in get_apic_id()
2047 __cpuid(0xb, eax, ebx, ecx, edx); in get_apic_id()
[all …]
/tools/arch/x86/include/uapi/asm/
Dkvm.h233 __u32 ecx; member
251 __u32 ecx; member
/tools/testing/selftests/sgx/
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()
344 total_size += sgx_calc_section_metric(ecx, edx); in get_total_epc_mem()

12