Lines Matching refs:threshold_ns
364 u64 threshold_ns = (u64) threshold_us * 1000; in encode_l12_threshold() local
370 if (threshold_ns <= 0x3ff * 1) { in encode_l12_threshold()
372 *value = threshold_ns; in encode_l12_threshold()
373 } else if (threshold_ns <= 0x3ff * 32) { in encode_l12_threshold()
375 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold()
376 } else if (threshold_ns <= 0x3ff * 1024) { in encode_l12_threshold()
378 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold()
379 } else if (threshold_ns <= 0x3ff * 32768) { in encode_l12_threshold()
381 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold()
382 } else if (threshold_ns <= 0x3ff * 1048576) { in encode_l12_threshold()
384 *value = roundup(threshold_ns, 1048576) / 1048576; in encode_l12_threshold()
385 } else if (threshold_ns <= 0x3ff * (u64) 33554432) { in encode_l12_threshold()
387 *value = roundup(threshold_ns, 33554432) / 33554432; in encode_l12_threshold()