Searched refs:num_cpus (Results 1 - 14 of 14) sorted by relevance

/fuchsia/zircon/kernel/tests/
H A Dsync_ipi_tests.cpp84 uint num_cpus = arch_max_num_cpus(); local
86 if (online != (1U << num_cpus) - 1) {
97 for (uint i = 0; i < num_cpus; ++i) {
105 LTRACEF("Counter test (%u CPUs)\n", num_cpus);
116 ASSERT((uint)counter == num_cpus - 1);
/fuchsia/zircon/kernel/platform/pc/include/platform/pc/
H A Dacpi.h29 uint32_t* num_cpus);
/fuchsia/zircon/kernel/arch/x86/
H A Dproc_trace.cpp190 uint32_t num_cpus = arch_max_num_cpus(); local
192 reinterpret_cast<ipt_trace_state_t*>(calloc(num_cpus,
270 uint32_t num_cpus = arch_max_num_cpus(); local
271 for (uint32_t cpu = 0; cpu < num_cpus; ++cpu) {
347 uint32_t num_cpus = arch_max_num_cpus(); local
348 for (uint32_t cpu = 0; cpu < num_cpus; ++cpu) {
371 uint32_t num_cpus = arch_max_num_cpus();
372 if (descriptor >= num_cpus)
398 uint32_t num_cpus = arch_max_num_cpus();
399 if (descriptor >= num_cpus)
[all...]
H A Dsmp.cpp26 void x86_init_smp(uint32_t* apic_ids, uint32_t num_cpus) { argument
27 DEBUG_ASSERT(num_cpus <= UINT8_MAX);
28 zx_status_t status = x86_allocate_ap_structures(apic_ids, (uint8_t)num_cpus);
34 lk_init_secondary_cpus(num_cpus - 1);
H A Dmmu_mem_types.cpp296 uint num_cpus = arch_max_num_cpus(); local
297 for (uint i = 0; i < num_cpus; ++i) {
H A Dperf_mon.cpp291 const unsigned num_cpus; member in struct:PerfmonState
356 : num_cpus(n_cpus) { }
361 for (unsigned cpu = 0; cpu < num_cpus; ++cpu) {
636 if (cpu >= perfmon_state->num_cpus)
1311 unsigned num_cpus = state->num_cpus;
1312 for (unsigned cpu = 0; cpu < num_cpus; ++cpu) {
1398 unsigned num_cpus = state->num_cpus;
1400 for (unsigned cpu = 0; cpu < num_cpus;
1309 unsigned num_cpus = state->num_cpus; local
1396 unsigned num_cpus = state->num_cpus; local
[all...]
/fuchsia/zircon/kernel/arch/arm64/hypervisor/
H A Del2_cpu_state.cpp96 size_t num_cpus = arch_max_num_cpus();
97 El2Stack* stacks = new (&ac) El2Stack[num_cpus];
100 fbl::Array<El2Stack> el2_stacks(stacks, num_cpus);
/fuchsia/zircon/kernel/arch/x86/hypervisor/
H A Dvmx_cpu_state.cpp168 size_t num_cpus = arch_max_num_cpus(); local
169 VmxPage* pages_ptr = new (&ac) VmxPage[num_cpus];
172 fbl::Array<VmxPage> pages(pages_ptr, num_cpus);
/fuchsia/zircon/kernel/platform/pc/
H A Dplatform.cpp797 uint32_t num_cpus = 0; local
799 zx_status_t status = platform_enumerate_cpus(NULL, 0, &num_cpus);
808 fbl::unique_ptr<uint32_t[]>(new (&ac) uint32_t[num_cpus * 2]);
815 uint32_t* apic_ids_temp = &apic_ids[num_cpus];
819 status = platform_enumerate_cpus(apic_ids_temp, num_cpus, &real_num_cpus);
820 if (status != ZX_OK || num_cpus != real_num_cpus) {
835 for (uint32_t i = 0; i < num_cpus; ++i) {
855 num_cpus = using_count;
864 dprintf(INFO, "Found %u cpu%c\n", num_cpus, (num_cpus >
[all...]
H A Dacpi.cpp86 * via num_cpus.
90 * @param num_cpus Output for the number of logical processors detected.
92 * @return ZX_OK on success. Note that if len < *num_cpus, not all
98 uint32_t* num_cpus) {
99 if (num_cpus == NULL) {
132 *num_cpus = count;
95 platform_enumerate_cpus( uint32_t* apic_ids, uint32_t len, uint32_t* num_cpus) argument
/fuchsia/zircon/kernel/kernel/
H A Dmp.cpp114 uint num_cpus = arch_max_num_cpus(); local
148 for (uint i = 0; i < num_cpus; ++i) {
157 while (remaining && cpu_id < num_cpus) {
214 for (uint i = 0; i < num_cpus; ++i) {
/fuchsia/zircon/system/dev/misc/cpu-trace/
H A Dintel-pm.c333 uint32_t num_cpus = zx_system_get_num_cpus();
334 if (alloc.num_buffers != num_cpus) // TODO(dje): for now
347 per_trace->buffers = calloc(num_cpus, sizeof(per_trace->buffers[0]));
355 for ( ; i < num_cpus; ++i) {
361 if (i != num_cpus) {
813 uint32_t num_cpus = zx_system_get_num_cpus();
814 for (uint32_t cpu = 0; cpu < num_cpus; ++cpu) {
/fuchsia/zircon/kernel/arch/x86/include/arch/
H A Dx86.h71 * @param num_cpus The number of entries in the apic_ids list.
73 void x86_init_smp(uint32_t* apic_ids, uint32_t num_cpus);
/fuchsia/zircon/kernel/syscalls/
H A Dobject.cpp442 size_t num_cpus = arch_max_num_cpus();
444 size_t num_to_copy = MIN(num_cpus, num_space_for);
499 zx_status_t status = _avail.copy_to_user(num_cpus);

Completed in 162 milliseconds