Lines Matching refs:kd_cpus
120 unsigned int kd_cpus;
409 kd_cpus = max_ncpus;
418 kd_cpus = hinfo.logical_cpu_max;
420 if (kmem_alloc(kernel_map, (vm_offset_t *)&kdbip, sizeof(struct kd_bufinfo) * kd_cpus) != KERN_SUCCESS) {
425 trace_handler_map_bufinfo((uintptr_t)kdbip, sizeof(struct kd_bufinfo) * kd_cpus);
428 for(i=0;i<(int)kd_cpus;i++) {
435 if (nkdbufs < (kd_cpus * EVENTS_PER_STORAGE_UNIT * MIN_STORAGE_UNITS_PER_CPU))
436 n_storage_units = kd_cpus * MIN_STORAGE_UNITS_PER_CPU;
505 bzero((char *)kdbip, sizeof(struct kd_bufinfo) * kd_cpus);
507 for (i = 0; i < (int)kd_cpus; i++) {
553 kmem_free(kernel_map, (vm_offset_t)kdbip, sizeof(struct kd_bufinfo) * kd_cpus);
639 for (kdbp_try = &kdbip[0]; kdbp_try < &kdbip[kd_cpus]; kdbp_try++) {
2206 for (cpu = 0, kdbp = &kdbip[0]; cpu < kd_cpus; cpu++, kdbp++) {