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()
336 IOHistogramReportValues hist_values; in tallyValue() local
349 if (copyElementValues(element_index, (IOReportElementValues *)&hist_values) != kIOReturnSuccess) { in tallyValue()
354 if (hist_values.bucket_hits == 0) { in tallyValue()
355 hist_values.bucket_min = hist_values.bucket_max = value; in tallyValue()
356 hist_values.bucket_sum = 0; // += is below in tallyValue()
360 if (value < hist_values.bucket_min) { in tallyValue()
361 hist_values.bucket_min = value; in tallyValue()
362 } else if (value > hist_values.bucket_max) { in tallyValue()
363 hist_values.bucket_max = value; in tallyValue()
365 if (os_add_overflow(hist_values.bucket_sum, value, &sum)) { in tallyValue()
366 hist_values.bucket_sum = INT64_MAX; in tallyValue()
368 hist_values.bucket_sum = sum; in tallyValue()
370 hist_values.bucket_hits++; in tallyValue()
372 if (setElementValues(element_index, (IOReportElementValues *)&hist_values) in tallyValue()