Home
last modified time | relevance | path

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

123456

/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[12 in classifier_1() local
64 volatile char arr[128] = {}; entry() local
[all...]
H A Dtest_core_reloc_existence.c33 int arr[1]; member
65 out->arr_exists = bpf_core_field_exists(in->arr); in test_core_existence()
66 if (bpf_core_field_exists(struct core_reloc_existence, arr)) in test_core_existence()
67 out->arr_value = BPF_CORE_READ(in, arr[0]); in test_core_existence()
H A Darena_htab.c30 char __arena *arr = arr1; in arena_htab_llvm() local
37 cast_kern(arr); in arena_htab_llvm()
42 arr[i] = i; in arena_htab_llvm()
/linux/tools/lib/bpf/
H A Dbpf_helpers.h235 #define ___bpf_fill0(arr, p, x) do {} while (0) argument
236 #define ___bpf_fill1(arr, p, x) arr[p] = x argument
237 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument
238 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument
239 #define ___bpf_fill4(arr, argument
240 ___bpf_fill5(arr,p,x,args...) global() argument
241 ___bpf_fill6(arr,p,x,args...) global() argument
242 ___bpf_fill7(arr,p,x,args...) global() argument
243 ___bpf_fill8(arr,p,x,args...) global() argument
244 ___bpf_fill9(arr,p,x,args...) global() argument
245 ___bpf_fill10(arr,p,x,args...) global() argument
246 ___bpf_fill11(arr,p,x,args...) global() argument
247 ___bpf_fill12(arr,p,x,args...) global() argument
248 ___bpf_fill(arr,args...) global() argument
[all...]
/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 <<
[all...]
/linux/drivers/scsi/
H A Dscsi_debug.c1633 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
1645 arr, arr_len); in fill_from_dev_buffer()
1656 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument
1669 arr, arr_len, skip); in p_fill_from_dev_buffer()
1681 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
1689 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
1702 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument
1712 arr[0] = 0x2; /* ASCII */ in inquiry_vpd_83()
1713 arr[1] = 0x1; in inquiry_vpd_83()
1714 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 in scsi_mlreturn_string() local
[all...]
H A Dscsi_proto_test.c13 u8 arr[sizeof(struct scsi_io_group_descriptor)]; in test_scsi_proto() member
14 } d = { .arr = { 0x45, 0, 0, 0, 0xb0, 0xe4, 0xe3 } }; in test_scsi_proto()
27 u8 arr[sizeof(struct scsi_stream_status)]; in test_scsi_proto() member
28 } ss = { .arr = { 0x80, 0, 0x12, 0x34, 0x3f } }; in test_scsi_proto()
36 u8 arr[sizeof(struct scsi_stream_status_header)]; in test_scsi_proto() member
37 } sh = { .arr = { 1, 2, 3, 4, 0, 0, 5, 6 } }; in test_scsi_proto()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/tests/
H A Dhcmd.c17 const struct iwl_hcmd_arr *arr = &iwl_mvm_groups[i]; in test_hcmd_names_sorted() local
19 if (!arr->arr) in test_hcmd_names_sorted()
22 for (int j = 0; j < arr->size - 1; j++) in test_hcmd_names_sorted()
23 KUNIT_EXPECT_LE(test, arr->arr[j].cmd_id, in test_hcmd_names_sorted()
24 arr->arr[j + 1].cmd_id); in test_hcmd_names_sorted()
/linux/drivers/net/wireless/intel/iwlwifi/mld/tests/
H A Dhcmd.c19 const struct iwl_hcmd_arr *arr = &iwl_mld_groups[i]; in test_hcmd_names_sorted() local
22 if (!arr->arr) in test_hcmd_names_sorted()
24 for (j = 0; j < arr->size - 1; j++) in test_hcmd_names_sorted()
25 KUNIT_EXPECT_LE(test, arr->arr[j].cmd_id, in test_hcmd_names_sorted()
26 arr->arr[j + 1].cmd_id); in test_hcmd_names_sorted()
/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 in cyrix_set_arr()
[all...]
/linux/tools/sched_ext/include/scx/
H A Dcommon.h53 * @arr: the name of the array
64 #define RESIZE_ARRAY(__skel, elfsec, arr, n) \ argument
67 bpf_map__set_value_size((__skel)->maps.elfsec##_##arr, \
68 sizeof((__skel)->elfsec##_##arr->arr[0]) * (n)); \
69 (__skel)->elfsec##_##arr = \
70 bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \
/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()
/linux/drivers/pwm/
H A Dpwm-stm32.c58 u32 arr; member
93 u64 arr; in stm32_pwm_round_waveform_tohw() local
103 ret = regmap_read(priv->regmap, TIM_ARR, &wfhw->arr); in stm32_pwm_round_waveform_tohw()
107 arr = mul_u64_u64_div_u64(wf->period_length_ns, rate, in stm32_pwm_round_waveform_tohw()
109 if (arr <= wfhw->arr) { in stm32_pwm_round_waveform_tohw()
142 u64 arr; in stm32_pwm_round_waveform_tohw() local
146 arr = mul_u64_u64_div_u64(wf->period_length_ns, rate, in stm32_pwm_round_waveform_tohw()
148 if (!arr) { in stm32_pwm_round_waveform_tohw()
154 wfhw->arr in stm32_pwm_round_waveform_tohw()
320 u32 psc, arr; stm32_pwm_write_waveform() local
[all...]
/linux/include/linux/
H A Darray_size.h8 * ARRAY_SIZE - get the number of elements in array @arr
9 * @arr: array to be sized
11 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) argument
/linux/scripts/kconfig/
H A Dstreamline_config.pl336 my @arr;
339 @arr = @{$objects{$1}};
342 $arr[$#arr+1] = $var;
346 $objects{$1} = \@arr;
402 my @arr = @{$objects{$module}};
403 foreach my $conf (@arr) {
702 my @arr = @{$objects{$module}};
703 foreach my $conf (@arr) {
709 foreach my $conf (@arr) {
[all...]
/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()
/linux/scripts/include/
H A Darray_size.h6 * ARRAY_SIZE - get the number of elements in array @arr
7 * @arr: array to be sized
9 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux/fs/bcachefs/
H A Deytzinger.c282 u32 *arr;
285 arr = kmalloc_array(N, sizeof(u32), GFP_KERNEL);
289 arr[i] = get_random_u32();
292 eytzinger0_sort(arr, N, sizeof(u32), mycmp, NULL);
302 if (prev > arr[i])
304 prev = arr[i];
307 kfree(arr);
312 kfree(arr);
/linux/fs/orangefs/
H A Dorangefs-debug.h21 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux/lib/tests/
H A Dscanf_kunit.c283 #define fill_random_array(arr) \ argument
288 for (i = 0; i < ARRAY_SIZE(arr); i++, neg_pattern >>= 1) { \
289 (arr)[i] = random_for_type(typeof((arr)[0])); \
290 if (is_signed_type(typeof((arr)[0])) && (neg_pattern & 1)) \
291 (arr)[i] = -(arr)[i]; \
330 #define test_array_8(fn, check_data, string, fmt, arr) \ argument
332 BUILD_BUG_ON(ARRAY_SIZE(arr) != 8); \
334 &(arr)[
[all...]
/linux/tools/bpf/bpftool/
H A Dbtf.c166 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type() local
169 jsonw_uint_field(w, "type_id", arr->type); in dump_btf_type()
170 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type()
171 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type()
174 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
480 static int ptr_array_push(const void *ptr, struct ptr_array *arr) in ptr_array_push() argument
485 if (arr->cnt == arr in ptr_array_push()
497 ptr_array_free(struct ptr_array * arr) ptr_array_free() argument
715 struct btf_array *arr = btf_array(t); btf_type_disambig_hash() local
[all...]
/linux/tools/iio/
H A Diio_utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/linux/tools/gpio/
H A Dgpio-utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dcbx.c159 qed_dcbx_app_update[i].name, p_data->arr[id].update, in qed_dcbx_dp_protocol()
160 p_data->arr[id].enable, p_data->arr[id].priority, in qed_dcbx_dp_protocol()
161 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc); in qed_dcbx_dp_protocol()
173 p_data->arr[type].enable = enable; in qed_dcbx_set_params()
174 p_data->arr[type].priority = prio; in qed_dcbx_set_params()
175 p_data->arr[type].tc = tc; in qed_dcbx_set_params()
177 p_data->arr[type].update = UPDATE_DCB; in qed_dcbx_set_params()
179 p_data->arr[type].update = DONT_UPDATE_DCB_DSCP; in qed_dcbx_set_params()
182 p_data->arr[typ in qed_dcbx_set_params()
[all...]

123456