Lines Matching refs:threshold_ns
355 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local
358 if (threshold_ns < 32) { in encode_l12_threshold()
360 *value = threshold_ns; in encode_l12_threshold()
361 } else if (threshold_ns < 1024) { in encode_l12_threshold()
363 *value = threshold_ns >> 5; in encode_l12_threshold()
364 } else if (threshold_ns < 32768) { in encode_l12_threshold()
366 *value = threshold_ns >> 10; in encode_l12_threshold()
367 } else if (threshold_ns < 1048576) { in encode_l12_threshold()
369 *value = threshold_ns >> 15; in encode_l12_threshold()
370 } else if (threshold_ns < 33554432) { in encode_l12_threshold()
372 *value = threshold_ns >> 20; in encode_l12_threshold()
375 *value = threshold_ns >> 25; in encode_l12_threshold()