Searched refs:threshold_ns (Results 1 – 2 of 2) sorted by relevance
19 namespace threshold_ns =21 using CriticalObject = ServerObject<threshold_ns::Critical>;22 using WarningObject = ServerObject<threshold_ns::Warning>;23 using SoftShutdownObject = ServerObject<threshold_ns::SoftShutdown>;24 using HardShutdownObject = ServerObject<threshold_ns::HardShutdown>;25 using PerformanceLossObject = ServerObject<threshold_ns::PerformanceLoss>;
328 u64 threshold_ns = (u64) threshold_us * 1000; in encode_l12_threshold() local334 if (threshold_ns <= 0x3ff * 1) { in encode_l12_threshold()336 *value = threshold_ns; in encode_l12_threshold()337 } else if (threshold_ns <= 0x3ff * 32) { in encode_l12_threshold()339 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold()340 } else if (threshold_ns <= 0x3ff * 1024) { in encode_l12_threshold()342 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold()343 } else if (threshold_ns <= 0x3ff * 32768) { in encode_l12_threshold()345 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold()346 } else if (threshold_ns <= 0x3ff * 1048576) { in encode_l12_threshold()[all …]