Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/pci/pcie/
Daspm.c364 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()
[all …]