/openbmc/linux/tools/perf/util/ |
H A D | values.c | 9 #include "values.h" 12 int perf_read_values_init(struct perf_read_values *values) in perf_read_values_init() argument 14 values->threads_max = 16; in perf_read_values_init() 15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init() 16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init() 17 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init() 18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init() 22 values->threads = 0; in perf_read_values_init() 24 values->counters_max = 16; in perf_read_values_init() 25 values->counterrawid = malloc(values->counters_max in perf_read_values_init() [all …]
|
H A D | counts.c | 15 struct xyarray *values; in perf_counts__new() local 17 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new() 18 if (!values) { in perf_counts__new() 23 counts->values = values; in perf_counts__new() 25 values = xyarray__new(ncpus, nthreads, sizeof(bool)); in perf_counts__new() 26 if (!values) { in perf_counts__new() 27 xyarray__delete(counts->values); in perf_counts__new() 32 counts->loaded = values; in perf_counts__new() 42 xyarray__delete(counts->values); in perf_counts__delete() 50 xyarray__reset(counts->values); in perf_counts__reset()
|
/openbmc/linux/drivers/iio/test/ |
H A D | iio-test-format.c | 47 int values[2]; in iio_test_iio_format_value_fixedpoint() local 55 values[0] = 1; in iio_test_iio_format_value_fixedpoint() 56 values[1] = 10; in iio_test_iio_format_value_fixedpoint() 58 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint() 61 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint() 64 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint() 68 values[0] = 0; in iio_test_iio_format_value_fixedpoint() 69 values[1] = 12; in iio_test_iio_format_value_fixedpoint() 71 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint() 74 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint() [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-virtual-sensor/ |
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/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 …]
|
/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/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/linux/lib/ |
H A D | test_min_heap.c | 36 int *values = heap->data; in pop_verify_heap() local 40 last = values[0]; in pop_verify_heap() 44 if (last > values[0]) { in pop_verify_heap() 46 values[0]); in pop_verify_heap() 50 if (last < values[0]) { in pop_verify_heap() 52 values[0]); in pop_verify_heap() 56 last = values[0]; in pop_verify_heap() 64 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heapify_all() local 67 .data = values, in test_heapify_all() 68 .nr = ARRAY_SIZE(values), in test_heapify_all() [all …]
|
/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/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/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi.h | 543 /* PRODUCT_ID0 field values */ 546 /* PRODUCT_ID1 field values */ 551 /* CONFIG0_ID field values */ 555 /* CONFIG1_ID field values */ 558 /* CONFIG3_ID field values */ 562 /* IH_FC_INT2 field values */ 567 /* IH_FC_STAT2 field values */ 572 /* IH_PHY_STAT0 field values */ 580 /* IH_I2CM_STAT0 and IH_MUTE_I2CM_STAT0 field values */ 584 /* IH_MUTE_I2CMPHY_STAT0 field values */ [all …]
|
/openbmc/linux/Documentation/ABI/stable/ |
H A D | sysfs-devices-system-cpu | 10 Values: 64 bit unsigned integer (bit field) 25 Values: 64 bit unsigned integer (bit field) 31 Values: integer 37 Values: integer 43 Values: integer 49 Values: integer 55 Values: integer 61 Values: integer 66 Values: hexadecimal bitmask. 72 Values: decimal list. [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 10 Valid values: Represented as string 19 Valid values: Represented as string 28 Valid values: Represented as string 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 60 Valid values: Represented in microamps. Negative values are 61 used for discharging batteries, positive values for charging 77 Valid values: Represented in microamps 100 Valid values: Represented in microamps. Negative values are 101 used for discharging batteries, positive values for charging 120 Valid values: Represented in 1/10 Degrees Celsius [all …]
|
/openbmc/linux/drivers/pcmcia/ |
H A D | max1600.c | 70 DECLARE_BITMAP(values, MAX1600_GPIO_MAX) = { 0, }; in max1600_configure() 75 __assign_bit(MAX1600_GPIO_0VPP, values, 0); in max1600_configure() 76 __assign_bit(MAX1600_GPIO_1VPP, values, 0); in max1600_configure() 78 __assign_bit(MAX1600_GPIO_0VPP, values, 0); in max1600_configure() 79 __assign_bit(MAX1600_GPIO_1VPP, values, 1); in max1600_configure() 81 __assign_bit(MAX1600_GPIO_0VPP, values, 1); in max1600_configure() 82 __assign_bit(MAX1600_GPIO_1VPP, values, 0); in max1600_configure() 95 __assign_bit(MAX1600_GPIO_0VCC, values, 0); in max1600_configure() 96 __assign_bit(MAX1600_GPIO_1VCC, values, 0); in max1600_configure() 98 __assign_bit(MAX1600_GPIO_0VCC, values, 1); in max1600_configure() [all …]
|
/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/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 15 void *values, bool is_pcpu) in map_batch_update() argument 26 v = (value *)values; in map_batch_update() 34 ((int *)values)[i] = i + 2; in map_batch_update() 37 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 42 int *keys, void *values, bool is_pcpu) in map_batch_verify() argument 49 v = (value *)values; in map_batch_verify() 62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify() 65 ((int *)values)[i]); in map_batch_verify() 86 void *values; in __test_map_lookup_and_delete_batch() local 100 values = pcpu_values; in __test_map_lookup_and_delete_batch() [all …]
|
H A D | array_map_batch_ops.c | 16 __s64 *values, bool is_pcpu) in map_batch_update() argument 30 (values + cpu_offset)[j] = i + 1 + j; in map_batch_update() 32 values[i] = i + 1; in map_batch_update() 36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 41 __s64 *values, bool is_pcpu) in map_batch_verify() argument 51 __s64 value = (values + cpu_offset)[j]; in map_batch_verify() 58 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify() 60 values[i]); in map_batch_verify() 77 void *values; in __test_map_lookup_and_update_batch() local 93 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch() [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/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-dif.h | 22 /* BEGIN - DIF BPF register values from 30_quant.dat*/ 42 /* END - DIF BPF register values from 30_quant.dat*/ 46 /* BEGIN - DIF BPF register values from 31_quant.dat*/ 66 /* END - DIF BPF register values from 31_quant.dat*/ 70 /* BEGIN - DIF BPF register values from 32_quant.dat*/ 90 /* END - DIF BPF register values from 32_quant.dat*/ 94 /* BEGIN - DIF BPF register values from 33_quant.dat*/ 114 /* END - DIF BPF register values from 33_quant.dat*/ 118 /* BEGIN - DIF BPF register values from 34_quant.dat*/ 138 /* END - DIF BPF register values from 34_quant.dat*/ [all …]
|
/openbmc/linux/include/acpi/ |
H A D | acrestyp.h | 192 /* Values for Width field above */ 358 u8 producer_consumer; /* For values, see Producer/Consumer above */ 360 u8 shareable; /* For values, see Interrupt Attributes above */ 361 u8 wake_capable; /* For values, see Interrupt Attributes above */ 363 u8 triggering; /* For values, see Interrupt Attributes above */ 364 u8 polarity; /* For values, see Interrupt Attributes above */ 374 /* Values for GPIO connection_type field above */ 379 /* Values for pin_config field above */ 386 /* Values for io_restriction field above */ 398 …u8 producer_consumer; /* For values, see Producer/Consumer … [all …]
|