Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 63) sorted by relevance

123

/openbmc/qemu/fsdev/
H A Dp9array.h111 P9Array##scalar_type *arr = g_malloc0(sizeof(P9Array##scalar_type) + \
113 arr->len = len; \
114 *auto_var = &arr->first[0]; \
123 P9Array##scalar_type *arr = (P9Array##scalar_type *) ( \
126 for (size_t i = 0; i < arr->len; ++i) { \
127 scalar_cleanup_func(&arr->first[i]); \
129 g_free(arr); \
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/bonnie/bonnie++/
H A Dfix-csv2html-data.patch42 - ITEM *arr = new ITEM[data.size()];
43 + ITEM *arr = new ITEM[::data.size()];
74 arr[row_ind].val = 0.0;
82 arr[row_ind].val = cpu / work;
84 arr[row_ind].pos = row_ind;
86 - qsort(arr, data.size(), sizeof(ITEM), compar);
87 + qsort(arr, ::data.size(), sizeof(ITEM), compar);
102 if(arr[sort_ind].col_ind > -1)
120 arr[row_ind].val = 0.0;
122 - || sscanf(data[row_ind][column_ind], "%lf", &arr[row_ind].val) == 0)
[all …]
/openbmc/phosphor-debug-collector/
H A Dffdc16 declare -a arr=(
86 cp -r ${arr[i+1]}/* $dest/$dir/${arr[i]}
89 ${arr[i+1]} >> "$dest/$dir/${arr[i]}"
/openbmc/u-boot/fs/ubifs/
H A Dlprops.c66 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap()
70 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap()
71 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap()
72 heap->arr[ppos] = lprops; in move_up_lpt_heap()
100 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap()
104 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap()
105 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap()
106 heap->arr[ppos] = lprops; in adjust_lpt_heap()
112 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap()
126 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dxattr.py35 arr = ctypes.create_string_buffer(length)
37 read_length = func(os_path, arr, length)
42 return [a.decode(fsencoding) for a in arr.raw.split(b"\x00") if a]
77 arr = ctypes.create_string_buffer(length)
79 read_length = func(os_path, os_name, arr, length)
84 return arr.raw
/openbmc/u-boot/scripts/kconfig/
H A Dstreamline_config.pl334 my @arr;
337 @arr = @{$objects{$1}};
340 $arr[$#arr+1] = $var;
344 $objects{$1} = \@arr;
400 my @arr = @{$objects{$module}};
401 foreach my $conf (@arr) {
670 my @arr = @{$objects{$module}};
671 foreach my $conf (@arr) {
677 foreach my $conf (@arr) {
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/dietsplash/dietsplash/
H A D0001-Mimic-GNU-basename-API-for-non-glibc-library-e.g.-mu.patch18 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + _array_size_chk(arr))
/openbmc/qemu/tests/unit/
H A Dtest-qht.c14 static int32_t arr[N * 2]; variable
33 arr[i] = i; in insert()
36 inserted = qht_insert(&ht, &arr[i], hash, NULL); in insert()
38 inserted = qht_insert(&ht, &arr[i], hash, &existing); in insert()
40 g_assert_true(existing == &arr[i]); in insert()
51 hash = arr[i]; in do_rm()
53 g_assert_true(qht_remove(&ht, &arr[i], hash)); in do_rm()
55 g_assert_false(qht_remove(&ht, &arr[i], hash)); in do_rm()
/openbmc/qemu/scripts/
H A Drender_block_graph.py32 def perm(arr): argument
33 s = 'w' if 'write' in arr else '_'
34 s += 'r' if 'consistent-read' in arr else '_'
35 s += 'u' if 'write-unchanged' in arr else '_'
36 s += 's' if 'resize' in arr else '_'
/openbmc/qemu/plugins/
H A Dplugin.h72 void plugin_register_inline_op_on_entry(GArray **arr,
93 plugin_register_dyn_cb__udata(GArray **arr,
98 plugin_register_dyn_cond_cb__udata(GArray **arr,
106 void plugin_register_vcpu_mem_cb(GArray **arr,
/openbmc/bmcweb/redfish-core/src/utils/
H A Djson_utils.cpp65 const nlohmann::json::array_t* arr = in getEstimatedJsonSize() local
67 if (arr != nullptr) in getEstimatedJsonSize()
70 for (const auto& element : *arr) in getEstimatedJsonSize()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dfsl_pamu.c340 static uint64_t find_max(uint64_t arr[], int num) in find_max() argument
345 if (arr[max] < arr[i]) in find_max()
348 return arr[max]; in find_max()
351 static uint64_t find_min(uint64_t arr[], int num) in find_min() argument
356 if (arr[min] > arr[i]) in find_min()
359 return arr[min]; in find_min()
/openbmc/openbmc/poky/meta/recipes-devtools/valgrind/valgrind/
H A Davoid-neon-for-targets-which-don-t-support-it.patch22 @@ -191,7 +191,7 @@ void do_test_at ( U1* arr )
24 : : "r"(arr+dst), "r"(arr+src) : "memory"
/openbmc/qemu/include/hw/virtio/
H A Dcbor-helpers.h30 uint8_t *arr, size_t len);
38 uint8_t *arr, size_t len);
/openbmc/webui-vue/src/components/Mixins/
H A DTableFilterMixin.js4 const filterItems = filters.reduce((arr, filter) => {
5 return [...arr, ...filter.values];
/openbmc/qemu/hw/virtio/
H A Dcbor-helpers.c134 uint8_t *arr, size_t len) in qemu_cbor_add_bytestring_to_map() argument
143 value_cbor = cbor_build_bytestring(arr, len); in qemu_cbor_add_bytestring_to_map()
223 uint8_t *arr, size_t len) in qemu_cbor_add_uint8_array_to_map() argument
238 cbor_item_t *tmp = cbor_build_uint8(arr[i]); in qemu_cbor_add_uint8_array_to_map()
/openbmc/bmcweb/features/openbmc_rest/
H A Ddbus_monitor.hpp94 nlohmann::json::array_t* arr = data.get_ptr<nlohmann::json::array_t*>(); in onPropertyUpdate() local
95 if (arr == nullptr) in onPropertyUpdate()
100 if (arr->size() < 2) in onPropertyUpdate()
107 (*arr)[1].get_ptr<nlohmann::json::object_t*>(); in onPropertyUpdate()
/openbmc/libpldm/tests/
H A Dmsgbuf.cpp386 uint8_t arr[1]; in TEST() local
389 EXPECT_EQ(pldm_msgbuf_extract_array_uint8(ctx, 0, arr, 0), 0); in TEST()
398 uint8_t arr[1]; in TEST() local
402 pldm_msgbuf_extract_array_uint8(ctx, sizeof(arr), arr, sizeof(arr)), 0); in TEST()
403 EXPECT_EQ(arr[0], 0); in TEST()
412 uint8_t arr[2]; in TEST() local
416 pldm_msgbuf_extract_array_uint8(ctx, sizeof(arr), arr, sizeof(arr)), 0); in TEST()
425 uint8_t arr[1]; in TEST() local
429 EXPECT_NE(pldm_msgbuf_extract_array_uint8(ctx, 1, arr, 1), 0); in TEST()
438 char arr[1] = {'1'}; in TEST() local
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djson_utils.hpp296 nlohmann::json::array_t* arr = in unpackValue() local
298 if (arr == nullptr) in unpackValue()
309 for (auto& val : *arr) in unpackValue()
318 nlohmann::json::array_t* arr = in unpackValue() local
320 if (arr == nullptr) in unpackValue()
326 for (auto& val : *arr) in unpackValue()
382 nlohmann::json::array_t* arr = in unpackValue() local
384 if (arr == nullptr) in unpackValue()
393 for (const auto& val : *arr) in unpackValue()
402 nlohmann::json::array_t* arr = in unpackValue() local
[all …]
H A Dquery_param.hpp933 nlohmann::json::array_t* arr = in processTopAndSkip() local
935 if (arr == nullptr) in processTopAndSkip()
945 size_t skip = std::min(arr->size(), *query.skip); in processTopAndSkip()
946 arr->erase(arr->begin(), arr->begin() + static_cast<ssize_t>(skip)); in processTopAndSkip()
950 size_t top = std::min(arr->size(), *query.top); in processTopAndSkip()
951 arr->erase(arr->begin() + static_cast<ssize_t>(top), arr->end()); in processTopAndSkip()
/openbmc/u-boot/drivers/timer/
H A Dstm32_timer.c37 u32 arr; member
108 writel(GPT_FREE_RUNNING, &regs->arr); in stm32_timer_probe()
/openbmc/bmcweb/src/
H A Djson_html_serializer.cpp489 const nlohmann::json::array_t* arr = in dump() local
491 if (arr == nullptr) in dump()
495 for (auto i = arr->cbegin(); i != arr->cend() - 1; ++i) in dump()
/openbmc/u-boot/arch/arm/include/asm/arch-stv0991/
H A Dstv0991_gpt.h22 u32 arr; member
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/
H A Dfirst-boot-set-psu.sh41 IFS=" " read -ra arr <<< "${1//- /}"
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/turbostat/
H A Dturbostat.bb81 echo '#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))' >> msr-index.h

123