Home
last modified time | relevance | path

Searched refs:cpu_infos (Results 1 – 25 of 35) sorted by relevance

12

/third_party/node/deps/uv/src/unix/
Dqnx.c117 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
126 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info()
127 if (*cpu_infos == NULL) in uv_cpu_info()
131 (*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]); in uv_cpu_info()
132 (*cpu_infos)[i].speed = cpuinfo->speed; in uv_cpu_info()
Dhaiku.c113 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
122 if (cpu_infos == NULL || count == NULL) in uv_cpu_info()
153 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info()
154 if (*cpu_infos == NULL) in uv_cpu_info()
158 cpu_info = *cpu_infos; in uv_cpu_info()
Dopenbsd.c179 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
200 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
201 if (!(*cpu_infos)) in uv_cpu_info()
218 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
235 uv__free((*cpu_infos)[j].model); in uv_cpu_info()
237 uv__free(*cpu_infos); in uv_cpu_info()
238 *cpu_infos = NULL; in uv_cpu_info()
Dfreebsd.c172 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
218 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
219 if (!(*cpu_infos)) in uv_cpu_info()
229 uv__free(*cpu_infos); in uv_cpu_info()
237 uv__free(*cpu_infos); in uv_cpu_info()
243 uv__free(*cpu_infos); in uv_cpu_info()
248 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dhurd.c134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
149 *cpu_infos = uv__calloc(hbi.avail_cpus, sizeof(**cpu_infos)); in uv_cpu_info()
150 if (*cpu_infos == NULL) { in uv_cpu_info()
160 *cpu_infos = NULL; in uv_cpu_info()
Dnetbsd.c180 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
216 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
217 if (!(*cpu_infos)) { in uv_cpu_info()
219 uv__free(*cpu_infos); in uv_cpu_info()
224 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dcygwin.c44 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
46 *cpu_infos = NULL; in uv_cpu_info()
Ddarwin.c327 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
356 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
357 if (!(*cpu_infos)) { in uv_cpu_info()
365 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dibmi.c282 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
286 *cpu_infos = NULL; in uv_cpu_info()
291 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info()
292 if (!*cpu_infos) { in uv_cpu_info()
296 cpu_info = *cpu_infos; in uv_cpu_info()
Dsunos.c662 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
679 *cpu_infos = uv__malloc(lookup_instance * sizeof(**cpu_infos)); in uv_cpu_info()
680 if (!(*cpu_infos)) { in uv_cpu_info()
687 cpu_info = *cpu_infos; in uv_cpu_info()
709 cpu_info = *cpu_infos; in uv_cpu_info()
Dlinux-core.c268 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
274 *cpu_infos = NULL; in uv_cpu_info()
305 *cpu_infos = ci; in uv_cpu_info()
/third_party/libuv/src/unix/
Dqnx.c117 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
126 *cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos)); in uv_cpu_info()
127 if (*cpu_infos == NULL) in uv_cpu_info()
131 (*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]); in uv_cpu_info()
132 (*cpu_infos)[i].speed = cpuinfo->speed; in uv_cpu_info()
Dhaiku.c113 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
122 if (cpu_infos == NULL || count == NULL) in uv_cpu_info()
153 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info()
154 if (*cpu_infos == NULL) in uv_cpu_info()
158 cpu_info = *cpu_infos; in uv_cpu_info()
Dfreebsd.c172 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
218 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
219 if (!(*cpu_infos)) in uv_cpu_info()
229 uv__free(*cpu_infos); in uv_cpu_info()
237 uv__free(*cpu_infos); in uv_cpu_info()
243 uv__free(*cpu_infos); in uv_cpu_info()
248 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dopenbsd.c179 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
200 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
201 if (!(*cpu_infos)) in uv_cpu_info()
218 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
235 uv__free((*cpu_infos)[j].model); in uv_cpu_info()
237 uv__free(*cpu_infos); in uv_cpu_info()
238 *cpu_infos = NULL; in uv_cpu_info()
Dhurd.c134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
149 *cpu_infos = uv__calloc(hbi.avail_cpus, sizeof(**cpu_infos)); in uv_cpu_info()
150 if (*cpu_infos == NULL) { in uv_cpu_info()
160 *cpu_infos = NULL; in uv_cpu_info()
Dnetbsd.c180 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
216 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
217 if (!(*cpu_infos)) { in uv_cpu_info()
219 uv__free(*cpu_infos); in uv_cpu_info()
224 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dcygwin.c44 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
46 *cpu_infos = NULL; in uv_cpu_info()
Dibmi.c282 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
286 *cpu_infos = NULL; in uv_cpu_info()
291 *cpu_infos = uv__malloc(numcpus * sizeof(uv_cpu_info_t)); in uv_cpu_info()
292 if (!*cpu_infos) { in uv_cpu_info()
296 cpu_info = *cpu_infos; in uv_cpu_info()
Ddarwin.c327 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
356 *cpu_infos = uv__malloc(numcpus * sizeof(**cpu_infos)); in uv_cpu_info()
357 if (!(*cpu_infos)) { in uv_cpu_info()
365 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
Dsunos.c662 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
679 *cpu_infos = uv__malloc(lookup_instance * sizeof(**cpu_infos)); in uv_cpu_info()
680 if (!(*cpu_infos)) { in uv_cpu_info()
687 cpu_info = *cpu_infos; in uv_cpu_info()
709 cpu_info = *cpu_infos; in uv_cpu_info()
Dlinux-core.c268 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
274 *cpu_infos = NULL; in uv_cpu_info()
305 *cpu_infos = ci; in uv_cpu_info()
/third_party/libuv/src/win/
Dutil.c557 uv_cpu_info_t* cpu_infos; in uv_cpu_info() local
567 cpu_infos = NULL; in uv_cpu_info()
576 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info()
577 if (cpu_infos == NULL) { in uv_cpu_info()
646 cpu_info = &cpu_infos[i]; in uv_cpu_info()
663 *cpu_infos_ptr = cpu_infos; in uv_cpu_info()
668 if (cpu_infos != NULL) { in uv_cpu_info()
671 uv__free(cpu_infos[i].model); in uv_cpu_info()
674 uv__free(cpu_infos); in uv_cpu_info()
/third_party/node/deps/uv/src/win/
Dutil.c557 uv_cpu_info_t* cpu_infos; in uv_cpu_info() local
567 cpu_infos = NULL; in uv_cpu_info()
576 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info()
577 if (cpu_infos == NULL) { in uv_cpu_info()
646 cpu_info = &cpu_infos[i]; in uv_cpu_info()
663 *cpu_infos_ptr = cpu_infos; in uv_cpu_info()
668 if (cpu_infos != NULL) { in uv_cpu_info()
671 uv__free(cpu_infos[i].model); in uv_cpu_info()
674 uv__free(cpu_infos); in uv_cpu_info()
/third_party/node/src/
Dnode_os.cc104 uv_cpu_info_t* cpu_infos; in GetCPUInfo() local
107 int err = uv_cpu_info(&cpu_infos, &count); in GetCPUInfo()
118 uv_cpu_info_t* ci = cpu_infos + i; in GetCPUInfo()
133 uv_free_cpu_info(cpu_infos, count); in GetCPUInfo()

12