Home
last modified time | relevance | path

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

1234567

/linux/tools/lib/bpf/
A Dbpf_helpers.h168 #define ___bpf_fill1(arr, p, x) arr[p] = x argument
169 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument
170 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument
171 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument
172 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument
173 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument
174 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument
175 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument
176 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument
177 #define ___bpf_fill10(arr, p, x, args...) arr[p] = x; ___bpf_fill9(arr, p + 1, args) argument
[all …]
/linux/drivers/scsi/
A Dscsi_debug.c1636 arr[3] = inquiry_vpd_84(&arr[4]); in resp_inquiry()
1639 arr[3] = inquiry_vpd_85(&arr[4]); in resp_inquiry()
1666 arr[3] = inquiry_vpd_b0(&arr[4]); in resp_inquiry()
1672 arr[3] = inquiry_vpd_b2(&arr[4]); in resp_inquiry()
1738 memset(arr, 0, sizeof(arr)); in resp_requests()
2131 memset(arr, 0, sizeof(arr)); in resp_rsup_tmfs()
2488 memset(arr, 0, sizeof(arr)); in resp_mode_select()
2594 memset(arr, 0, sizeof(arr)); in resp_log_sense()
2618 arr[3] = resp_ie_l_pg(arr + 4); in resp_log_sense()
4200 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/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/drivers/net/wireless/intel/iwlwifi/
A Diwl-trans.c216 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local
223 !trans->command_groups[grp].arr) in iwl_get_cmd_string()
226 arr = &trans->command_groups[grp]; in iwl_get_cmd_string()
227 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string()
237 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local
240 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted()
241 if (!arr->arr) in iwl_cmd_groups_verify_sorted()
243 for (j = 0; j < arr->size - 1; j++) in iwl_cmd_groups_verify_sorted()
244 if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) in iwl_cmd_groups_verify_sorted()
/linux/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/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/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/drivers/net/ethernet/ibm/ehea/
A Dehea_main.c173 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
174 if (!arr) in ehea_update_firmware_handles()
223 ehea_fw_handles.arr = arr; in ehea_update_firmware_handles()
256 arr = kcalloc(num_registrations, sizeof(*arr), GFP_ATOMIC); in ehea_update_bcmc_registrations()
257 if (!arr) in ehea_update_bcmc_registrations()
311 kfree(ehea_bcmc_regs.arr); in ehea_update_bcmc_registrations()
312 ehea_bcmc_regs.arr = arr; in ehea_update_bcmc_registrations()
1427 if (!q_skba->arr) in ehea_init_q_skba()
1554 vfree(pr->sq_skba.arr); in ehea_init_port_res()
1555 vfree(pr->rq1_skba.arr); in ehea_init_port_res()
[all …]
/linux/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_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(in->arr)) in test_core_existence()
67 out->arr_value = BPF_CORE_READ(in, arr[0]); in test_core_existence()
A Dtest_global_func16.c6 __noinline int foo(int (*arr)[10]) in foo()
8 if (arr) in foo()
9 return (*arr)[9]; in foo()
/linux/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/kernel/
A Dparams.c464 const struct kparam_array *arr = kp->arr; in param_array_set() local
467 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
468 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
469 arr->num ?: &temp_num); in param_array_set()
475 const struct kparam_array *arr = kp->arr; in param_array_get() local
478 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
482 p.arg = arr->elem + arr->elemsize * i; in param_array_get()
496 const struct kparam_array *arr = arg; in param_array_free() local
498 if (arr->ops->free) in param_array_free()
499 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
[all …]
/linux/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/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()
93 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() local
97 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.c105 const u32 *arr, unsigned int len) __used;
109 const u32 *arr, unsigned int len) in __check_eq_u32_array() argument
118 if (memcmp(exp_arr, arr, len*sizeof(*arr))) { in __check_eq_u32_array()
123 32, 4, arr, len*sizeof(*arr), false); in __check_eq_u32_array()
529 u32 arr[EXP1_IN_BITS / 32]; in test_bitmap_arr32() local
532 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32()
535 bitmap_to_arr32(arr, exp1, nbits); in test_bitmap_arr32()
536 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
547 expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], in test_bitmap_arr32()
/linux/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 …]
/linux/tools/include/linux/
A Dkernel.h95 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) argument
/linux/fs/orangefs/
A Dorangefs-debug.h21 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux/tools/gpio/
A Dgpio-utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/linux/tools/iio/
A Diio_utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/linux/tools/testing/selftests/net/
A Dsocket.c34 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument

Completed in 61 milliseconds

1234567