Home
last modified time | relevance | path

Searched refs:value_size (Results 1 – 25 of 159) sorted by relevance

1234567

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c72 __u32 value_size; member
140 .value_size = 180,
195 .value_size = 68,
220 .value_size = 16,
261 .value_size = 48,
306 .value_size = 48,
328 .value_size = 4,
350 .value_size = 4,
372 .value_size = 4,
397 .value_size = 4,
[all …]
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dqueue_stack_maps.c53 attr->value_size == 0 || in queue_stack_map_alloc_check()
58 if (attr->value_size > KMALLOC_MAX_SIZE) in queue_stack_map_alloc_check()
75 cost = queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
117 memset(value, 0, qs->map.value_size); in __queue_map_get()
122 ptr = &qs->elements[qs->tail * qs->map.value_size]; in __queue_map_get()
123 memcpy(value, ptr, qs->map.value_size); in __queue_map_get()
147 memset(value, 0, qs->map.value_size); in __stack_map_get()
156 ptr = &qs->elements[index * qs->map.value_size]; in __stack_map_get()
157 memcpy(value, ptr, qs->map.value_size); in __stack_map_get()
221 dst = &qs->elements[qs->head * qs->map.value_size]; in queue_stack_map_push_elem()
[all …]
H A Dmap_iter.c105 u32 key_acc_size, value_acc_size, key_size, value_size; in bpf_iter_attach_map() local
130 value_size = map->value_size; in bpf_iter_attach_map()
132 value_size = round_up(map->value_size, 8) * num_possible_cpus(); in bpf_iter_attach_map()
134 if (key_acc_size > key_size || value_acc_size > value_size) { in bpf_iter_attach_map()
H A Dmap_in_map.c49 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
77 meta0->value_size == meta1->value_size && in bpf_map_meta_equal()
H A Dstackmap.c68 (u64)smap->map.value_size; in prealloc_elems_and_freelist()
92 u32 value_size = attr->value_size; in stack_map_alloc() local
106 value_size < 8 || value_size % 8) in stack_map_alloc()
111 if (value_size % sizeof(struct bpf_stack_build_id) || in stack_map_alloc()
112 value_size / sizeof(struct bpf_stack_build_id) in stack_map_alloc()
115 } else if (value_size / 8 > sysctl_perf_event_max_stack) in stack_map_alloc()
125 (sizeof(struct stack_map_bucket) + (u64)value_size)); in stack_map_alloc()
136 smap->map.value_size = value_size; in stack_map_alloc()
470 u32 max_depth = map->value_size / stack_map_data_size(map); in BPF_CALL_3()
770 memset(value + trace_len, 0, map->value_size - trace_len); in bpf_stackmap_copy()
H A Dlocal_storage.c169 map->value_size, in cgroup_storage_update_elem()
175 memcpy(&new->data[0], value, map->value_size); in cgroup_storage_update_elem()
203 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
237 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
298 if (attr->value_size == 0) in cgroup_storage_map_alloc()
301 if (attr->value_size > PAGE_SIZE) in cgroup_storage_map_alloc()
485 size = sizeof(struct bpf_storage_buffer) + map->value_size; in bpf_cgroup_storage_calculate_size()
489 size = map->value_size; in bpf_cgroup_storage_calculate_size()
H A Dhashtab.c267 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
390 attr->value_size == 0) in htab_map_alloc_check()
399 if (attr->value_size >= KMALLOC_MAX_SIZE - in htab_map_alloc_check()
454 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
466 cost += (u64) round_up(htab->map.value_size, 8) * in htab_map_alloc()
811 memcpy(this_cpu_ptr(pptr), value, htab->map.value_size); in pcpu_copy_value()
813 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
834 u32 size = round_up(htab->map.value_size, 8); in pcpu_init_value()
861 u32 size = htab->map.value_size; in alloc_htab_elem()
1078 memcpy(l_new->key + round_up(map->key_size, 8), value, map->value_size); in htab_lru_map_update_elem()
[all …]
H A Dbpf_struct_ops.c256 memset(value, 0, map->value_size); in bpf_struct_ops_map_sys_lookup_elem()
264 memcpy(uvalue, st_map->uvalue, map->value_size); in bpf_struct_ops_map_sys_lookup_elem()
361 memcpy(uvalue, value, map->value_size); in bpf_struct_ops_map_update_elem()
480 memset(uvalue, 0, map->value_size); in bpf_struct_ops_map_update_elem()
481 memset(kvalue, 0, map->value_size); in bpf_struct_ops_map_update_elem()
520 value = kmalloc(map->value_size, GFP_USER | __GFP_NOWARN); in bpf_struct_ops_map_seq_show_elem()
574 if (attr->value_size != vt->size) in bpf_struct_ops_map_alloc()
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dmap.c91 return malloc(round_up(info->value_size, 8) * in alloc_value()
94 return malloc(info->value_size); in alloc_value()
127 step = round_up(map_info->value_size, 8); in do_dump_btf()
167 print_hex_data_json(value, info->value_size); in print_entry_json()
182 step = round_up(info->value_size, 8); in print_entry_json()
196 info->value_size); in print_entry_json()
276 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain()
277 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain()
287 if (info->value_size) { in print_entry_plain()
289 fprint_hex(stdout, value, info->value_size, " "); in print_entry_plain()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dlibbpf_probes.c204 int key_size, value_size, max_entries, map_flags; in bpf_probe_map_type() local
210 value_size = sizeof(__u32); in bpf_probe_map_type()
216 value_size = sizeof(__u64); in bpf_probe_map_type()
220 value_size = sizeof(__u64); in bpf_probe_map_type()
226 value_size = sizeof(__u64); in bpf_probe_map_type()
237 value_size = 8; in bpf_probe_map_type()
246 value_size = 0; in bpf_probe_map_type()
292 attr.value_size = value_size; in bpf_probe_map_type()
H A Dbpf.c87 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
108 int key_size, int value_size, int max_entries, in bpf_create_map_node() argument
117 map_attr.value_size = value_size; in bpf_create_map_node()
128 int value_size, int max_entries, __u32 map_flags) in bpf_create_map() argument
135 map_attr.value_size = value_size; in bpf_create_map()
142 int key_size, int value_size, int max_entries, in bpf_create_map_name() argument
151 map_attr.value_size = value_size; in bpf_create_map_name()
167 attr.value_size = 4; in bpf_create_map_in_map_node()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/map_tests/
H A Dhtab_map_batch_ops.c83 int err, step, value_size; in __test_map_lookup_and_delete_batch() local
91 .value_size = sizeof(int), in __test_map_lookup_and_delete_batch()
103 value_size = is_pcpu ? sizeof(value) : sizeof(int); in __test_map_lookup_and_delete_batch()
131 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
150 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
162 total * value_size, in __test_map_lookup_and_delete_batch()
216 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
225 total * value_size, in __test_map_lookup_and_delete_batch()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_dpipe.c137 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
138 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
143 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
144 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
421 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
422 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
432 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
435 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
442 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
447 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/persistent-data/
H A Ddm-btree-internal.h35 __le32 value_size; member
120 uint32_t value_size = le32_to_cpu(n->header.value_size); in value_ptr() local
121 return value_base(n) + (value_size * index); in value_ptr()
H A Ddm-btree-remove.c59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() local
70 (nr_entries - shift) * value_size); in node_shift()
78 nr_entries * value_size); in node_shift()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() local
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
96 shift * value_size); in node_copy()
104 shift * value_size); in node_copy()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at() local
125 nr_to_copy * value_size); in delete_at()
H A Ddm-btree.c85 static int insert_at(size_t value_size, struct btree_node *node, unsigned index, in insert_at() argument
104 array_insert(value_base(node), value_size, nr_entries, index, value); in insert_at()
116 static uint32_t calc_max_entries(size_t value_size, size_t block_size) in calc_max_entries() argument
119 size_t elt_size = sizeof(uint64_t) + value_size; /* key + value */ in calc_max_entries()
148 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
348 uint64_t *result_key, void *v, size_t value_size) in btree_lookup_raw() argument
372 memcpy(v, value_ptr(ro_node(s), i), value_size); in btree_lookup_raw()
562 rn->header.value_size = ln->header.value_size; in btree_split_sibling()
649 ln->header.value_size = pn->header.value_size; in btree_split_beneath()
666 rn->header.value_size = pn->header.value_size; in btree_split_beneath()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(struct bpf_perf_event_value));
25 __uint(value_size, sizeof(struct bpf_perf_event_value));
32 __uint(value_size, sizeof(u64));
/OK3568_Linux_fs/kernel/scripts/dtc/
H A Dfdtput.c60 int value_size = 0; /* size of holding area */ in encode_value() local
83 if (upto + len > value_size) { in encode_value()
84 value_size = (upto + len) + 500; in encode_value()
85 value = realloc(value, value_size); in encode_value()
88 "%d bytes\n", value_size); in encode_value()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dsockmap_verdict_prog.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(int));
25 __uint(value_size, sizeof(int));
H A Dtest_btf_map_in_map.c25 __uint(value_size, sizeof(int));
65 __uint(value_size, sizeof(int));
115 __uint(value_size, sizeof(int));
H A Dsample_map_ret0.c8 .value_size = sizeof(long),
15 .value_size = sizeof(long),
H A Dmap_ptr_kern.c36 __u32 value_size; member
43 __u32 value_size, __u32 max_entries) in check_bpf_map_fields() argument
47 VERIFY(map->value_size == value_size); in check_bpf_map_fields()
60 VERIFY(indirect->value_size == direct->value_size); in check_bpf_map_ptr()
69 __u32 key_size, __u32 value_size, __u32 max_entries) in check() argument
72 VERIFY(check_bpf_map_fields(indirect, key_size, value_size, in check()
H A Dtest_pe_preserve_elems.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(int));
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/gp/include/
H A Dxml_timearithm_api.h679 size_t value_size) in Invoke_StoreS32() argument
684 if (value_size > 4) in Invoke_StoreS32()
687 for (n = 0; n < value_size; n++) { in Invoke_StoreS32()
895 size_t value_size) in Macro_StoreBigInt() argument
901 .size = value_size, in Macro_StoreBigInt()
912 memcpy(shm_value.buffer, value, value_size); in Macro_StoreBigInt()
973 size_t value_size) in Invoke_BigIntConvertFromOctetString() argument
983 if (!ADBG_EXPECT_COMPARE_UNSIGNED(c, value_size, <=, shm.size)) in Invoke_BigIntConvertFromOctetString()
989 memcpy(shm.buffer, value, value_size); in Invoke_BigIntConvertFromOctetString()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_kms.c229 uint32_t *value, value_tmp, *value_ptr, value_size; in radeon_info_ioctl() local
236 value_size = sizeof(uint32_t); in radeon_info_ioctl()
434 value_size = sizeof(uint64_t); in radeon_info_ioctl()
487 value_size = sizeof(uint32_t)*32; in radeon_info_ioctl()
490 value_size = sizeof(uint32_t)*32; in radeon_info_ioctl()
499 value_size = sizeof(uint32_t)*16; in radeon_info_ioctl()
533 value_size = sizeof(uint64_t); in radeon_info_ioctl()
538 value_size = sizeof(uint64_t); in radeon_info_ioctl()
543 value_size = sizeof(uint64_t); in radeon_info_ioctl()
601 if (copy_to_user(value_ptr, (char*)value, value_size)) { in radeon_info_ioctl()

1234567