Home
last modified time | relevance | path

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

1234567

/linux/kernel/bpf/
H A Dqueue_stack_maps.c50 attr->value_size == 0 || in queue_stack_map_alloc_check()
55 if (attr->value_size > KMALLOC_MAX_SIZE) in queue_stack_map_alloc_check()
71 queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
109 memset(value, 0, qs->map.value_size); in __queue_map_get()
114 ptr = &qs->elements[qs->tail * qs->map.value_size]; in __queue_map_get()
115 memcpy(value, ptr, qs->map.value_size); in __queue_map_get()
144 memset(value, 0, qs->map.value_size); in __stack_map_get()
153 ptr = &qs->elements[index * qs->map.value_size]; in __stack_map_get()
154 memcpy(value, ptr, qs->map.value_size); in __stack_map_get()
223 dst = &qs->elements[qs->head * qs->map.value_size]; in queue_stack_map_push_elem()
[all …]
H A Dbloom_filter.c24 u32 value_size, u32 index) in hash() argument
28 if (likely(value_size % 4 == 0)) in hash()
29 h = jhash2(value, value_size / 4, bloom->hash_seed + index); in hash()
31 h = jhash(value, value_size, bloom->hash_seed + index); in hash()
43 h = hash(bloom, value, map->value_size, i); in bloom_map_peek_elem()
61 h = hash(bloom, value, map->value_size, i); in bloom_map_push_elem()
86 if (attr->value_size > KMALLOC_MAX_SIZE) in bloom_map_alloc_check()
101 if (attr->key_size != 0 || attr->value_size == 0 || in bloom_map_alloc()
H A Dmap_iter.c104 u32 key_acc_size, value_acc_size, key_size, value_size; in bpf_iter_attach_map() local
129 value_size = map->value_size; in bpf_iter_attach_map()
131 value_size = round_up(map->value_size, 8) * num_possible_cpus(); in bpf_iter_attach_map()
133 if (key_acc_size > key_size || value_acc_size > value_size) { in bpf_iter_attach_map()
H A Dstackmap.c48 (u64)smap->map.value_size; in prealloc_elems_and_freelist()
72 u32 value_size = attr->value_size; in stack_map_alloc() local
82 value_size < 8 || value_size % 8) in stack_map_alloc()
87 if (value_size % sizeof(struct bpf_stack_build_id) || in stack_map_alloc()
88 value_size / sizeof(struct bpf_stack_build_id) in stack_map_alloc()
91 } else if (value_size / 8 > sysctl_perf_event_max_stack) in stack_map_alloc()
286 u32 max_depth = map->value_size / stack_map_data_size(map); in BPF_CALL_3()
593 memset(value + trace_len, 0, map->value_size - trace_len); in bpf_stackmap_copy()
669 u64 value_size = map->value_size; in stack_map_mem_usage() local
675 usage += enties * (sizeof(struct stack_map_bucket) + value_size); in stack_map_mem_usage()
H A Dmap_in_map.c46 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
103 meta0->value_size == meta1->value_size && in bpf_map_meta_equal()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c69 __u32 value_size; member
137 .value_size = 180,
192 .value_size = 68,
217 .value_size = 16,
258 .value_size = 48,
303 .value_size = 48,
325 .value_size = 4,
347 .value_size = 4,
369 .value_size = 4,
394 .value_size = 4,
[all …]
/linux/tools/bpf/bpftool/
H A Dmap.c68 return malloc(info->value_size); in alloc_value()
173 info->value_size); in print_entry_json()
264 if (info->value_size) { in print_entry_plain()
286 if (info->value_size) { in print_entry_plain()
291 info->value_size, " "); in print_entry_plain()
370 if (value_size) in parse_elem()
382 if (value_size != 4) { in parse_elem()
400 if (value_size != 4) { in parse_elem()
443 value_size, NULL, value_fd); in parse_elem()
858 info->value_size != 8) { in map_dump()
[all …]
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_bloom_filter_map.c41 __u8 value_size; member
45 .value_size = 8,
93 args.value_size = ret; in parse_arg()
136 val_size = args.value_size; in map_prepare_thread()
243 if (args.value_size < 8) { in check_args()
244 __u64 nr_unique_entries = 1ULL << (args.value_size * 8); in check_args()
279 bpf_map__set_value_size(skel->maps.array_map, args.value_size); in setup_skeleton()
281 bpf_map__set_value_size(skel->maps.bloom_map, args.value_size); in setup_skeleton()
283 bpf_map__set_value_size(skel->maps.hashmap, args.value_size); in setup_skeleton()
286 bpf_map__set_key_size(skel->maps.hashmap, args.value_size); in setup_skeleton()
[all …]
H A Dbench_htab_mem.c40 u32 value_size; member
44 .value_size = 8,
68 args.value_size = strtoul(arg, NULL, 10); in htab_mem_parse_arg()
69 if (args.value_size > 4096) { in htab_mem_parse_arg()
70 fprintf(stderr, "too big value size %u\n", args.value_size); in htab_mem_parse_arg()
181 bpf_map__set_value_size(map, args.value_size); in htab_mem_setup()
/linux/tools/testing/selftests/bpf/map_tests/
H A Darray_map_batch_ops.c76 int err, step, value_size; in __test_map_lookup_and_update_batch() local
88 value_size = sizeof(__s64); in __test_map_lookup_and_update_batch()
90 value_size *= nr_cpus; in __test_map_lookup_and_update_batch()
93 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
104 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_update_batch()
115 values + total * value_size, in __test_map_lookup_and_update_batch()
H A Dmap_in_map_batch_ops.c128 __u32 value_size = sizeof(__u32); in fetch_and_validate() local
131 fetched_keys = calloc(max_entries, value_size); in fetch_and_validate()
132 fetched_values = calloc(max_entries, value_size); in fetch_and_validate()
192 __u32 value_size = sizeof(__u32); in _map_in_map_batch_ops() local
197 outer_map_keys = calloc(max_entries, value_size); in _map_in_map_batch_ops()
198 inner_map_fds = calloc(max_entries, value_size); in _map_in_map_batch_ops()
H A Dhtab_map_batch_ops.c84 int err, step, value_size; in __test_map_lookup_and_delete_batch() local
97 value_size = is_pcpu ? sizeof(value) : sizeof(int); in __test_map_lookup_and_delete_batch()
125 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
144 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
156 total * value_size, in __test_map_lookup_and_delete_batch()
210 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
219 total * value_size, in __test_map_lookup_and_delete_batch()
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c285 int key_size, value_size, max_entries; in probe_map_create() local
290 value_size = sizeof(__u32); in probe_map_create()
295 value_size = sizeof(__u64); in probe_map_create()
299 value_size = sizeof(__u64); in probe_map_create()
305 value_size = sizeof(__u64); in probe_map_create()
318 value_size = 8; in probe_map_create()
328 value_size = 0; in probe_map_create()
343 value_size = 0; in probe_map_create()
388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
/linux/tools/perf/util/bpf_skel/
H A Dfunc_latency.bpf.c13 __uint(value_size, sizeof(__u64));
20 __uint(value_size, sizeof(__u8));
27 __uint(value_size, sizeof(__u8));
34 __uint(value_size, sizeof(__u64));
H A Dlock_contention.bpf.c26 __uint(value_size, sizeof(__u64));
42 __uint(value_size, sizeof(struct tstamp_data));
50 __uint(value_size, sizeof(struct contention_data));
57 __uint(value_size, sizeof(struct contention_task_data));
64 __uint(value_size, sizeof(__u32));
71 __uint(value_size, sizeof(__u8));
78 __uint(value_size, sizeof(__u8));
85 __uint(value_size, sizeof(__u8));
92 __uint(value_size, sizeof(__u8));
99 __uint(value_size, sizeof(__u8));
H A Dbperf_leader.bpf.c10 __uint(value_size, sizeof(int));
17 __uint(value_size, sizeof(struct bpf_perf_event_value));
24 __uint(value_size, sizeof(struct bpf_perf_event_value));
H A Dbperf_follower.bpf.c11 __uint(value_size, sizeof(struct bpf_perf_event_value));
18 __uint(value_size, sizeof(struct bpf_perf_event_value));
25 __uint(value_size, sizeof(__u32));
H A Dbpf_prog_profiler.bpf.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(struct bpf_perf_event_value));
26 __uint(value_size, sizeof(struct bpf_perf_event_value));
H A Doff_cpu.bpf.c38 __uint(value_size, MAX_STACKS * sizeof(__u64));
52 __uint(value_size, sizeof(__u64));
59 __uint(value_size, sizeof(__u8));
66 __uint(value_size, sizeof(__u8));
73 __uint(value_size, sizeof(__u8));
/linux/drivers/extcon/
H A Dextcon-rtk-type-c.c899 int value_size = 4; in __updated_type_c_parameter_by_efuse() local
900 int value_mask = (BIT(value_size) - 1); in __updated_type_c_parameter_by_efuse()
983 int value_size = 0; in __updated_type_c_parameter_by_efuse_v2() local
984 int value_mask = (BIT(value_size) - 1); in __updated_type_c_parameter_by_efuse_v2()
988 value_size = 5; in __updated_type_c_parameter_by_efuse_v2()
989 value_mask = (BIT(value_size) - 1); in __updated_type_c_parameter_by_efuse_v2()
995 value_size = 4; in __updated_type_c_parameter_by_efuse_v2()
996 value_mask = (BIT(value_size) - 1); in __updated_type_c_parameter_by_efuse_v2()
997 cc1_0p2v = (buf[4] >> value_size * 0) & value_mask; in __updated_type_c_parameter_by_efuse_v2()
999 cc1_0p8v = (buf[5] >> value_size * 0) & value_mask; in __updated_type_c_parameter_by_efuse_v2()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_dpipe.c137 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
143 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
421 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
432 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
447 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
474 memcpy(value->value, dip, value->value_size); in __mlxsw_sp_dpipe_table_host_entry_fill()
988 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
997 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1006 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_adj_entry_prepare()
1015 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_adj_entry_prepare()
[all …]
/linux/drivers/md/persistent-data/
H A Ddm-btree-internal.h36 __le32 value_size; member
121 uint32_t value_size = le32_to_cpu(n->header.value_size); in value_ptr() local
123 return value_base(n) + (value_size * index); in value_ptr()
H A Ddm-btree-remove.c63 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() local
74 (nr_entries - shift) * value_size); in node_shift()
82 nr_entries * value_size); in node_shift()
89 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() local
91 if (value_size != le32_to_cpu(right->header.value_size)) { in node_copy()
109 shift * value_size); in node_copy()
121 shift * value_size); in node_copy()
133 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at() local
144 nr_to_copy * value_size); in delete_at()
/linux/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c17 __uint(value_size, sizeof(int));
24 __uint(value_size, sizeof(struct bpf_perf_event_value___local));
31 __uint(value_size, sizeof(struct bpf_perf_event_value___local));
38 __uint(value_size, sizeof(u64));
/linux/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()

1234567