Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/tools/lib/bpf/
A Dbpf_helpers.h195 #define ___bpf_fill1(arr, p, x) arr[p] = x argument
196 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument
197 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument
198 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument
199 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument
200 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument
201 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument
202 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument
203 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument
204 #define ___bpf_fill10(arr, p, x, args...) arr[p] = x; ___bpf_fill9(arr, p + 1, args) argument
[all …]
/linux-6.3-rc2/scripts/coccinelle/misc/
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;
75 arr << r.arr;
78 cocci.print_main(arr,p1)
82 arr << r.arr;
[all …]
/linux-6.3-rc2/drivers/scsi/
A Dscsi_debug.c1654 arr[3] = inquiry_vpd_84(&arr[4]); in resp_inquiry()
1657 arr[3] = inquiry_vpd_85(&arr[4]); in resp_inquiry()
1684 arr[3] = inquiry_vpd_b0(&arr[4]); in resp_inquiry()
1690 arr[3] = inquiry_vpd_b2(&arr[4]); in resp_inquiry()
1756 memset(arr, 0, sizeof(arr)); in resp_requests()
2156 memset(arr, 0, sizeof(arr)); in resp_rsup_tmfs()
2513 memset(arr, 0, sizeof(arr)); in resp_mode_select()
2631 memset(arr, 0, sizeof(arr)); in resp_log_sense()
2655 arr[3] = resp_ie_l_pg(arr + 4); in resp_log_sense()
4364 memset(arr, 0, sizeof(arr)); in resp_report_luns()
[all …]
A Dconstants.c28 const struct value_name_pair *arr; member
264 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local
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()
439 if (result == arr->value) in scsi_mlreturn_string()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/
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()
/linux-6.3-rc2/arch/x86/kernel/cpu/mtrr/
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()
/linux-6.3-rc2/fs/ocfs2/
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-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtailcall_bpf2bpf3.c16 volatile char arr[64] = {}; in subprog_tail2() local
29 volatile char arr[64] = {}; in subprog_tail() local
39 volatile char arr[128] = {}; in classifier_0() local
47 volatile char arr[128] = {}; in classifier_1() local
55 volatile char arr[128] = {}; in entry() local
A Dtest_global_func16.c7 __noinline int foo(int (*arr)[10]) in foo()
9 if (arr) in foo()
10 return (*arr)[9]; in foo()
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()
A Dtest_global_func9.c61 __noinline int quux(int (*arr)[10]) in quux()
63 if (arr) in quux()
64 return (*arr)[9]; in quux()
/linux-6.3-rc2/fs/ubifs/
A Dlprops.c68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap()
69 heap->arr[ppos] = lprops; in move_up_lpt_heap()
102 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap()
133 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
134 heap->arr[cpos] = lprops; in adjust_lpt_heap()
147 heap->arr[hpos] = heap->arr[cpos]; in adjust_lpt_heap()
187 lp = heap->arr[cpos]; in add_to_lpt_heap()
225 heap->arr[hpos] = heap->arr[heap->cnt]; in remove_from_lpt_heap()
765 lprops = heap->arr[0]; in ubifs_fast_find_free()
931 lprops = heap->arr[i]; in dbg_check_cats()
[all …]
A Dfind.c136 lprops = heap->arr[i]; in scan_for_dirty()
276 idx_lp = idx_heap->arr[0]; in ubifs_find_dirty_leb()
293 lp = heap->arr[0]; in ubifs_find_dirty_leb()
422 lprops = heap->arr[i]; in do_find_free_space()
753 memcpy(c->dirty_idx.arr, c->lpt_heap[LPROPS_DIRTY_IDX - 1].arr, in ubifs_save_dirty_idx_lnums()
761 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->lnum, in ubifs_save_dirty_idx_lnums()
762 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->dirty, in ubifs_save_dirty_idx_lnums()
763 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->free); in ubifs_save_dirty_idx_lnums()
766 c->dirty_idx.arr[i] = (void *)(size_t)c->dirty_idx.arr[i]->lnum; in ubifs_save_dirty_idx_lnums()
827 lprops = heap->arr[i]; in find_dirty_idx_leb()
[all …]
/linux-6.3-rc2/scripts/kconfig/
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) {
/linux-6.3-rc2/drivers/net/ethernet/ibm/ehea/
A Dehea_main.c175 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
176 if (!arr) in ehea_update_firmware_handles()
225 ehea_fw_handles.arr = arr; in ehea_update_firmware_handles()
258 arr = kcalloc(num_registrations, sizeof(*arr), GFP_ATOMIC); in ehea_update_bcmc_registrations()
259 if (!arr) in ehea_update_bcmc_registrations()
313 kfree(ehea_bcmc_regs.arr); in ehea_update_bcmc_registrations()
314 ehea_bcmc_regs.arr = arr; in ehea_update_bcmc_registrations()
1429 if (!q_skba->arr) in ehea_init_q_skba()
1556 vfree(pr->sq_skba.arr); in ehea_init_port_res()
1557 vfree(pr->rq1_skba.arr); in ehea_init_port_res()
[all …]
/linux-6.3-rc2/lib/
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()
A Dtest_scanf.c297 #define fill_random_array(arr) \ argument
302 for (i = 0; i < ARRAY_SIZE(arr); i++, neg_pattern >>= 1) { \
303 (arr)[i] = random_for_type(typeof((arr)[0])); \
304 if (is_signed_type(typeof((arr)[0])) && (neg_pattern & 1)) \
305 (arr)[i] = -(arr)[i]; \
344 #define test_array_8(fn, check_data, string, fmt, arr) \ argument
346 BUILD_BUG_ON(ARRAY_SIZE(arr) != 8); \
348 &(arr)[0], &(arr)[1], &(arr)[2], &(arr)[3], \
349 &(arr)[4], &(arr)[5], &(arr)[6], &(arr)[7]); \
A Dtest_bitmap.c111 const u32 *arr, unsigned int len) in __check_eq_u32_array() argument
120 if (memcmp(exp_arr, arr, len*sizeof(*arr))) { in __check_eq_u32_array()
125 32, 4, arr, len*sizeof(*arr), false); in __check_eq_u32_array()
606 u32 arr[EXP1_IN_BITS / 32]; in test_bitmap_arr32() local
609 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32()
612 bitmap_to_arr32(arr, exp1, nbits); in test_bitmap_arr32()
613 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
632 u64 arr[EXP1_IN_BITS / 64]; in test_bitmap_arr64() local
635 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr64()
638 memset(bmap2, 0xff, sizeof(arr)); in test_bitmap_arr64()
[all …]
/linux-6.3-rc2/kernel/
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()
497 const struct kparam_array *arr = arg; in param_array_free() local
499 if (arr->ops->free) in param_array_free()
500 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
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-6.3-rc2/fs/orangefs/
A Dorangefs-debug.h21 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux-6.3-rc2/tools/include/linux/
A Dkernel.h102 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) argument
/linux-6.3-rc2/tools/gpio/
A Dgpio-utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux-6.3-rc2/tools/iio/
A Diio_utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/
A Dqed_dcbx.c160 p_data->arr[id].enable, p_data->arr[id].priority, 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()
182 p_data->arr[type].dont_add_vlan0 = true; in qed_dcbx_set_params()
309 tc = p_data->arr[DCBX_PROTOCOL_ETH].tc; in qed_dcbx_process_tlv()
312 if (p_data->arr[type].update) in qed_dcbx_process_tlv()
427 p_results->arr[DCBX_PROTOCOL_ROCE].enable) in qed_dcbx_get_priority_info()
445 p_results->arr[DCBX_PROTOCOL_ETH].enable) in qed_dcbx_get_priority_info()
[all …]

Completed in 59 milliseconds

123456