Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/pci/pcie/
Daspm.c342 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local
345 if (threshold_ns < 32) { in encode_l12_threshold()
347 *value = threshold_ns; in encode_l12_threshold()
348 } else if (threshold_ns < 1024) { in encode_l12_threshold()
350 *value = threshold_ns >> 5; in encode_l12_threshold()
351 } else if (threshold_ns < 32768) { in encode_l12_threshold()
353 *value = threshold_ns >> 10; in encode_l12_threshold()
354 } else if (threshold_ns < 1048576) { in encode_l12_threshold()
356 *value = threshold_ns >> 15; in encode_l12_threshold()
357 } else if (threshold_ns < 33554432) { in encode_l12_threshold()
[all …]