| /linux/tools/lib/bpf/ |
| H A D | bpf_helpers.h | 235 #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/tools/testing/selftests/bpf/progs/ |
| H A 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()
|
| H A D | rhash.c | 18 char arr[128]; member 50 struct elem empty = {.val = 3, .arr = {0}}; in test_rhash_lookup_update() 76 struct elem empty = {.val = 4, .arr = {0}}; in test_rhash_update_delete() 106 struct elem empty = {.val = 4, .arr = {0}}; in test_rhash_update_elements() 151 struct elem val1 = {.val = 100, .arr = {0}}; in test_rhash_update_exist() 152 struct elem val2 = {.val = 200, .arr = {0}}; in test_rhash_update_exist() 193 struct elem val1 = {.val = 111, .arr = {0}}; in test_rhash_update_any() 194 struct elem val2 = {.val = 222, .arr = {0}}; in test_rhash_update_any() 228 struct elem val = {.val = 600, .arr = {0}}; in test_rhash_noexist_duplicate()
|
| H A 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()
|
| H A 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()
|
| H A D | arena_htab.c | 30 char __arena *arr = arr1; in arena_htab_llvm() local 40 arr[i] = i; in arena_htab_llvm()
|
| H A D | test_global_func9.c | 61 __noinline int quux(int (*arr)[10]) in quux() 63 if (arr) in quux() 64 return (*arr)[9]; in quux()
|
| /linux/scripts/coccinelle/misc/ |
| H A D | of_table.cocci | 14 identifier var, arr; 18 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 25 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 32 identifier var, arr; 36 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 45 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 54 identifier var, arr; 58 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 66 struct \(of_device_id \| i2c_device_id \| platform_device_id \| spi_device_id\) arr[] = { 75 arr << r.arr; [all …]
|
| /linux/drivers/scsi/ |
| H A D | scsi_debug.c | 1657 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in inquiry_vpd_83() 1669 arr, arr_len); in inquiry_vpd_83() 1680 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in inquiry_vpd_83() 1693 arr, arr_len, skip); in inquiry_vpd_83() 1703 * 'arr' or -1 if error. in inquiry_vpd_83() 1705 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in inquiry_vpd_83() 1713 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in inquiry_vpd_83() 1725 /* Device identification VPD page. Returns number of bytes placed in arr */ 1726 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, 1736 arr[ in inquiry_vpd_84() 1570 fill_from_dev_buffer(struct scsi_cmnd * scp,unsigned char * arr,int arr_len) fill_from_dev_buffer() argument 1593 p_fill_from_dev_buffer(struct scsi_cmnd * scp,const void * arr,int arr_len,unsigned int off_dst) p_fill_from_dev_buffer() argument 1618 fetch_to_dev_buffer(struct scsi_cmnd * scp,unsigned char * arr,int arr_len) fetch_to_dev_buffer() argument 1639 inquiry_vpd_83(unsigned char * arr,int port_group_id,int target_dev_id,int dev_id_num,const char * dev_id_str,int dev_id_str_len,const uuid_t * lu_name) inquiry_vpd_83() argument 1733 inquiry_vpd_84(unsigned char * arr) inquiry_vpd_84() argument 1740 inquiry_vpd_85(unsigned char * arr) inquiry_vpd_85() argument 1775 inquiry_vpd_88(unsigned char * arr,int target_dev_id) inquiry_vpd_88() argument 1862 inquiry_vpd_89(unsigned char * arr) inquiry_vpd_89() argument 1877 inquiry_vpd_b0(unsigned char * arr) inquiry_vpd_b0() argument 1930 inquiry_vpd_b1(struct sdebug_dev_info * devip,unsigned char * arr) inquiry_vpd_b1() argument 1942 inquiry_vpd_b2(unsigned char * arr) inquiry_vpd_b2() argument 1961 inquiry_vpd_b6(struct sdebug_dev_info * devip,unsigned char * arr) inquiry_vpd_b6() argument 2005 unsigned char *arr; resp_inquiry() local 2176 unsigned char arr[SCSI_SENSE_BUFFERSIZE]; /* assume >= 18 bytes */ resp_requests() local 2292 unsigned char arr[SDEBUG_READCAP_ARR_SZ]; resp_readcap() local 2312 unsigned char arr[SDEBUG_READCAP16_ARR_SZ]; resp_readcap16() local 2358 unsigned char *arr; resp_report_tgtpgs() local 2441 u8 *arr; resp_rsup_opcodes() local 2588 u8 arr[16]; resp_rsup_tmfs() local 3114 unsigned char arr[SDEBUG_MAX_MSELECT_SZ]; resp_mode_select() local 3240 resp_temp_l_pg(unsigned char * arr) resp_temp_l_pg() argument 3251 resp_ie_l_pg(unsigned char * arr) resp_ie_l_pg() argument 3265 resp_env_rep_l_spg(unsigned char * arr) resp_env_rep_l_spg() argument 3285 unsigned char arr[SDEBUG_MAX_LSENSE_SZ]; resp_log_sense() local 3384 unsigned char arr[SDEBUG_READ_BLOCK_LIMITS_ARR_SZ]; resp_read_blklimits() local 3577 unsigned char arr[20]; resp_read_position() local 4251 comp_write_worker(struct sdeb_store_info * sip,u64 lba,u32 num,const u8 * arr,bool compare_only) comp_write_worker() argument 5367 u8 *arr; resp_comp_write() local 5499 u8 arr[SDEBUG_GET_LBA_STATUS_LEN]; resp_get_lba_status() local 5540 u8 arr[256] = {}; resp_get_stream_status() local 5675 u8 arr[RL_BUCKET_ELEMS * sizeof(struct scsi_lun)]; resp_report_luns() local 5768 u8 *arr; resp_verify() local 5848 u8 *arr = NULL, *desc; resp_report_zones() local 7469 char arr[16]; scsi_debug_write_info() local [all...] |
| H A 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() 460 const struct value_name_pair *arr 435 const struct value_name_pair *arr = scsi_mlreturn_arr; scsi_mlreturn_string() local [all...] |
| H A 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/arch/x86/kernel/cpu/mtrr/ |
| H A 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/tools/sched_ext/include/scx/ |
| H A D | common.h | 53 * @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 (typeof((__skel)->elfsec##_##arr)) \ 71 bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \
|
| /linux/fs/ubifs/ |
| H A 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 …]
|
| H A D | find.c | 137 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() 423 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 …]
|
| /linux/scripts/kconfig/ |
| H A D | streamline_config.pl | 344 my @arr; 347 @arr = @{$objects{$1}}; 350 $arr[$#arr+1] = $var; 354 $objects{$1} = \@arr; 410 my @arr = @{$objects{$module}}; 411 foreach my $conf (@arr) { 710 my @arr = @{$objects{$module}}; 711 foreach my $conf (@arr) { 717 foreach my $conf (@arr) { [all...] |
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A 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/lib/ |
| H A D | test_ubsan.c | 83 int arr[4]; in test_ubsan_out_of_bounds() member 92 data.arr[j] = i; in test_ubsan_out_of_bounds() 95 data.arr[k] = i; in test_ubsan_out_of_bounds() 130 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() local 134 ptr = (int *)(arr + 1); in test_ubsan_misaligned_access()
|
| /linux/rust/zerocopy/src/ |
| H A D | split_at.rs | 1295 let arr = [1; BUFFER_SIZE]; 1296 let dst = SliceDst::<OFFSET>::ref_from_bytes(&arr[..]).unwrap(); 1308 let mut arr = [1; BUFFER_SIZE]; 1309 let dst = SliceDst::<OFFSET>::mut_from_bytes(&mut arr[..]).unwrap(); 1342 let arr = [1u16; N]; 1343 let dst = SliceDst::ref_from_bytes(arr.as_bytes()).unwrap(); 1357 let mut arr = [1, 2, 3, 4]; 1358 let slice = &arr[..]; 1359 // SAFETY: 2 <= arr.len() (4) 1366 let slice_mut = &mut arr[ 971 let arr = [1; BUFFER_SIZE]; test_split_at() localVariable 984 let mut arr = [1; BUFFER_SIZE]; test_split_at() localVariable 1016 let arr = [1u16; N]; test_split_at_overlapping() localVariable 1031 let mut arr = [1, 2, 3, 4]; test_split_at_unchecked() localVariable 1059 let arr = [1, 2, 3, 4]; test_split_at_via_methods() localVariable 1082 let arr = [1, 2, 3, 4]; test_split_at_via_unaligned() localVariable [all...] |
| /linux/scripts/include/ |
| H A D | array_size.h | 9 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 403 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type() 406 jsonw_uint_field(w, "type_id", arr->type); in dump_btf_type() 407 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type() 408 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type() 411 arr->type, arr->index_type, arr->nelems); in dump_btf_type() 804 static int ptr_array_push(const void *ptr, struct ptr_array *arr) in dump_btf_c() 809 if (arr->cnt == arr in dump_btf_c() 167 const struct btf_array *arr = (const void *)(t + 1); dump_btf_type() local 475 ptr_array_push(const void * ptr,struct ptr_array * arr) ptr_array_push() argument 492 ptr_array_free(struct ptr_array * arr) ptr_array_free() argument 710 struct btf_array *arr = btf_array(t); btf_type_disambig_hash() local [all...] |
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_dcbx.c | 159 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 …]
|
| /linux/tools/gpio/ |
| H A D | gpio-utils.h | 19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|
| /linux/tools/iio/ |
| H A D | iio_utils.h | 19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nffw.c | 130 nffw_res_fwinfos(struct nfp_nffw_info_data *fwinf, struct nffw_fwinfo **arr) in nffw_res_fwinfos() argument 142 *arr = &fwinf->info.v1.fwinfo[0]; in nffw_res_fwinfos() 145 *arr = &fwinf->info.v2.fwinfo[0]; in nffw_res_fwinfos() 148 *arr = NULL; in nffw_res_fwinfos()
|