Home
last modified time | relevance | path

Searched refs:cpuid (Results 1 – 25 of 212) sorted by relevance

123456789

/external/tensorflow/tensorflow/core/platform/
Dcpu_info.cc58 CPUIDInfo *cpuid = nullptr; variable
115 CHECK(cpuid == nullptr) << __func__ << " ran more than once"; in Initialize()
116 cpuid = new CPUIDInfo; in Initialize()
122 cpuid->vendor_str_.append(reinterpret_cast<char *>(&ebx), 4); in Initialize()
123 cpuid->vendor_str_.append(reinterpret_cast<char *>(&edx), 4); in Initialize()
124 cpuid->vendor_str_.append(reinterpret_cast<char *>(&ecx), 4); in Initialize()
132 cpuid->model_num_ = static_cast<int>((eax >> 4) & 0xf); in Initialize()
133 cpuid->family_ = static_cast<int>((eax >> 8) & 0xf); in Initialize()
135 cpuid->have_aes_ = (ecx >> 25) & 0x1; in Initialize()
136 cpuid->have_cmov_ = (edx >> 15) & 0x1; in Initialize()
[all …]
/external/strace/
Dkvm.c44 int cpuid; member
65 vcpu_alloc(struct tcb *const tcp, int fd, int cpuid) in vcpu_alloc() argument
70 vcpu_info->cpuid = cpuid; in vcpu_alloc()
92 vcpu_register(struct tcb *const tcp, int fd, int cpuid) in vcpu_register() argument
100 vcpu_info = vcpu_alloc(tcp, fd, cpuid); in vcpu_register()
101 else if (vcpu_info->cpuid != cpuid) in vcpu_register()
103 vcpu_info->cpuid = cpuid; in vcpu_register()
154 int cpuid = string_to_uint(cpuid_str); in vcpu_get_info() local
155 if (cpuid < 0) in vcpu_get_info()
157 if (vcpu_info->cpuid == cpuid) in vcpu_get_info()
[all …]
/external/strace/tests/
Dioctl_kvm_run_common.c268 const char *ioctl_name, const struct kvm_cpuid2 *cpuid) in print_cpuid_ioctl() argument
271 fd, fd_dev, ioctl_name, cpuid->nent); in print_cpuid_ioctl()
273 for (size_t i = 0; i < cpuid->nent; i++) { in print_cpuid_ioctl()
277 cpuid->entries[i].function, cpuid->entries[i].index); in print_cpuid_ioctl()
278 printflags(kvm_cpuid_flags, cpuid->entries[i].flags, in print_cpuid_ioctl()
281 cpuid->entries[i].eax, cpuid->entries[i].ebx, in print_cpuid_ioctl()
282 cpuid->entries[i].ecx, cpuid->entries[i].edx); in print_cpuid_ioctl()
285 if (cpuid->nent) in print_cpuid_ioctl()
371 struct kvm_cpuid2 *cpuid = tail_alloc(sizeof(*cpuid) + in main() local
373 sizeof(*cpuid->entries)); in main()
[all …]
/external/strace/tests-m32/
Dioctl_kvm_run_common.c268 const char *ioctl_name, const struct kvm_cpuid2 *cpuid) in print_cpuid_ioctl() argument
271 fd, fd_dev, ioctl_name, cpuid->nent); in print_cpuid_ioctl()
273 for (size_t i = 0; i < cpuid->nent; i++) { in print_cpuid_ioctl()
277 cpuid->entries[i].function, cpuid->entries[i].index); in print_cpuid_ioctl()
278 printflags(kvm_cpuid_flags, cpuid->entries[i].flags, in print_cpuid_ioctl()
281 cpuid->entries[i].eax, cpuid->entries[i].ebx, in print_cpuid_ioctl()
282 cpuid->entries[i].ecx, cpuid->entries[i].edx); in print_cpuid_ioctl()
285 if (cpuid->nent) in print_cpuid_ioctl()
371 struct kvm_cpuid2 *cpuid = tail_alloc(sizeof(*cpuid) + in main() local
373 sizeof(*cpuid->entries)); in main()
[all …]
/external/strace/tests-mx32/
Dioctl_kvm_run_common.c268 const char *ioctl_name, const struct kvm_cpuid2 *cpuid) in print_cpuid_ioctl() argument
271 fd, fd_dev, ioctl_name, cpuid->nent); in print_cpuid_ioctl()
273 for (size_t i = 0; i < cpuid->nent; i++) { in print_cpuid_ioctl()
277 cpuid->entries[i].function, cpuid->entries[i].index); in print_cpuid_ioctl()
278 printflags(kvm_cpuid_flags, cpuid->entries[i].flags, in print_cpuid_ioctl()
281 cpuid->entries[i].eax, cpuid->entries[i].ebx, in print_cpuid_ioctl()
282 cpuid->entries[i].ecx, cpuid->entries[i].edx); in print_cpuid_ioctl()
285 if (cpuid->nent) in print_cpuid_ioctl()
371 struct kvm_cpuid2 *cpuid = tail_alloc(sizeof(*cpuid) + in main() local
373 sizeof(*cpuid->entries)); in main()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c102 static struct kvm_cpuid2 cpuid = {.nent = 0}; in test_hv_cpuid_e2big() local
105 ret = _vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, &cpuid); in test_hv_cpuid_e2big()
116 static struct kvm_cpuid2 *cpuid; in kvm_get_supported_hv_cpuid() local
118 cpuid = malloc(sizeof(*cpuid) + nent * sizeof(struct kvm_cpuid_entry2)); in kvm_get_supported_hv_cpuid()
120 if (!cpuid) { in kvm_get_supported_hv_cpuid()
125 cpuid->nent = nent; in kvm_get_supported_hv_cpuid()
127 vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, cpuid); in kvm_get_supported_hv_cpuid()
129 return cpuid; in kvm_get_supported_hv_cpuid()
/external/swiftshader/src/Reactor/
DCPUID.cpp163 static void cpuid(int registers[4], int info) in cpuid() function
184 cpuid(registers, 1); in detectMMX()
191 cpuid(registers, 1); in detectCMOV()
198 cpuid(registers, 1); in detectSSE()
205 cpuid(registers, 1); in detectSSE2()
212 cpuid(registers, 1); in detectSSE3()
219 cpuid(registers, 1); in detectSSSE3()
226 cpuid(registers, 1); in detectSSE4_1()
/external/libaom/libaom/aom_ports/
Dx86.h48 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
53 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
64 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
73 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
85 #define cpuid(func, func2, a, b, c, d) \ macro
95 #define cpuid(func, func2, a, b, c, d) \ macro
107 #define cpuid(func, func2, a, b, c, d) \ macro
110 __asm cpuid \
187 cpuid(0, 0, max_cpuid_val, reg_ebx, reg_ecx, reg_edx); in x86_simd_caps()
192 cpuid(1, 0, reg_eax, reg_ebx, reg_ecx, reg_edx); in x86_simd_caps()
[all …]
/external/libvpx/libvpx/vpx_ports/
Dx86.h47 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
52 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
63 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
72 #define cpuid(func, func2, ax, bx, cx, dx) \ macro
84 #define cpuid(func, func2, a, b, c, d) \ macro
94 #define cpuid(func, func2, a, b, c, d) \ macro
105 #define cpuid(func, func2, a, b, c, d) \ macro
106 __asm mov eax, func __asm mov ecx, func2 __asm cpuid __asm mov a, \
184 cpuid(0, 0, max_cpuid_val, reg_ebx, reg_ecx, reg_edx); in x86_simd_caps()
189 cpuid(1, 0, reg_eax, reg_ebx, reg_ecx, reg_edx); in x86_simd_caps()
[all …]
/external/swiftshader/src/System/
DCPUID.cpp165 static void cpuid(int registers[4], int info) in cpuid() function
186 cpuid(registers, 1); in detectMMX()
193 cpuid(registers, 1); in detectCMOV()
200 cpuid(registers, 1); in detectSSE()
207 cpuid(registers, 1); in detectSSE2()
214 cpuid(registers, 1); in detectSSE3()
221 cpuid(registers, 1); in detectSSSE3()
228 cpuid(registers, 1); in detectSSE4_1()
/external/swiftshader/src/Common/
DCPUID.cpp165 static void cpuid(int registers[4], int info) in cpuid() function
184 cpuid(registers, 1); in detectMMX()
191 cpuid(registers, 1); in detectCMOV()
198 cpuid(registers, 1); in detectSSE()
205 cpuid(registers, 1); in detectSSE2()
212 cpuid(registers, 1); in detectSSE3()
219 cpuid(registers, 1); in detectSSSE3()
226 cpuid(registers, 1); in detectSSE4_1()
/external/llvm-project/lldb/utils/lit-cpuid/
DCMakeLists.txt1 add_lldb_executable(lit-cpuid
2 lit-cpuid.cpp
5 target_link_libraries(lit-cpuid PRIVATE LLVMSupport)
6 set_target_properties(lit-cpuid PROPERTIES FOLDER "lldb utils")
/external/cpuinfo/src/x86/
Dinit.c16 const struct cpuid_regs leaf0 = cpuid(0); in cpuinfo_x86_init_processor()
21 const struct cpuid_regs leaf0x80000000 = cpuid(UINT32_C(0x80000000)); in cpuinfo_x86_init_processor()
26 cpuid(UINT32_C(0x80000001)) : (struct cpuid_regs) { 0, 0, 0, 0 }; in cpuinfo_x86_init_processor()
29 const struct cpuid_regs leaf1 = cpuid(1); in cpuinfo_x86_init_processor()
30 processor->cpuid = leaf1.eax; in cpuinfo_x86_init_processor()
70 brand_string[i] = cpuid(UINT32_C(0x80000002) + i); in cpuinfo_x86_init_processor()
/external/dtc/tests/
Dboot-cpuid.c19 uint32_t cpuid; in main() local
27 cpuid = strtoul(argv[2], NULL, 0); in main()
29 if (fdt_boot_cpuid_phys(fdt) != cpuid) in main()
31 fdt_boot_cpuid_phys(fdt), cpuid); in main()
/external/crosvm/x86_64/src/
Dcpuid.rs50 cpuid: &mut hypervisor::CpuId, in filter_cpuid()
54 let entries = &mut cpuid.cpu_id_entries; in filter_cpuid()
164 let mut cpuid = hypervisor in setup_cpuid() localVariable
168 filter_cpuid(vcpu_id, nrcpus, &mut cpuid, irq_chip, no_smt); in setup_cpuid()
170 vcpu.set_cpuid(&cpuid) in setup_cpuid()
194 let mut cpuid = hypervisor::CpuId::new(2); in feature_and_vendor_name() localVariable
201 let entries = &mut cpuid.cpu_id_entries; in feature_and_vendor_name()
212 filter_cpuid(1, 2, &mut cpuid, &irq_chip, false); in feature_and_vendor_name()
214 let entries = &mut cpuid.cpu_id_entries; in feature_and_vendor_name()
/external/zstd/lib/common/
Dcpu.h101 ZSTD_cpuid_t cpuid; in ZSTD_cpuid() local
102 cpuid.f1c = f1c; in ZSTD_cpuid()
103 cpuid.f1d = f1d; in ZSTD_cpuid()
104 cpuid.f7b = f7b; in ZSTD_cpuid()
105 cpuid.f7c = f7c; in ZSTD_cpuid()
106 return cpuid; in ZSTD_cpuid()
111 MEM_STATIC int ZSTD_cpuid_##name(ZSTD_cpuid_t const cpuid) { \
112 return ((cpuid.r) & (1U << bit)) != 0; \
/external/ltp/testcases/realtime/func/matrix_mult/
Dmatrix_mult.c151 int cpuid; in set_affinity() local
160 cpuid = online_cpu_id; /* Save this value before unlocking mutex */ in set_affinity()
162 return cpuid; in set_affinity()
173 int cpuid; in concurrent_thread() local
177 cpuid = set_affinity(); in concurrent_thread()
178 if (cpuid == -1) { in concurrent_thread()
197 int cpuid; in main_thread() local
215 cpuid = set_affinity(); in main_thread()
216 if (cpuid == -1) { in main_thread()
/external/arm-trusted-firmware/plat/brcm/board/stingray/src/
Dpm.c37 int cpuid; in brcm_pwr_domain_on() local
39 cpuid = plat_brcm_calc_core_pos(mpidr); in brcm_pwr_domain_on()
40 INFO("mpidr :%lu, cpuid:%d\n", mpidr, cpuid); in brcm_pwr_domain_on()
43 if (cpuid > 1) in brcm_pwr_domain_on()
/external/arm-trusted-firmware/lib/pmf/
Dpmf_main.c194 unsigned int cpuid) in calc_ts_addr() argument
196 assert(cpuid < PLATFORM_CORE_COUNT); in calc_ts_addr()
202 base_addr += ((cpuid * PMF_PERCPU_TIMESTAMP_SIZE) + in calc_ts_addr()
245 unsigned int cpuid, in __pmf_get_timestamp() argument
248 assert(cpuid < PLATFORM_CORE_COUNT); in __pmf_get_timestamp()
250 tid, cpuid); in __pmf_get_timestamp()
/external/cpuinfo/scripts/
Dandroid-x86-cpuid-dump.sh5 adb push build/android/x86/cpuid-dump /data/local/tmp/cpuid-dump
6 adb shell /data/local/tmp/cpuid-dump
/external/libyuv/files/
Dlinux.mk68 all: libyuv.a yuvconvert cpuid psnr
84 cpuid: util/cpuid.c libyuv.a
85 $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a
88 /bin/rm -f source/*.o *.ii *.s libyuv.a yuvconvert cpuid psnr
/external/libopus/celt/x86/
Dx86cpu.c47 static _inline void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) in cpuid() function
58 static void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) in cpuid() function
104 cpuid(info, 0); in opus_cpu_feature_check()
108 cpuid(info, 1); in opus_cpu_feature_check()
/external/jemalloc_new/include/jemalloc/internal/
Djemalloc_internal_inlines_a.h26 malloc_cpuid_t cpuid = malloc_getcpu(); in percpu_arena_choose() local
27 assert(cpuid >= 0); in percpu_arena_choose()
30 if ((opt_percpu_arena == percpu_arena) || ((unsigned)cpuid < ncpus / in percpu_arena_choose()
32 arena_ind = cpuid; in percpu_arena_choose()
36 arena_ind = cpuid - ncpus / 2; in percpu_arena_choose()
/external/arm-trusted-firmware/plat/xilinx/versal/pm_service/
Dpm_client.c223 unsigned int cpuid = pm_get_cpuid(proc->node_id); in pm_client_wakeup() local
225 if (cpuid == UNDEFINED_CPUID) in pm_client_wakeup()
244 const struct pm_proc *pm_get_proc(unsigned int cpuid) in pm_get_proc() argument
246 if (cpuid < ARRAY_SIZE(pm_procs_all)) in pm_get_proc()
247 return &pm_procs_all[cpuid]; in pm_get_proc()
/external/ltp/testcases/kernel/controllers/cpuset/
Dcpuset_funcs.sh239 local cpuid=
240 for cpuid in $cpus_array
242 local file="/sys/devices/system/cpu/cpu$cpuid/online"
245 cpu_hotplug $cpuid "online"

123456789