/linux-6.12.1/tools/lib/bpf/ |
D | bpf_helpers.h | 225 #define ___bpf_fill0(arr, p, x) do {} while (0) argument 226 #define ___bpf_fill1(arr, p, x) arr[p] = x argument 227 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument 228 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument 229 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument 230 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument 231 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument 232 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument 233 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument 234 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | tailcall_bpf2bpf3.c | 17 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()
|
D | test_global_func16.c | 7 __noinline int foo(int (*arr)[10]) in foo() 9 if (arr) in foo() 10 return (*arr)[9]; in foo()
|
D | test_core_reloc_existence.c | 33 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()
|
D | arena_htab.c | 30 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-6.12.1/scripts/coccinelle/misc/ |
D | of_table.cocci | 14 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 …]
|
/linux-6.12.1/drivers/scsi/ |
D | scsi_debug.c | 1513 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument 1525 arr, arr_len); in fill_from_dev_buffer() 1536 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument 1549 arr, arr_len, skip); in p_fill_from_dev_buffer() 1561 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument 1569 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer() 1582 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument 1592 arr[0] = 0x2; /* ASCII */ in inquiry_vpd_83() 1593 arr[1] = 0x1; in inquiry_vpd_83() 1594 arr[2] = 0x0; in inquiry_vpd_83() [all …]
|
D | constants.c | 28 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 …]
|
D | scsi_proto_test.c | 13 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-6.12.1/arch/x86/kernel/cpu/mtrr/ |
D | cyrix.c | 17 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.12.1/tools/sched_ext/include/scx/ |
D | common.h | 63 #define RESIZE_ARRAY(__skel, elfsec, arr, n) \ argument 66 bpf_map__set_value_size((__skel)->maps.elfsec##_##arr, \ 67 sizeof((__skel)->elfsec##_##arr->arr[0]) * (n)); \ 68 (__skel)->elfsec##_##arr = \ 69 bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \
|
/linux-6.12.1/fs/ocfs2/ |
D | sysfile.c | 93 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.12.1/include/linux/ |
D | array_size.h | 11 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) argument
|
/linux-6.12.1/fs/ubifs/ |
D | lprops.c | 63 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 …]
|
/linux-6.12.1/scripts/kconfig/ |
D | streamline_config.pl | 334 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.12.1/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 146 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 …]
|
/linux-6.12.1/kernel/ |
D | params.c | 467 const struct kparam_array *arr = kp->arr; in param_array_set() local 470 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() 471 arr->elemsize, arr->ops->set, kp->level, in param_array_set() 472 arr->num ?: &temp_num); in param_array_set() 478 const struct kparam_array *arr = kp->arr; in param_array_get() local 481 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get() 485 p.arg = arr->elem + arr->elemsize * i; in param_array_get() 487 ret = arr->ops->get(buffer + off, &p); in param_array_get() 499 const struct kparam_array *arr = arg; in param_array_free() local 501 if (arr->ops->free) in param_array_free() [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-trans.c | 156 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local 163 !trans->command_groups[grp].arr) in iwl_get_cmd_string() 166 arr = &trans->command_groups[grp]; in iwl_get_cmd_string() 167 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string() 177 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local 180 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted() 181 if (!arr->arr) in iwl_cmd_groups_verify_sorted() 183 for (j = 0; j < arr->size - 1; j++) in iwl_cmd_groups_verify_sorted() 184 if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) in iwl_cmd_groups_verify_sorted()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_reg_sr.c | 36 kfree(sr->pool.arr); in reg_sr_fini() 54 struct xe_reg_sr_entry *arr; in alloc_entry() local 56 arr = krealloc_array(sr->pool.arr, in alloc_entry() 58 sizeof(*arr), GFP_KERNEL); in alloc_entry() 59 if (!arr) in alloc_entry() 62 sr->pool.arr = arr; in alloc_entry() 66 return &sr->pool.arr[sr->pool.used++]; in alloc_entry()
|
/linux-6.12.1/drivers/gpu/drm/i915/selftests/ |
D | i915_random.c | 45 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.12.1/lib/ |
D | test_ubsan.c | 73 volatile int arr[4]; in test_ubsan_out_of_bounds() local 79 arr[j] = i; in test_ubsan_out_of_bounds() 82 arr[k] = i; in test_ubsan_out_of_bounds() 117 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() local 121 ptr = (int *)(arr + 1); in test_ubsan_misaligned_access()
|
D | test_scanf.c | 297 #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]); \
|
/linux-6.12.1/scripts/include/ |
D | array_size.h | 9 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|
/linux-6.12.1/fs/bcachefs/ |
D | eytzinger.c | 272 u32 *arr; 275 arr = kmalloc_array(N, sizeof(u32), GFP_KERNEL); 279 arr[i] = get_random_u32(); 282 eytzinger0_sort(arr, N, sizeof(u32), mycmp, NULL); 292 if (prev > arr[i]) 294 prev = arr[i]; 297 kfree(arr); 302 kfree(arr);
|
/linux-6.12.1/fs/orangefs/ |
D | orangefs-debug.h | 21 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|