/openbmc/linux/tools/perf/util/ |
H A D | values.c | 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() 26 * sizeof(*values->counterrawid)); 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/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() 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() 45 double calculateMinimumValue(std::vector<double>& values) in calculateMinimumValue() argument [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/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-dbus-monitor/src/ |
H A D | median.hpp | 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 ()() 77 median = *std::max_element(values.begin(), values.end()); in operator ()() 79 else if (values.size() > 2) in operator ()() 81 const auto oddIt = values.begin() + values.size() / 2; in operator ()() 82 std::nth_element(values.begin(), oddIt, values.end()); in operator ()() 88 const auto evenIt = values.begin() + values.size() / 2 - 1; in operator ()() [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 …]
|
H A D | lpm_trie_map_batch_ops.c | 23 struct test_lpm_key *keys, int *values) in map_batch_update() argument 37 values[i] = i + 1; in map_batch_update() 40 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 45 struct test_lpm_key *keys, int *values) in map_batch_verify() argument 56 CHECK(lower_byte != values[i], "key/value checking", in map_batch_verify() 57 "error: i %d key %s value %d\n", i, buff, values[i]); in map_batch_verify() 70 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local 87 values = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops() 89 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in test_lpm_trie_map_batch_ops() 94 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops() [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 …]
|
H A D | sa1111_jornada720.c | 64 DECLARE_BITMAP(values, J720_GPIO_MAX) = { 0, }; in jornada720_pcmcia_configure_socket() 75 __assign_bit(J720_GPIO_PWR, values, 0); in jornada720_pcmcia_configure_socket() 76 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket() 79 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket() 80 __assign_bit(J720_GPIO_3V, values, 1); in jornada720_pcmcia_configure_socket() 83 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket() 84 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket() 93 __assign_bit(J720_GPIO_PWR, values, 0); in jornada720_pcmcia_configure_socket() 94 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket() 98 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket() [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/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() 21 const auto oddIt = values.begin() + values.size() / 2; in getMedian() 22 std::nth_element(values.begin(), oddIt, values.end()); in getMedian() 25 if (values.size() % 2 == 0) 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()
|
/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/phosphor-power/phosphor-regulators/test/actions/ |
H A D | i2c_compare_bytes_action_tests.cpp | 50 std::vector<uint8_t> values{0x56, 0x14, 0xDA}; in TEST() local 51 I2CCompareBytesAction action{0x7C, values}; in TEST() 73 std::vector<uint8_t> values{}; in TEST() local 74 I2CCompareBytesAction action{0x7C, values}; in TEST() 95 std::vector<uint8_t> values{0x56, 0x14}; in TEST() local 97 I2CCompareBytesAction action{0xA0, values, masks}; in TEST() 117 std::vector<uint8_t> values{}; in TEST() local 119 I2CCompareBytesAction action{0xA0, values, masks}; in TEST() 134 std::vector<uint8_t> values{0x56, 0x14, 0xFE}; in TEST() local 136 I2CCompareBytesAction action{0x7C, values, masks}; in TEST() [all …]
|
H A D | i2c_write_bytes_action_tests.cpp | 53 std::vector<uint8_t> values{0x56, 0x14, 0xDA}; in TEST() local 54 I2CWriteBytesAction action{0x7C, values}; in TEST() 73 std::vector<uint8_t> values{}; in TEST() local 74 I2CWriteBytesAction action{0x7C, values}; in TEST() 95 std::vector<uint8_t> values{0x56, 0x14}; in TEST() local 97 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() 117 std::vector<uint8_t> values{}; in TEST() local 119 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() 134 std::vector<uint8_t> values{0x56, 0x14, 0xFE}; in TEST() local 136 I2CWriteBytesAction action{0x7C, values, masks}; in TEST() [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-power/phosphor-regulators/src/actions/ |
H A D | i2c_write_bytes_action.hpp | 60 const std::vector<uint8_t>& values) : in I2CWriteBytesAction() argument 61 reg{reg}, values{values}, masks{} in I2CWriteBytesAction() 64 if (values.size() < 1) 86 const std::vector<uint8_t>& values, in I2CWriteBytesAction() argument 88 reg{reg}, values{values}, masks{masks} in I2CWriteBytesAction() 91 if (values.size() < 1) 97 if (masks.size() != values.size()) 139 return values; in getValues() 172 const std::vector<uint8_t> values{}; member in phosphor::power::regulators::I2CWriteBytesAction
|
H A D | i2c_compare_bytes_action.hpp | 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() 82 const std::vector<uint8_t>& values, in I2CCompareBytesAction() argument 84 reg{reg}, values{values}, masks{masks} in I2CCompareBytesAction() 87 if (values.size() < 1) 93 if (masks.size() != values.size()) 137 return values; in getValues() 171 const std::vector<uint8_t> values{}; member in phosphor::power::regulators::I2CCompareBytesAction
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 544 minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ? in parse_pins1() 548 minfo->values.reg.mctlwtst = 0x00030101; in parse_pins1() 556 minfo->values.pll.system = 50000; in default_pins1() 558 minfo->values.reg.mctlwtst = 0x00030101; in default_pins1() 566 minfo->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) | in parse_pins2() 570 minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); in parse_pins2() 580 minfo->values.reg.mctlwtst = 0x00030101; in default_pins2() 581 minfo->values.pll.system = 50000; in default_pins2() 590 minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ? in parse_pins3() 593 minfo->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) | in parse_pins3() [all …]
|
/openbmc/linux/net/ax25/ |
H A D | ax25_dev.c | 69 ax25_dev->values[AX25_VALUES_IPDEFMODE] = AX25_DEF_IPDEFMODE; in ax25_dev_device_up() 70 ax25_dev->values[AX25_VALUES_AXDEFMODE] = AX25_DEF_AXDEFMODE; in ax25_dev_device_up() 71 ax25_dev->values[AX25_VALUES_BACKOFF] = AX25_DEF_BACKOFF; in ax25_dev_device_up() 72 ax25_dev->values[AX25_VALUES_CONMODE] = AX25_DEF_CONMODE; in ax25_dev_device_up() 73 ax25_dev->values[AX25_VALUES_WINDOW] = AX25_DEF_WINDOW; in ax25_dev_device_up() 74 ax25_dev->values[AX25_VALUES_EWINDOW] = AX25_DEF_EWINDOW; in ax25_dev_device_up() 75 ax25_dev->values[AX25_VALUES_T1] = AX25_DEF_T1; in ax25_dev_device_up() 76 ax25_dev->values[AX25_VALUES_T2] = AX25_DEF_T2; in ax25_dev_device_up() 77 ax25_dev->values[AX25_VALUES_T3] = AX25_DEF_T3; in ax25_dev_device_up() 78 ax25_dev->values[AX25_VALUES_IDLE] = AX25_DEF_IDLE; in ax25_dev_device_up() [all …]
|
/openbmc/intel-ipmi-oem/include/ |
H A D | biosxml.hpp | 377 bool evaluateExprStack(std::stack<int>& values, in evaluateExprStack() argument 381 if (values.size() != (operators.size() + 1)) in evaluateExprStack() 388 int b = values.top(); in evaluateExprStack() 389 values.pop(); in evaluateExprStack() 391 int a = values.top(); in evaluateExprStack() 392 values.pop(); in evaluateExprStack() 397 values.emplace(a | b); in evaluateExprStack() 401 values.emplace(a & b); in evaluateExprStack() 407 values.emplace(1); in evaluateExprStack() 411 values.emplace(0); in evaluateExprStack() [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | generate_schema_enums.py | 25 def __init__(self, name, values, namespace, from_file): argument 27 self.values = values 84 values = element.values 85 if "Invalid" not in values: 86 values.insert(0, "Invalid") 88 for value in values: 94 values = element.values 95 if "Invalid" not in values: 96 values.insert(0, "Invalid") 104 for value in values:
|
/openbmc/linux/tools/gpio/ |
H A D | gpio-hammer.c | 28 struct gpio_v2_line_values values; in hammer_device() local 46 values.mask = 0; in hammer_device() 47 values.bits = 0; in hammer_device() 49 gpiotools_set_bit(&values.mask, i); in hammer_device() 51 ret = gpiotools_get_values(fd, &values); in hammer_device() 63 fprintf(stdout, "%d", gpiotools_test_bit(values.bits, i)); in hammer_device() 74 gpiotools_change_bit(&values.bits, i); in hammer_device() 76 ret = gpiotools_set_values(fd, &values); in hammer_device() 81 ret = gpiotools_get_values(fd, &values); in hammer_device() 93 gpiotools_test_bit(values.bits, i)); in hammer_device()
|