Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/pci/pcie/
Daspm.c328 u64 threshold_ns = (u64) threshold_us * 1000; in encode_l12_threshold() local
334 if (threshold_ns <= 0x3ff * 1) { in encode_l12_threshold()
336 *value = threshold_ns; in encode_l12_threshold()
337 } else if (threshold_ns <= 0x3ff * 32) { in encode_l12_threshold()
339 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold()
340 } else if (threshold_ns <= 0x3ff * 1024) { in encode_l12_threshold()
342 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold()
343 } else if (threshold_ns <= 0x3ff * 32768) { in encode_l12_threshold()
345 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold()
346 } else if (threshold_ns <= 0x3ff * 1048576) { in encode_l12_threshold()
[all …]