Lines Matching refs:pcap
228 uint32_t PowerCap::getOccInput(uint32_t pcap, bool pcapEnabled)
236 // If pcap is not disabled then just return the pcap with the derating
238 return ((static_cast<uint64_t>(pcap) * PS_DERATING_FACTOR) / 100);
243 utils::PropertyValue pcap{};
246 pcap = utils::getProperty(PCAP_PATH, PCAP_INTERFACE, POWER_CAP_PROP);
248 return std::get<uint32_t>(pcap);
289 // Search for pcap file based on the supplied expr
387 uint32_t pcap = 0;
399 pcap = std::get<uint32_t>(value);
406 pcap = getPcap();
417 if (((pcap > 0) && (pcap < capSoftMin)) ||
418 ((pcap == 0) && (pcapEnabled)))
422 "CAP", pcap, "SMIN", capSoftMin, "MIN", capHardMin);
423 pcap = capSoftMin;
424 utils::setProperty(PCAP_PATH, PCAP_INTERFACE, POWER_CAP_PROP, pcap);
426 else if (pcap > capMax)
430 "CAP", pcap, "MAX", capMax);
431 pcap = capMax;
432 utils::setProperty(PCAP_PATH, PCAP_INTERFACE, POWER_CAP_PROP, pcap);
437 "CAP", pcap, "ENABLE", pcapEnabled);
439 // Send the pcap/enabled to the master OCC
440 auto occInput = getOccInput(pcap, pcapEnabled);