/external/tensorflow/tensorflow/core/platform/ |
D | cpu_info.cc | 58 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/u-boot/cmd/ |
D | mp.c | 12 unsigned long cpuid; in cpu_status_all() local 14 for (cpuid = 0; ; cpuid++) { in cpu_status_all() 15 if (!is_core_valid(cpuid)) { in cpu_status_all() 16 if (cpuid == 0) { in cpu_status_all() 17 printf("Core num: %lu is not valid\n", cpuid); in cpu_status_all() 22 cpu_status(cpuid); in cpu_status_all() 31 unsigned long cpuid; in cpu_cmd() local 39 cpuid = simple_strtoul(argv[1], NULL, 10); in cpu_cmd() 40 if (!is_core_valid(cpuid)) { in cpu_cmd() 41 printf ("Core num: %lu is not valid\n", cpuid); in cpu_cmd() [all …]
|
/external/strace/ |
D | kvm.c | 44 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/ |
D | ioctl_kvm_run_common.c | 268 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/ |
D | ioctl_kvm_run_common.c | 268 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/ |
D | ioctl_kvm_run_common.c | 268 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/u-boot/arch/arm/mach-rockchip/ |
D | misc.c | 26 const char *cpuid = env_get("cpuid#"); in rockchip_setup_macaddr() local 35 if (!cpuid) { in rockchip_setup_macaddr() 40 ret = hash_block("sha256", (void *)cpuid, strlen(cpuid), hash, &size); in rockchip_setup_macaddr() 59 u8 *cpuid) in rockchip_cpuid_from_efuse() argument 79 ret = misc_read(dev, cpuid_offset, cpuid, cpuid_length); in rockchip_cpuid_from_efuse() 89 int rockchip_cpuid_set(const u8 *cpuid, const u32 cpuid_length) in rockchip_cpuid_set() argument 100 sprintf(&cpuid_str[i * 2], "%02x", cpuid[i]); in rockchip_cpuid_set() 109 low[i] = cpuid[1 + (i << 1)]; in rockchip_cpuid_set() 110 high[i] = cpuid[i << 1]; in rockchip_cpuid_set()
|
/external/u-boot/arch/arm/mach-omap2/omap3/ |
D | sys_info.c | 70 u32 cpuid = 0; in get_cpu_id() local 76 __asm__ __volatile__("mrc p15, 0, %0, c0, c0, 0":"=r"(cpuid)); in get_cpu_id() 77 if ((cpuid & 0xf) == 0x0) { in get_cpu_id() 83 cpuid = readl(&id_base->idcode); in get_cpu_id() 86 return cpuid; in get_cpu_id() 96 u32 cpuid = get_cpu_id(); in get_cpu_family() local 98 if (cpuid == 0) in get_cpu_family() 101 hawkeye = (cpuid >> HAWKEYE_SHIFT) & 0xffff; in get_cpu_family() 124 u32 cpuid = get_cpu_id(); in get_cpu_rev() local 126 if (cpuid == 0) in get_cpu_rev() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_cpuid.c | 102 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/ |
D | CPUID.cpp | 163 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/libvpx/libvpx/vpx_ports/ |
D | x86.h | 47 #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/libaom/libaom/aom_ports/ |
D | x86.h | 48 #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/autotest/client/tests/ltp/patches/ |
D | cpuid.patch | 4 Subject: [PATCH] cpuid: add common header 6 Add a helper function for people to execute the cpuid asm code. 33 +static inline void cpuid(unsigned int info, unsigned int *eax, unsigned int *ebx, 40 + "cpuid;" 71 -inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx) 76 - __asm__("cpuid" 93 cpuid(1,&eax,&ebx,&ecx,&edx); 112 -inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx) 117 - __asm__("cpuid" 134 cpuid(1,&eax,&ebx,&ecx,&edx); [all …]
|
/external/swiftshader/src/System/ |
D | CPUID.cpp | 165 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/ |
D | CPUID.cpp | 165 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/cpuinfo/src/x86/ |
D | init.c | 16 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() 74 brand_string[i] = cpuid(UINT32_C(0x80000002) + i); in cpuinfo_x86_init_processor()
|
/external/dtc/tests/ |
D | boot-cpuid.c | 32 uint32_t cpuid; in main() local 40 cpuid = strtoul(argv[2], NULL, 0); in main() 42 if (fdt_boot_cpuid_phys(fdt) != cpuid) in main() 44 fdt_boot_cpuid_phys(fdt), cpuid); in main()
|
/external/ltp/testcases/realtime/func/matrix_mult/ |
D | matrix_mult.c | 151 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/lib/pmf/ |
D | pmf_main.c | 194 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/libyuv/files/ |
D | linux.mk | 68 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/cpuinfo/scripts/ |
D | android-x86-cpuid-dump.sh | 5 adb push build/android/x86/cpuid-dump /data/local/tmp/cpuid-dump 6 adb shell /data/local/tmp/cpuid-dump
|
/external/libopus/celt/x86/ |
D | x86cpu.c | 47 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/ |
D | jemalloc_internal_inlines_a.h | 26 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/ |
D | pm_client.c | 222 unsigned int cpuid = pm_get_cpuid(proc->node_id); in pm_client_wakeup() local 224 if (cpuid == UNDEFINED_CPUID) in pm_client_wakeup() 243 const struct pm_proc *pm_get_proc(unsigned int cpuid) in pm_get_proc() argument 245 if (cpuid < ARRAY_SIZE(pm_procs_all)) in pm_get_proc() 246 return &pm_procs_all[cpuid]; in pm_get_proc()
|
/external/u-boot/board/pine64/rockpro64_rk3399/ |
D | rockpro64-rk3399.c | 37 u8 cpuid[cpuid_length]; in misc_init_r() local 42 ret = rockchip_cpuid_from_efuse(cpuid_offset, cpuid_length, cpuid); in misc_init_r() 46 ret = rockchip_cpuid_set(cpuid, cpuid_length); in misc_init_r()
|