Lines Matching refs:hist_values
174 IOHistogramReportValues hist_values; in initWith() local
175 if (copyElementValues(cnt2, (IOReportElementValues*)&hist_values)) { in initWith()
178 hist_values.bucket_min = kIOReportInvalidIntValue; in initWith()
179 hist_values.bucket_max = kIOReportInvalidIntValue; in initWith()
180 hist_values.bucket_sum = kIOReportInvalidIntValue; in initWith()
181 if (setElementValues(cnt2, (IOReportElementValues*)&hist_values)) { in initWith()
337 IOHistogramReportValues hist_values; in tallyValue() local
350 if (copyElementValues(element_index, (IOReportElementValues *)&hist_values) != kIOReturnSuccess) { in tallyValue()
355 if (hist_values.bucket_hits == 0) { in tallyValue()
356 hist_values.bucket_min = hist_values.bucket_max = value; in tallyValue()
357 hist_values.bucket_sum = 0; // += is below in tallyValue()
361 if (value < hist_values.bucket_min) { in tallyValue()
362 hist_values.bucket_min = value; in tallyValue()
363 } else if (value > hist_values.bucket_max) { in tallyValue()
364 hist_values.bucket_max = value; in tallyValue()
366 if (os_add_overflow(hist_values.bucket_sum, value, &sum)) { in tallyValue()
367 hist_values.bucket_sum = INT64_MAX; in tallyValue()
369 hist_values.bucket_sum = sum; in tallyValue()
371 hist_values.bucket_hits++; in tallyValue()
373 if (setElementValues(element_index, (IOReportElementValues *)&hist_values) in tallyValue()