Home
last modified time | relevance | path

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

123456

/kernel/liteos_a/syscall/
Dsyscall_pub.h140 #define CHECK_ARRAY_FIELD_ASPACE(ptr, arr, arrlen, field, len, ...) \ argument
142 if (ptr != NULL && ptr->arr != NULL) { \
144 CHECK_ASPACE(ptr->arr[i].field, ptr->arr[i].len, ##__VA_ARGS__); \
167 #define DUP_ARRAY_FIELD_FROM_USER_(ext, ptr, arr, arrlen, field, len, ...) \ argument
168 __typeof(*ptr##_NONCONST) ptr##arr##cpy = ptr##cpybak, ptr##arr##cpybak = ptr##cpybak; \
169 __typeof(ptr##_NONCONST) ptr##arr = ptr ? &ptr##arr##cpy : NULL, ptr##arr##_NONCONST = NULL; \
170 DUP_FIELD_FROM_USER(ptr##arr, arr, arrlen * sizeof(ptr->arr[0]), ##__VA_ARGS__); \
171 if (ptr != NULL && ptr->arr != NULL) { \
174 DUP_FIELD_FROM_USER##ext(ptr, arr[i].field, ptr->arr[i].len, break); \
177 FREE_DUP_ARRAY_FIELD(ptr, arr, i, field); \
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/misc/
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 …]
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_debug.c1150 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
1162 arr, arr_len); in fill_from_dev_buffer()
1173 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument
1186 arr, arr_len, skip); in p_fill_from_dev_buffer()
1198 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
1206 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
1219 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument
1229 arr[0] = 0x2; /* ASCII */ in inquiry_vpd_83()
1230 arr[1] = 0x1; in inquiry_vpd_83()
1231 arr[2] = 0x0; in inquiry_vpd_83()
[all …]
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()
450 const struct value_name_pair *arr = scsi_mlreturn_arr; in scsi_mlreturn_string() local
453 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-trans.c239 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local
246 !trans->command_groups[grp].arr) in iwl_get_cmd_string()
249 arr = &trans->command_groups[grp]; in iwl_get_cmd_string()
250 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string()
260 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local
263 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted()
264 if (!arr->arr) in iwl_cmd_groups_verify_sorted()
266 for (j = 0; j < arr->size - 1; j++) in iwl_cmd_groups_verify_sorted()
267 if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) in iwl_cmd_groups_verify_sorted()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf_tracing.h416 #define ___bpf_fill0(arr, p, x) do {} while (0) argument
417 #define ___bpf_fill1(arr, p, x) arr[p] = x argument
418 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument
419 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument
420 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument
421 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument
422 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument
423 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument
424 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument
425 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/
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()
/kernel/linux/linux-5.10/fs/ocfs2/
Dsysfile.c95 struct inode **arr = NULL; in ocfs2_get_system_file_inode() local
99 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode()
101 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
104 if (arr && ((inode = *arr) != NULL)) { in ocfs2_get_system_file_inode()
117 if (arr && inode) { in ocfs2_get_system_file_inode()
118 *arr = igrab(inode); in ocfs2_get_system_file_inode()
119 BUG_ON(!*arr); in ocfs2_get_system_file_inode()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
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 bpf_func_0() local
47 volatile char arr[128] = {}; in bpf_func_1() local
55 volatile char arr[128] = {}; in entry() local
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()
/kernel/linux/linux-5.10/fs/ubifs/
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 …]
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()
756 sort(c->dirty_idx.arr, c->dirty_idx.cnt, sizeof(void *), 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()
[all …]
/kernel/linux/linux-5.10/scripts/kconfig/
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) {
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/
Dehea_main.c142 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local
172 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
173 if (!arr) in ehea_update_firmware_handles()
192 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
193 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
194 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
195 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
196 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
197 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
198 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
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()
/kernel/linux/linux-5.10/kernel/
Dparams.c446 const struct kparam_array *arr = kp->arr; in param_array_set() local
449 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
450 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
451 arr->num ?: &temp_num); in param_array_set()
457 const struct kparam_array *arr = kp->arr; in param_array_get() local
460 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
464 p.arg = arr->elem + arr->elemsize * i; in param_array_get()
466 ret = arr->ops->get(buffer + off, &p); in param_array_get()
478 const struct kparam_array *arr = arg; in param_array_free() local
480 if (arr->ops->free) in param_array_free()
[all …]
/kernel/linux/linux-5.10/lib/
Dtest_ubsan.c56 volatile int arr[4]; in test_ubsan_out_of_bounds() local
58 arr[j] = i; in test_ubsan_out_of_bounds()
85 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()
Dtest_bitmap.c103 const u32 *arr, unsigned int len) __used;
107 const u32 *arr, unsigned int len) in __check_eq_u32_array() argument
116 if (memcmp(exp_arr, arr, len*sizeof(*arr))) { in __check_eq_u32_array()
121 32, 4, arr, len*sizeof(*arr), false); in __check_eq_u32_array()
473 u32 arr[EXP1_IN_BITS / 32]; in test_bitmap_arr32() local
476 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32()
479 bitmap_to_arr32(arr, exp1, nbits); in test_bitmap_arr32()
480 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
491 expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], in test_bitmap_arr32()
/kernel/linux/linux-5.10/drivers/dma/dw/
Dof.c53 u32 tmp, arr[DW_DMA_MAX_NR_MASTERS], mb[DW_DMA_MAX_NR_CHANNELS]; in dw_dma_parse_dt() local
88 if (!of_property_read_u32_array(np, "data-width", arr, nr_masters)) { in dw_dma_parse_dt()
90 pdata->data_width[tmp] = arr[tmp]; in dw_dma_parse_dt()
91 } else if (!of_property_read_u32_array(np, "data_width", arr, nr_masters)) { in dw_dma_parse_dt()
93 pdata->data_width[tmp] = BIT(arr[tmp] & 0x07); in dw_dma_parse_dt()
/kernel/linux/linux-5.10/fs/orangefs/
Dorangefs-debug.h21 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/kernel/linux/linux-5.10/tools/include/linux/
Dkernel.h105 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) argument
/kernel/linux/linux-5.10/tools/iio/
Diio_utils.h18 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/kernel/linux/linux-5.10/tools/gpio/
Dgpio-utils.h19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dsocket.c34 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
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[type].dont_add_vlan0 = true; in qed_dcbx_set_params()
301 p_data->arr[DCBX_PROTOCOL_ETH].tc = p_hwfn->ufp_info.tc; in qed_dcbx_process_tlv()
[all …]

123456