Lines Matching refs:count

106 	unsigned int			count, i;
113 count = processor_count;
114 assert(count != 0);
116 addr = kalloc((vm_size_t) (count * sizeof(mach_port_t)));
123 if (count > 1) {
126 for (i = 1; i < count; i++)
132 *countp = count;
138 for (i = 0; i < count; i++)
150 mach_msg_type_number_t *count)
166 if (*count < HOST_BASIC_INFO_OLD_COUNT)
178 if (*count >= HOST_BASIC_INFO_COUNT) {
186 *count = HOST_BASIC_INFO_COUNT;
188 *count = HOST_BASIC_INFO_OLD_COUNT;
203 if (*count < HOST_SCHED_INFO_COUNT)
214 *count = HOST_SCHED_INFO_COUNT;
224 if (*count < HOST_RESOURCE_SIZES_COUNT)
235 if (*count < HOST_PRIORITY_INFO_COUNT)
249 *count = HOST_PRIORITY_INFO_COUNT;
260 *count = 0;
266 if (*count < HOST_VM_PURGABLE_COUNT)
271 *count = HOST_VM_PURGABLE_COUNT;
285 mach_msg_type_number_t *count)
298 if (*count < HOST_LOAD_INFO_COUNT)
308 *count = HOST_LOAD_INFO_COUNT;
320 if (*count < HOST_VM_INFO_REV0_COUNT)
376 original_count = *count;
377 *count = HOST_VM_INFO_REV0_COUNT; /* rev0 already filled in */
382 *count = HOST_VM_INFO_REV1_COUNT;
388 *count = HOST_VM_INFO_REV2_COUNT;
401 if (*count < HOST_CPU_LOAD_INFO_COUNT)
460 *count = HOST_CPU_LOAD_INFO_COUNT;
467 if (*count < TASK_POWER_INFO_COUNT) {
498 mach_msg_type_number_t *count)
516 if (*count < HOST_VM_INFO64_REV0_COUNT)
587 original_count = *count;
588 *count = HOST_VM_INFO64_REV0_COUNT; /* rev0 already filled in */
590 /* rev1 added "throttled count" */
599 * "external page count"
600 * "anonymous page count"
610 *count = HOST_VM_INFO64_REV1_COUNT;
620 if (*count < HOST_EXTMOD_INFO64_COUNT)
626 *count = HOST_EXTMOD_INFO64_COUNT;
632 return(host_statistics(host, flavor, (host_info_t) info, count));
646 mach_msg_type_number_t *count)
648 return(host_statistics((host_t)host_priv, flavor, info, count));
663 uint32_t *count)
673 if (*count < (processor_count + 2) * sizeof(struct _processor_statistics_np)) { /* One for RT, one for FS */
699 *count = (uint32_t) (processor_count * sizeof(struct _processor_statistics_np));
708 *count += (uint32_t)sizeof(struct _processor_statistics_np);
714 *count += (uint32_t)sizeof(struct _processor_statistics_np);
762 mach_msg_type_number_t *count)
782 *count = 1;