Home
last modified time | relevance | path

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

12345

/Linux-v4.19/samples/bpf/
Dmap_perf_test_kern.c19 .value_size = sizeof(long),
26 .value_size = sizeof(long),
33 .value_size = sizeof(long),
41 .value_size = sizeof(long),
56 .value_size = sizeof(long),
63 .value_size = sizeof(long),
71 .value_size = sizeof(long),
79 .value_size = sizeof(long),
87 .value_size = sizeof(long),
94 .value_size = sizeof(long),
Dxdpsock_kern.c11 .value_size = sizeof(int),
18 .value_size = sizeof(int),
25 .value_size = sizeof(unsigned int),
Dxdp_router_ipv4_kern.c48 .value_size = sizeof(struct trie_value),
57 .value_size = sizeof(u64),
65 .value_size = sizeof(__be64),
73 .value_size = sizeof(struct direct_map),
80 .value_size = sizeof(int),
Dxdp_monitor_kern.c12 .value_size = sizeof(u64),
21 .value_size = sizeof(u64),
135 .value_size = sizeof(struct datarec),
142 .value_size = sizeof(struct datarec),
216 .value_size = sizeof(struct datarec),
Dtracex6_kern.c9 .value_size = sizeof(u32),
15 .value_size = sizeof(u64),
21 .value_size = sizeof(struct bpf_perf_event_value),
Dtest_map_in_map_kern.c21 .value_size = sizeof(int),
29 .value_size = sizeof(int),
37 .value_size = sizeof(int),
45 .value_size = sizeof(int),
Dspintest_kern.c17 .value_size = sizeof(long),
23 .value_size = sizeof(long),
30 .value_size = PERF_MAX_STACK_DEPTH * sizeof(u64),
Doffwaketime_kern.c28 .value_size = sizeof(u64),
35 .value_size = sizeof(u64),
47 .value_size = sizeof(struct wokeby_t),
54 .value_size = PERF_MAX_STACK_DEPTH * sizeof(u64),
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_btf.c125 __u32 value_size; member
188 .value_size = 180,
243 .value_size = 68,
269 .value_size = 16,
301 .value_size = 1,
335 .value_size = 1,
369 .value_size = 1,
411 .value_size = 1,
447 .value_size = sizeof(void *),
476 .value_size = sizeof(void *),
[all …]
Dtest_stacktrace_map.c14 .value_size = sizeof(__u32),
21 .value_size = sizeof(__u32),
28 .value_size = sizeof(__u64) * PERF_MAX_STACK_DEPTH,
35 .value_size = sizeof(__u64) * PERF_MAX_STACK_DEPTH,
Dsockmap_verdict_prog.c18 .value_size = sizeof(int),
25 .value_size = sizeof(int),
32 .value_size = sizeof(int),
39 .value_size = sizeof(int),
Dtest_stacktrace_build_id.c14 .value_size = sizeof(__u32),
21 .value_size = sizeof(__u32),
28 .value_size = sizeof(struct bpf_stack_build_id)
37 .value_size = sizeof(struct bpf_stack_build_id)
Dtest_sockmap_kern.h41 .value_size = sizeof(int),
48 .value_size = sizeof(int),
55 .value_size = sizeof(int),
62 .value_size = sizeof(int),
69 .value_size = sizeof(int),
76 .value_size = sizeof(int),
83 .value_size = sizeof(int),
90 .value_size = sizeof(int),
Dtest_select_reuseport_kern.c27 .value_size = sizeof(__u32),
34 .value_size = sizeof(__u32),
41 .value_size = sizeof(int),
48 .value_size = sizeof(__u32),
55 .value_size = sizeof(struct data_check),
Dtest_get_stack_rawtp.c21 .value_size = sizeof(__u32),
28 .value_size = sizeof(struct stack_trace_t),
53 .value_size = MAX_STACK_RAWTP * sizeof(__u64) * 2,
/Linux-v4.19/tools/bpf/bpftool/
Dmap.c97 return malloc(round_up(info->value_size, 8) * in alloc_value()
100 return malloc(info->value_size); in alloc_value()
268 print_hex_data_json(value, info->value_size); in print_entry_json()
283 step = round_up(info->value_size, 8); in print_entry_json()
297 info->value_size); in print_entry_json()
313 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain()
314 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain()
323 fprint_hex(stdout, value, info->value_size, " "); in print_entry_plain()
330 step = round_up(info->value_size, 8); in print_entry_plain()
337 i, info->value_size > 16 ? '\n' : ' '); in print_entry_plain()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/lib/
Dchash.c41 unsigned int value_size, gfp_t gfp_mask) in chash_table_alloc() argument
49 table->data = kcalloc(__CHASH_DATA_SIZE(bits, key_size, value_size), in chash_table_alloc()
55 bits, key_size, value_size); in chash_table_alloc()
109 table->key_size, table->value_size); in __chash_table_dump_stats()
227 BUG_ON(src.table->value_size != dst.table->value_size); in chash_iter_relocate()
234 if (dst.table->value_size) in chash_iter_relocate()
236 dst.table->value_size); in chash_iter_relocate()
404 if (value && table->value_size) in __chash_table_copy_in()
406 table->value_size); in __chash_table_copy_in()
422 if (value && table->value_size) in __chash_table_copy_in()
[all …]
/Linux-v4.19/kernel/bpf/
Dmap_in_map.c46 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
66 meta0->value_size == meta1->value_size && in bpf_map_meta_equal()
Dstackmap.c66 u32 elem_size = sizeof(struct stack_map_bucket) + smap->map.value_size; in prealloc_elems_and_freelist()
90 u32 value_size = attr->value_size; in stack_map_alloc() local
103 value_size < 8 || value_size % 8) in stack_map_alloc()
108 if (value_size % sizeof(struct bpf_stack_build_id) || in stack_map_alloc()
109 value_size / sizeof(struct bpf_stack_build_id) in stack_map_alloc()
112 } else if (value_size / 8 > sysctl_perf_event_max_stack) in stack_map_alloc()
127 cost += n_buckets * (value_size + sizeof(struct stack_map_bucket)); in stack_map_alloc()
132 smap->map.value_size = value_size; in stack_map_alloc()
344 u32 max_depth = map->value_size / stack_map_data_size(map); in BPF_CALL_3()
527 memset(value + trace_len, 0, map->value_size - trace_len); in bpf_stackmap_copy()
/Linux-v4.19/drivers/gpu/drm/amd/include/linux/
Dchash.h43 unsigned int value_size; member
64 #define __CHASH_DATA_SIZE(bits, key_size, value_size) \ argument
67 __CHASH_ARRAY_SIZE(bits, value_size))
69 #define STRUCT_CHASH_TABLE(bits, key_size, value_size) \ argument
73 [__CHASH_DATA_SIZE(bits, key_size, value_size)];\
130 prefix.value_size = (val_sz), \
170 unsigned int value_size, gfp_t gfp_mask);
363 ((unsigned long)iter.slot * iter.table->value_size); in chash_iter_value()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c136 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
137 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
142 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
143 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
419 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
420 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
430 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
433 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
440 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
445 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
[all …]
/Linux-v4.19/drivers/md/persistent-data/
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()
/Linux-v4.19/tools/lib/bpf/
Dbpf.h35 __u32 value_size; member
47 int key_size, int value_size, int max_entries,
50 int key_size, int value_size, int max_entries,
52 int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size,
Dbpf.c85 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
101 int key_size, int value_size, int max_entries, in bpf_create_map_node() argument
110 map_attr.value_size = value_size; in bpf_create_map_node()
121 int value_size, int max_entries, __u32 map_flags) in bpf_create_map() argument
128 map_attr.value_size = value_size; in bpf_create_map()
135 int key_size, int value_size, int max_entries, in bpf_create_map_name() argument
144 map_attr.value_size = value_size; in bpf_create_map_name()
161 attr.value_size = 4; in bpf_create_map_in_map_node()
/Linux-v4.19/scripts/dtc/
Dfdtput.c74 int value_size = 0; /* size of holding area */ in encode_value() local
97 if (upto + len > value_size) { in encode_value()
98 value_size = (upto + len) + 500; in encode_value()
99 value = realloc(value, value_size); in encode_value()
102 "%d bytes\n", value_size); in encode_value()

12345