Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 6 of 6) sorted by relevance

/kernel/bpf/
Dlocal_storage.c358 const struct btf_type *key_type, in cgroup_storage_check_btf() argument
376 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf()
377 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf()
383 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf()
385 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
394 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
403 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in cgroup_storage_check_btf()
406 int_data = *(u32 *)(key_type + 1); in cgroup_storage_check_btf()
Dbloom_filter.c189 const struct btf_type *key_type, in bloom_map_check_btf() argument
193 return btf_type_is_void(key_type) ? 0 : -EINVAL; in bloom_map_check_btf()
Dbpf_local_storage.c653 const struct btf_type *key_type, in bpf_local_storage_map_check_btf() argument
658 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in bpf_local_storage_map_check_btf()
661 int_data = *(u32 *)(key_type + 1); in bpf_local_storage_map_check_btf()
Dlpm_trie.c718 const struct btf_type *key_type, in trie_check_btf() argument
722 return BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT ? in trie_check_btf()
Darraymap.c499 const struct btf_type *key_type, in array_map_check_btf() argument
505 if (btf_type_is_void(key_type)) { in array_map_check_btf()
516 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in array_map_check_btf()
519 int_data = *(u32 *)(key_type + 1); in array_map_check_btf()
Dsyscall.c905 const struct btf_type *key_type, in map_check_no_btf() argument
992 const struct btf_type *key_type, *value_type; in map_check_btf() local
998 key_type = btf_type_id_size(btf, &btf_key_id, &key_size); in map_check_btf()
999 if (!key_type || key_size != map->key_size) in map_check_btf()
1002 key_type = btf_type_by_id(btf, 0); in map_check_btf()
1062 ret = map->ops->map_check_btf(map, btf, key_type, value_type); in map_check_btf()