Searched refs:threshold_ns (Results 1 – 1 of 1) sorted by relevance
538 u64 threshold_ns = (u64)threshold_us * NSEC_PER_USEC; in encode_l12_threshold() local544 if (threshold_ns <= 1 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold()546 *value = threshold_ns; in encode_l12_threshold()547 } else if (threshold_ns <= 32 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold()549 *value = roundup(threshold_ns, 32) / 32; in encode_l12_threshold()550 } else if (threshold_ns <= 1024 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold()552 *value = roundup(threshold_ns, 1024) / 1024; in encode_l12_threshold()553 } else if (threshold_ns <= 32768 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold()555 *value = roundup(threshold_ns, 32768) / 32768; in encode_l12_threshold()556 } else if (threshold_ns <= 1048576 * FIELD_MAX(PCI_L1SS_CTL1_LTR_L12_TH_VALUE)) { in encode_l12_threshold()[all …]