Home
last modified time | relevance | path

Searched refs:threshold_ns (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/pci/pcie/
Daspm.c354 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local
357 if (threshold_ns < 32) { in encode_l12_threshold()
359 *value = threshold_ns; in encode_l12_threshold()
360 } else if (threshold_ns < 1024) { in encode_l12_threshold()
362 *value = threshold_ns >> 5; in encode_l12_threshold()
363 } else if (threshold_ns < 32768) { in encode_l12_threshold()
365 *value = threshold_ns >> 10; in encode_l12_threshold()
366 } else if (threshold_ns < 1048576) { in encode_l12_threshold()
368 *value = threshold_ns >> 15; in encode_l12_threshold()
369 } else if (threshold_ns < 33554432) { in encode_l12_threshold()
[all …]