Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/drivers/pci/pcie/
H A 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 < in encode_l12_threshold()
[all...]
/kernel/linux/linux-5.10/drivers/pci/pcie/
H A Daspm.c370 u32 threshold_ns = threshold_us * 1000; in encode_l12_threshold() local
373 if (threshold_ns < 32) { in encode_l12_threshold()
375 *value = threshold_ns; in encode_l12_threshold()
376 } else if (threshold_ns < 1024) { in encode_l12_threshold()
378 *value = threshold_ns >> 5; in encode_l12_threshold()
379 } else if (threshold_ns < 32768) { in encode_l12_threshold()
381 *value = threshold_ns >> 10; in encode_l12_threshold()
382 } else if (threshold_ns < 1048576) { in encode_l12_threshold()
384 *value = threshold_ns >> 15; in encode_l12_threshold()
385 } else if (threshold_ns < 3355443 in encode_l12_threshold()
[all...]

Completed in 4 milliseconds