Lines Matching refs:calculatedSize

643 	uint32_t calculatedSize, size;  in getStatistics()  local
652 calculatedSize = sizeof(IOStatisticsHeader) + in getStatistics()
663 error = SYSCTL_OUT(req, NULL, calculatedSize); in getStatistics()
673 buffer = (char*)kalloc_data(calculatedSize, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in getStatistics()
726 calculatedSize, loadedKexts, registeredClasses); in getStatistics()
728 assert((uint32_t)(ptr - buffer) == calculatedSize ); in getStatistics()
730 error = SYSCTL_OUT(req, buffer, calculatedSize); in getStatistics()
732 kfree_data(buffer, calculatedSize); in getStatistics()
743 uint32_t calculatedSize, size; in getWorkLoopStatistics() local
752 calculatedSize = sizeof(IOStatisticsWorkLoop) * registeredWorkloops + in getWorkLoopStatistics()
757 error = SYSCTL_OUT(req, NULL, calculatedSize); in getWorkLoopStatistics()
767 buffer = (char*)kalloc_data(calculatedSize, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in getWorkLoopStatistics()
783 LOG(2, "IOStatistics::getWorkLoopStatistics: calculatedSize %d, size %d\n", calculatedSize, size); in getWorkLoopStatistics()
785 assert( size <= calculatedSize ); in getWorkLoopStatistics()
789 kfree_data(buffer, calculatedSize); in getWorkLoopStatistics()
800 uint32_t calculatedSize, size; in getUserClientStatistics() local
810 calculatedSize = sizeof(IOStatisticsUserClientHeader) + in getUserClientStatistics()
815 error = SYSCTL_OUT(req, NULL, calculatedSize); in getUserClientStatistics()
832 buffer = (char*)kalloc_data(calculatedSize, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in getUserClientStatistics()
848 assert((sizeof(IOStatisticsUserClientHeader) + size) <= calculatedSize); in getUserClientStatistics()
856 kfree_data(buffer, calculatedSize); in getUserClientStatistics()