| /openbmc/phosphor-virtual-sensor/src/ |
| H A D | calculate.cpp | 10 double calculateModifiedMedianValue(std::vector<double>& values) in calculateModifiedMedianValue() argument 12 size_t size = values.size(); in calculateModifiedMedianValue() 13 std::sort(values.begin(), values.end()); in calculateModifiedMedianValue() 18 return values.at(1); in calculateModifiedMedianValue() 25 // Average of the two middle values in calculateModifiedMedianValue() 26 return (values.at(size / 2) + values.at(size / 2 - 1)) / 2; in calculateModifiedMedianValue() 30 return values.at((size - 1) / 2); in calculateModifiedMedianValue() 35 double calculateMaximumValue(std::vector<double>& values) in calculateMaximumValue() argument 37 auto maxIt = std::max_element(values.begin(), values.end()); in calculateMaximumValue() 38 if (maxIt == values.end()) in calculateMaximumValue() [all …]
|
| /openbmc/u-boot/Documentation/devicetree/bindings/ram/ |
| H A D | fsl,mpc83xx-mem-controller.txt | 20 values: 27 values: 33 - odt_termination_value: ODT termination value for I/Os; possible values: 37 values: 41 possible values: 45 values: 48 - clock_adjust: Clock adjust; possible values: 53 - ext_refresh_rec: Extended refresh recovery time; possible values: 55 - read_to_write: Read-to-write turnaround; possible values: 57 - write_to_read: Write-to-read turnaround; possible values: [all …]
|
| /openbmc/phosphor-fan-presence/control/ |
| H A D | utility.cpp | 15 int64_t getMedian(std::vector<int64_t>& values) in getMedian() argument 17 if (values.empty()) in getMedian() 19 throw std::out_of_range("getMedian(): Empty list of values"); in getMedian() 21 const auto oddIt = values.begin() + values.size() / 2; in getMedian() 22 std::nth_element(values.begin(), oddIt, values.end()); in getMedian() 24 // Determine median for even number of values in getMedian() 25 if (values.size() % 2 == 0) in getMedian() 27 // Use average of middle 2 values for median in getMedian() 28 const auto evenIt = values.begin() + values.size() / 2 - 1; in getMedian() 29 std::nth_element(values.begin(), evenIt, values.end()); in getMedian()
|
| H A D | utility.hpp | 18 * @details A median value is determined from a set of values where the middle 19 * value is returned from an odd set of values and an average of the middle 20 * two values for an even set of values. 22 * @param[in] values - Set of values to determine the median from 26 * @throw std::out_of_range Empty list of values given 28 * Note: The set of values will be partially re-ordered 31 int64_t getMedian(std::vector<int64_t>& values);
|
| /openbmc/phosphor-dbus-monitor/src/ |
| H A D | median.hpp | 27 * Where no property values configured are found to determine a median from, 54 // if no property values are found to produce a median. in operator ()() 56 std::vector<T> values; in operator ()() local 65 values.emplace_back( in operator ()() 69 if (!values.empty()) in operator ()() 71 auto median = values.front(); in operator ()() 73 if (values.size() == 2) in operator ()() 75 // For 2 values, use the highest instead of the average in operator ()() 77 median = *std::max_element(values.begin(), values.end()); in operator ()() 79 else if (values.size() > 2) in operator ()() [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/actions/ |
| H A D | i2c_compare_bytes_action.hpp | 32 * Compares device register bytes to a list of expected values. Communicates 55 * @param values One or more expected byte values. The bytes must be 60 const std::vector<uint8_t>& values) : in I2CCompareBytesAction() argument 61 I2CCompareBytesAction(reg, values, in I2CCompareBytesAction() 62 std::vector<uint8_t>(values.size(), 0xFF)) in I2CCompareBytesAction() 72 * @param values One or more expected byte values. The bytes must be 76 * the number of expected byte values. Each mask specifies 82 const std::vector<uint8_t>& values, in I2CCompareBytesAction() argument 84 reg{reg}, values{values}, masks{masks} in I2CCompareBytesAction() 86 // Values vector must not be empty [all …]
|
| H A D | i2c_write_bytes_action.hpp | 55 * @param values One or more byte values to write. The bytes must be 60 const std::vector<uint8_t>& values) : in I2CWriteBytesAction() argument 61 reg{reg}, values{values}, masks{} in I2CWriteBytesAction() 63 // Values vector must not be empty 64 if (values.size() < 1) 66 throw std::invalid_argument{"Values vector is empty"}; 77 * @param values One or more byte values to write. The bytes must be 81 * the number of byte values to write. Each mask specifies 86 const std::vector<uint8_t>& values, in I2CWriteBytesAction() argument 88 reg{reg}, values{values}, masks{masks} in I2CWriteBytesAction() [all …]
|
| H A D | i2c_write_bytes_action.cpp | 37 for (unsigned int i = 0; i < values.size(); ++i) in execute() 39 valuesToWrite[i] = values[i]; in execute() 44 // Read current device register values. Use I2C mode where the in execute() 46 uint8_t size = values.size(); in execute() 51 // Combine values to write with current values in execute() 52 for (unsigned int i = 0; i < values.size(); ++i) in execute() 54 valuesToWrite[i] = (values[i] & masks[i]) | in execute() 59 // Write values to device register in execute() 60 interface.write(reg, values.size(), valuesToWrite, in execute() 76 << static_cast<uint16_t>(reg) << ", values: [ "; in toString() [all …]
|
| H A D | i2c_compare_bytes_action.cpp | 34 // Read actual device register values. Use I2C mode where the number of in execute() 37 uint8_t size = values.size(); in execute() 41 // Compare actual byte values to expected byte values in execute() 42 for (unsigned int i = 0; i < values.size(); ++i) in execute() 44 if ((actualValues[i] & masks[i]) != values[i]) in execute() 64 << static_cast<uint16_t>(reg) << ", values: [ "; in toString() 65 for (unsigned int i = 0; i < values.size(); ++i) in toString() 67 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(values[i]); in toString()
|
| /openbmc/ibm-logging/test/ |
| H A D | test_policy.cpp | 283 auto values = policy::find(policy, testProperties); in TEST_F() local 284 ASSERT_EQ(std::get<policy::EIDField>(values), "ABCD1234"); in TEST_F() 285 ASSERT_EQ(std::get<policy::MsgField>(values), "Error ABCD1234"); in TEST_F() 295 auto values = policy::find(policy, testProperties); in TEST_F() local 296 ASSERT_EQ(std::get<policy::EIDField>(values), "BBBBBB"); in TEST_F() 297 ASSERT_EQ(std::get<policy::MsgField>(values), "Error BBBBBB"); in TEST_F() 308 auto values = policy::find(policy, testProperties); in TEST_F() local 309 ASSERT_EQ(std::get<policy::EIDField>(values), "DDDDDDDD"); in TEST_F() 310 ASSERT_EQ(std::get<policy::MsgField>(values), "Error DDDDDDDD"); in TEST_F() 321 auto values = policy::find(policy, testProperties); in TEST_F() local [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/test/actions/ |
| H A D | i2c_compare_bytes_action_tests.cpp | 44 // const std::vector<uint8_t>& values) 50 std::vector<uint8_t> values{0x56, 0x14, 0xDA}; in TEST() local 51 I2CCompareBytesAction action{0x7C, values}; in TEST() 70 // Test where fails: Values vector is empty in TEST() 73 std::vector<uint8_t> values{}; in TEST() local 74 I2CCompareBytesAction action{0x7C, values}; in TEST() 79 EXPECT_STREQ(e.what(), "Values vector is empty"); in TEST() 88 // const std::vector<uint8_t>& values, 95 std::vector<uint8_t> values{0x56, 0x14}; in TEST() local 97 I2CCompareBytesAction action{0xA0, values, masks}; in TEST() [all …]
|
| H A D | i2c_write_bytes_action_tests.cpp | 47 // const std::vector<uint8_t>& values) 53 std::vector<uint8_t> values{0x56, 0x14, 0xDA}; in TEST() local 54 I2CWriteBytesAction action{0x7C, values}; in TEST() 70 // Test where fails: Values vector is empty in TEST() 73 std::vector<uint8_t> values{}; in TEST() local 74 I2CWriteBytesAction action{0x7C, values}; in TEST() 79 EXPECT_STREQ(e.what(), "Values vector is empty"); in TEST() 88 // const std::vector<uint8_t>& values, 95 std::vector<uint8_t> values{0x56, 0x14}; in TEST() local 97 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() [all …]
|
| /openbmc/u-boot/arch/x86/include/asm/acpi/ |
| H A D | statdef.asl | 32 /* Device Object Notification Values */ 46 /* Battery Device Notification Values */ 51 /* Power Source Object Notification Values */ 55 /* Thermal Zone Object Notification Values */ 61 /* Power Button Notification Values */ 64 /* Sleep Button Notification Values */ 67 /* Lid Notification Values */ 70 /* Processor Device Notification Values */ 75 /* User Presence Device Notification Values */ 78 /* Ambient Light Sensor Notification Values */
|
| /openbmc/phosphor-webui/app/configuration/controllers/ |
| H A D | network-controller.js | 49 $scope.interface.ipv4.values.push( 56 if ($scope.interface.ipv4.values[index].id) { 57 $scope.ipv4sToDelete.push($scope.interface.ipv4.values[index]); 59 $scope.interface.ipv4.values.splice(index, 1); 99 for (var i in $scope.interface.ipv4.values) { 101 $scope.interface.ipv4.values[i].Address)) { 103 $scope.interface.ipv4.values[i].Address + 108 if ($scope.interface.ipv4.values[i].Gateway && 110 $scope.interface.ipv4.values[i].Gateway)) { 112 $scope.interface.ipv4.values[i].Address + [all …]
|
| /openbmc/openbmc/poky/bitbake/lib/toaster/tests/builds/ |
| H A D | test_core_image_min.py | 35 distinct_builds = Build.objects.values('id').distinct().count() 42 distinct_path = Build.objects.values( 44 total_builds = Build.objects.values('id').count() 56 ).values('id', 'order').order_by("order") 73 tasks = Task.objects.filter(outcome=2).values('id', 'sstate_result') 88 Task.OUTCOME_PREBUILT)).values('id', 107 outcome__in=(0, 4)).values('id', 'sstate_result') 122 task_executed=1).values('id', 'script_type') 135 tasks = Task.objects.filter(task_executed=1).values('id', 'outcome') 149 task_executed=0).values('id', 'script_type') [all …]
|
| /openbmc/qemu/docs/system/ |
| H A D | generic-loader.rst | 10 The 'loader' device allows the user to load multiple images or values into 13 Loading Data into Memory Values 15 The loader device allows memory values to be set from the command line. This 40 All values are parsed using the standard QemuOps parsing. This allows the user 41 to specify any values in any format supported. By default the values 42 will be parsed as decimal. To use hex values the user should prefix the number 63 All values are parsed using the standard QemuOpts parsing. This allows the user 64 to specify any values in any format supported. By default the values 65 will be parsed as decimal. To use hex values the user should prefix the number 102 All values are parsed using the standard QemuOpts parsing. This allows the user [all …]
|
| /openbmc/gpioplus/src/gpioplus/ |
| H A D | handle.hpp | 49 virtual void getValues(std::vector<uint8_t>& values) const = 0; 50 virtual void setValues(const std::vector<uint8_t>& values) const = 0; 89 /** @brief Get the current values of all associated lines 92 * @return The values of the gpio lines 96 /** @brief Gets the current values of all associated lines 98 * @param[out] values - The values of the gpio lines 101 void getValues(std::vector<uint8_t>& values) const override; 103 /** @brief Sets the current values of all associated lines 105 * @param[in] values - The new values of the gpio lines 108 void setValues(const std::vector<uint8_t>& values) const override;
|
| H A D | handle.cpp | 91 std::vector<uint8_t> values(nlines); in getValues() local 92 getValues(values); in getValues() 93 return values; in getValues() 96 void Handle::getValues(std::vector<uint8_t>& values) const in getValues() 107 values.resize(nlines); in getValues() 110 values[i] = data.values[i]; in getValues() 114 void Handle::setValues(const std::vector<uint8_t>& values) const in setValues() 116 if (values.size() != nlines) in setValues() 125 data.values[i] = values[i]; in setValues()
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | ucd90320_device.cpp | 30 * Group of GPIO values that should be formatted together. 41 * UCD90320-specific groups of GPIO values. 45 * to obtain the GPIO values. 55 Services& services, const std::vector<int>& values, in storeGPIOValues() argument 58 // Verify the expected number of GPIO values were passed in in storeGPIOValues() 61 if (values.size() != expectedCount) in storeGPIOValues() 63 // Unexpected number of values; store as a plain list of integers in storeGPIOValues() 64 StandardDevice::storeGPIOValues(services, values, additionalData); in storeGPIOValues() 69 services.logInfoMsg(std::format("Device {} GPIO values:", name)); in storeGPIOValues() 70 auto span = std::span{values}; in storeGPIOValues()
|
| H A D | ucd90160_device.cpp | 35 * offsets used to obtain the GPIO values. 47 Services& services, const std::vector<int>& values, in storeGPIOValues() argument 50 // Verify the expected number of GPIO values were passed in in storeGPIOValues() 51 if (values.size() != gpioNames.size()) in storeGPIOValues() 53 // Unexpected number of values; store as a plain list of integers in storeGPIOValues() 54 StandardDevice::storeGPIOValues(services, values, additionalData); in storeGPIOValues() 58 // Store GPIO names and values in additional data and journal. in storeGPIOValues() 60 services.logInfoMsg(std::format("Device {} GPIO values:", name)); in storeGPIOValues() 63 auto valuesSpan = std::span{values}; in storeGPIOValues() 67 additionalData.emplace(gpioNames[i], std::format("{}", values[i])); in storeGPIOValues()
|
| /openbmc/u-boot/include/ |
| H A D | dw_hdmi.h | 239 /* ih_phy_stat0 field values */ 242 /* ih_mute field values */ 246 /* tx_invid0 field values */ 251 /* tx_instuffing field values */ 256 /* vp_pr_cd field values */ 262 /* vp_stuff field values */ 272 /* vp_conf field values */ 286 /* vp_remap field values */ 289 /* fc_invidconf field values */ 313 /* fc_aviconf0-fc_aviconf3 field values */ [all …]
|
| /openbmc/phosphor-dbus-monitor/src/test/ |
| H A D | propertywatchtest.cpp | 54 struct Values struct 57 struct Values<uint8_t> struct 61 static const std::array<uint8_t, 8> values = { in get() local 64 return values[i]; in get() 69 struct Values<uint16_t> argument 73 static const std::array<uint16_t, 8> values = { in get() local 76 return values[i]; in get() 81 struct Values<uint32_t> struct 85 static const std::array<uint32_t, 8> values = { in get() local 88 return values[i]; in get() [all …]
|
| /openbmc/pldm/pldmtool/oem/ibm/ |
| H A D | oem_ibm_state_set.hpp | 9 /** @brief PLDM OEM IBM Code Update possible state set values 21 /** @brief PLDM OEM IBM Verification possible state set values 31 /** @brief PLDM OEM IBM system power state possible state set values 38 /** @brief PLDM OEM IBM boot state possible state set values 60 /** @brief Map for PLDM OEM IBM firmware update possible state values 70 /** @brief Map for PLDM OEM IBM verification state possible state values 79 /** @brief Map for PLDM OEM IBM systerm power state possible state values 84 /** @brief Map for PLDM OEM IBM boot state possible state values 90 /** @brief Map for populating PLDM OEM IBM state sets with possible state values
|
| /openbmc/qemu/target/xtensa/core-de233_fpu/ |
| H A D | core-matmap.h | 111 * Specific encoded cache attribute values of general interest. 234 #define XCHAL_ITLB_SET0_ASID_RESET 0 /* 1 if ASID reset values defined (and all writable); 0 other… 235 #define XCHAL_ITLB_SET0_VPN_RESET 0 /* 1 if VPN reset values defined (and all writable); 0 otherwi… 236 #define XCHAL_ITLB_SET0_PPN_RESET 0 /* 1 if PPN reset values defined (and all writable); 0 otherwi… 237 #define XCHAL_ITLB_SET0_CA_RESET 0 /* 1 if CA reset values defined (and all writable); 0 otherwise… 255 #define XCHAL_ITLB_SET1_ASID_RESET 0 /* 1 if ASID reset values defined (and all writable); 0 other… 256 #define XCHAL_ITLB_SET1_VPN_RESET 0 /* 1 if VPN reset values defined (and all writable); 0 otherwi… 257 #define XCHAL_ITLB_SET1_PPN_RESET 0 /* 1 if PPN reset values defined (and all writable); 0 otherwi… 258 #define XCHAL_ITLB_SET1_CA_RESET 0 /* 1 if CA reset values defined (and all writable); 0 otherwise… 276 #define XCHAL_ITLB_SET2_ASID_RESET 0 /* 1 if ASID reset values defined (and all writable); 0 other… [all …]
|
| /openbmc/pldm/libpldmresponder/ |
| H A D | bios_enum_attribute.hpp | 75 /** @brief Get index of the given value in possible values 77 * @param[in] pVs - The possible values 78 * @return Index of the given value in possible values 83 /** @brief Get handles of possible values 85 * @param[in] pVs - The possible values 103 * @param[in] dbusVals - The dbus values in the json's dbus section 107 /** @brief Get index of the current value in possible values 108 * @return The index of the current value in possible values 112 /** @brief Get index of the property value in possible values 113 * @param[in] propValue - property values [all …]
|