/external/tensorflow/tensorflow/core/platform/ |
D | cpu_info.cc | 56 CPUIDInfo *cpuid = nullptr; variable 113 CHECK(cpuid == nullptr) << __func__ << " ran more than once"; in Initialize() 114 cpuid = new CPUIDInfo; in Initialize() 120 cpuid->vendor_str_.append(reinterpret_cast<char *>(&ebx), 4); in Initialize() 121 cpuid->vendor_str_.append(reinterpret_cast<char *>(&edx), 4); in Initialize() 122 cpuid->vendor_str_.append(reinterpret_cast<char *>(&ecx), 4); in Initialize() 130 cpuid->model_num_ = static_cast<int>((eax >> 4) & 0xf); in Initialize() 131 cpuid->family_ = static_cast<int>((eax >> 8) & 0xf); in Initialize() 133 cpuid->have_aes_ = (ecx >> 25) & 0x1; in Initialize() 134 cpuid->have_cmov_ = (edx >> 15) & 0x1; in Initialize() [all …]
|
/external/u-boot/cmd/ |
D | mp.c | 11 unsigned long cpuid; in cpu_status_all() local 13 for (cpuid = 0; ; cpuid++) { in cpu_status_all() 14 if (!is_core_valid(cpuid)) { in cpu_status_all() 15 if (cpuid == 0) { in cpu_status_all() 16 printf("Core num: %lu is not valid\n", cpuid); in cpu_status_all() 21 cpu_status(cpuid); in cpu_status_all() 30 unsigned long cpuid; in cpu_cmd() local 38 cpuid = simple_strtoul(argv[1], NULL, 10); in cpu_cmd() 39 if (!is_core_valid(cpuid)) { in cpu_cmd() 40 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-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/u-boot/board/theobroma-systems/puma_rk3399/ |
D | puma-rk3399.c | 101 const char *cpuid = env_get("cpuid#"); in setup_macaddr() local 110 if (!cpuid) { in setup_macaddr() 115 ret = hash_block("sha256", (void *)cpuid, strlen(cpuid), hash, &size); in setup_macaddr() 139 u8 cpuid[cpuid_length]; in setup_serial() local 154 ret = misc_read(dev, cpuid_offset, &cpuid, sizeof(cpuid)); in setup_serial() 163 sprintf(&cpuid_str[i * 2], "%02x", cpuid[i]); in setup_serial() 172 low[i] = cpuid[1 + (i << 1)]; in setup_serial() 173 high[i] = cpuid[i << 1]; in setup_serial()
|
/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/swiftshader/src/Reactor/ |
D | CPUID.cpp | 163 static void cpuid(int registers[4], int info) in cpuid() function 182 cpuid(registers, 1); in detectMMX() 189 cpuid(registers, 1); in detectCMOV() 196 cpuid(registers, 1); in detectSSE() 203 cpuid(registers, 1); in detectSSE2() 210 cpuid(registers, 1); in detectSSE3() 217 cpuid(registers, 1); in detectSSSE3() 224 cpuid(registers, 1); in detectSSE4_1()
|
/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/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/swiftshader/src/System/ |
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/protobuf/src/google/protobuf/stubs/ |
D | atomicops_internals_x86_gcc.cc | 48 #define cpuid(a, b, c, d, inp) \ macro 54 #define cpuid(a, b, c, d, inp) \ macro 61 #if defined(cpuid) // initialize the struct only on x86 85 cpuid(eax, ebx, ecx, edx, 0); in AtomicOps_Internalx86CPUFeaturesInit() 93 cpuid(eax, ebx, ecx, edx, 1); in AtomicOps_Internalx86CPUFeaturesInit()
|
/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/libyuv/files/ |
D | linux.mk | 63 all: libyuv.a convert cpuid psnr 79 cpuid: util/cpuid.c libyuv.a 80 $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a 83 /bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr
|
/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/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 691 struct kvm_cpuid2 *cpuid; in allocate_kvm_cpuid2() local 695 size = sizeof(*cpuid); in allocate_kvm_cpuid2() 697 cpuid = malloc(size); in allocate_kvm_cpuid2() 698 if (!cpuid) { in allocate_kvm_cpuid2() 703 cpuid->nent = nent; in allocate_kvm_cpuid2() 705 return cpuid; in allocate_kvm_cpuid2() 720 static struct kvm_cpuid2 *cpuid; in kvm_get_supported_cpuid() local 724 if (cpuid) in kvm_get_supported_cpuid() 725 return cpuid; in kvm_get_supported_cpuid() 727 cpuid = allocate_kvm_cpuid2(); in kvm_get_supported_cpuid() [all …]
|
/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/libjpeg-turbo/simd/i386/ |
D | jsimdcpu.asm | 56 cpuid 62 cpuid 81 cpuid 89 cpuid 107 cpuid 112 cpuid
|
/external/ltp/testcases/kernel/controllers/cpuset/ |
D | cpuset_funcs.sh | 239 local cpuid= 240 for cpuid in $cpus_array 242 local file="/sys/devices/system/cpu/cpu$cpuid/online" 245 cpu_hotplug $cpuid "online"
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_cpu_detect.c | 183 cpuid(uint32_t ax, uint32_t *p) in cpuid() function 348 cpuid(0x00000000, regs); in util_cpu_detect() 353 cpuid (0x00000001, regs2); in util_cpu_detect() 396 cpuid(0x80000000, regs); in util_cpu_detect() 400 cpuid(0x80000001, regs2); in util_cpu_detect() 412 cpuid(0x80000006, regs2); in util_cpu_detect()
|
/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
D | ht_affinity.c | 54 int cpu_count, i, j, k, cpuid; in HT_SetAffinity() local 110 cpuid = get_current_cpu(pid); in HT_SetAffinity() 111 if (cpuid != i && cpuid != i + 1) in HT_SetAffinity()
|