Searched refs:threshold_ns (Results 1 – 1 of 1) sorted by relevance
536 u64 threshold_ns = (u64)threshold_us * NSEC_PER_USEC; in encode_l12_threshold() local 542 if (threshold_ns <= 1 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold() 544 *value = threshold_ns; in encode_l12_threshold() 545 } else if (threshold_ns <= 32 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold() 547 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold() 548 } else if (threshold_ns <= 1024 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold() 550 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold() 551 } else if (threshold_ns <= 32768 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold() 553 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold() 554 } else if (threshold_ns < in encode_l12_threshold() [all...]