Home
last modified time | relevance | path

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

123456789

/openbmc/linux/tools/lib/bpf/
H A Dbpf_helpers.h204 #define ___bpf_fill0(arr, p, x) do {} while (0) argument
205 #define ___bpf_fill1(arr, p, x) arr[p] = x argument
206 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument
207 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument
208 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument
209 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument
210 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument
211 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument
212 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument
213 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtailcall_bpf2bpf3.c17 volatile char arr[64] = {}; in subprog_tail2() local
24 __sink(arr[sizeof(arr) - 1]); in subprog_tail2()
32 volatile char arr[64] = {}; in subprog_tail() local
36 __sink(arr[sizeof(arr) - 1]); in subprog_tail()
44 volatile char arr[128] = {}; in classifier_0() local
46 __sink(arr[sizeof(arr) - 1]); in classifier_0()
54 volatile char arr[128] = {}; in classifier_1() local
56 __sink(arr[sizeof(arr) - 1]); in classifier_1()
64 volatile char arr[128] = {}; in entry() local
66 __sink(arr[sizeof(arr) - 1]); in entry()
H A Dtest_global_func16.c7 __noinline int foo(int (*arr)[10]) in foo()
9 if (arr) in foo()
10 return (*arr)[9]; in foo()
/openbmc/linux/drivers/scsi/
H A Dscsi_debug.c1155 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
1167 arr, arr_len); in fill_from_dev_buffer()
1178 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument
1191 arr, arr_len, skip); in p_fill_from_dev_buffer()
1203 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
1211 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
1224 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument
1234 arr[0] = 0x2; /* ASCII */ in inquiry_vpd_83()
1235 arr[1] = 0x1; in inquiry_vpd_83()
1236 arr[2] = 0x0; in inquiry_vpd_83()
[all …]
H A Dconstants.c28 const struct value_name_pair *arr; member
264 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local
274 for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { in scsi_opcode_sa_name()
276 arr = sa_name_ptr->arr; in scsi_opcode_sa_name()
281 if (!arr) in scsi_opcode_sa_name()
284 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name()
285 if (service_action == arr->value) in scsi_opcode_sa_name()
289 *sa_name = arr->name; in scsi_opcode_sa_name()
435 const struct value_name_pair *arr = scsi_mlreturn_arr; in scsi_mlreturn_string() local
438 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string()
[all …]
/openbmc/linux/scripts/coccinelle/misc/
H A Dof_table.cocci14 identifier var, arr;
18 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
25 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
32 identifier var, arr;
36 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
45 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
54 identifier var, arr;
58 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
66 struct \(of_device_id \| i2c_device_id \| platform_device_id\) arr[] = {
75 arr << r.arr;
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.c220 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local
227 !trans->command_groups[grp].arr) in iwl_get_cmd_string()
230 arr = &trans->command_groups[grp]; in iwl_get_cmd_string()
231 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string()
241 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local
244 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted()
245 if (!arr->arr) in iwl_cmd_groups_verify_sorted()
247 for (j = 0; j < arr->size - 1; j++) in iwl_cmd_groups_verify_sorted()
248 if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) in iwl_cmd_groups_verify_sorted()
/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/linux/arch/x86/kernel/cpu/mtrr/
H A Dcyrix.c17 unsigned char arr, ccr3, rcr, shift; in cyrix_get_arr() local
20 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_get_arr()
26 ((unsigned char *)base)[3] = getCx86(arr); in cyrix_get_arr()
27 ((unsigned char *)base)[2] = getCx86(arr + 1); in cyrix_get_arr()
28 ((unsigned char *)base)[1] = getCx86(arr + 2); in cyrix_get_arr()
182 unsigned char arr, arr_type, arr_size; in cyrix_set_arr() local
184 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_set_arr()
229 setCx86(arr + 0, ((unsigned char *)&base)[3]); in cyrix_set_arr()
230 setCx86(arr + 1, ((unsigned char *)&base)[2]); in cyrix_set_arr()
231 setCx86(arr + 2, (((unsigned char *)&base)[1]) | arr_size); in cyrix_set_arr()
/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/linux/fs/ocfs2/
H A Dsysfile.c93 struct inode **arr = NULL; in ocfs2_get_system_file_inode() local
97 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode()
99 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
102 if (arr && ((inode = *arr) != NULL)) { in ocfs2_get_system_file_inode()
115 if (arr && inode) { in ocfs2_get_system_file_inode()
116 *arr = igrab(inode); in ocfs2_get_system_file_inode()
117 BUG_ON(!*arr); in ocfs2_get_system_file_inode()
/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/linux/fs/ubifs/
H A Dlprops.c63 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap()
67 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap()
68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap()
69 heap->arr[ppos] = lprops; in move_up_lpt_heap()
97 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap()
101 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap()
102 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap()
103 heap->arr[ppos] = lprops; in adjust_lpt_heap()
109 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap()
123 val2 = get_heap_comp_val(heap->arr[cpos], cat); in adjust_lpt_heap()
[all …]
/openbmc/linux/drivers/net/ethernet/ibm/ehea/
H A Dehea_main.c146 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local
176 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
177 if (!arr) in ehea_update_firmware_handles()
196 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
197 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
198 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
199 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
200 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
201 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
202 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
[all …]
/openbmc/linux/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) {
692 my @arr = @{$objects{$module}};
693 foreach my $conf (@arr) {
699 foreach my $conf (@arr) {
/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/linux/lib/
H A Dtest_ubsan.c40 volatile int arr[4]; in test_ubsan_out_of_bounds() local
46 arr[j] = i; in test_ubsan_out_of_bounds()
49 arr[k] = i; in test_ubsan_out_of_bounds()
84 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() local
88 ptr = (int *)(arr + 1); in test_ubsan_misaligned_access()
/openbmc/linux/kernel/
H A Dparams.c465 const struct kparam_array *arr = kp->arr; in param_array_set() local
468 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
469 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
470 arr->num ?: &temp_num); in param_array_set()
476 const struct kparam_array *arr = kp->arr; in param_array_get() local
479 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
483 p.arg = arr->elem + arr->elemsize * i; in param_array_get()
485 ret = arr->ops->get(buffer + off, &p); in param_array_get()
497 const struct kparam_array *arr = arg; in param_array_free() local
499 if (arr->ops->free) in param_array_free()
[all …]
/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/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/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/linux/drivers/gpu/drm/i915/selftests/
H A Di915_random.c45 void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, in i915_prandom_shuffle() argument
64 memcpy(stack, arr + count * elsz, elsz); in i915_prandom_shuffle()
65 memcpy(arr + count * elsz, arr + swp * elsz, elsz); in i915_prandom_shuffle()
66 memcpy(arr + swp * elsz, stack, elsz); in i915_prandom_shuffle()
/openbmc/openbmc/poky/meta/recipes-devtools/gcc/gcc/
H A D0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch67 + S arr[8];
68 + for (const auto r : arr)
80 + S arr[8];
81 + for (const auto r : arr) // { dg-warning "creates a copy" }
94 + S arr[8];
95 + for (const auto r : arr) // { dg-warning "creates a copy" }
108 + S arr[8];
109 + for (const auto r : arr) // { dg-warning "creates a copy" }
/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/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))

123456789