Searched refs:threshold_ns (Results 1 – 2 of 2) sorted by relevance
144 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local147 if (threshold_ns < 32) { in encode_l12_threshold()149 *value = threshold_ns; in encode_l12_threshold()150 } else if (threshold_ns < 1024) { in encode_l12_threshold()152 *value = threshold_ns >> 5; in encode_l12_threshold()153 } else if (threshold_ns < 32768) { in encode_l12_threshold()155 *value = threshold_ns >> 10; in encode_l12_threshold()156 } else if (threshold_ns < 1048576) { in encode_l12_threshold()158 *value = threshold_ns >> 15; in encode_l12_threshold()159 } else if (threshold_ns < 33554432) { in encode_l12_threshold()[all …]
355 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local358 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()[all …]