• Home
  • Raw
  • Download

Lines Matching refs:key_size

369 	map->key_size = attr->key_size;  in bpf_map_init_from_attr()
694 size = round_up(map->key_size + bpf_map_value_size(map), 8); in bpf_map_memory_footprint()
722 map->key_size, in bpf_map_show_fdinfo()
993 u32 key_size, value_size; 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()
1285 static void *__bpf_copy_key(void __user *ukey, u64 key_size) in __bpf_copy_key() argument
1287 if (key_size) in __bpf_copy_key()
1288 return vmemdup_user(ukey, key_size); in __bpf_copy_key()
1296 static void *___bpf_copy_key(bpfptr_t ukey, u64 key_size) in ___bpf_copy_key() argument
1298 if (key_size) in ___bpf_copy_key()
1299 return kvmemdup_bpfptr(ukey, key_size); in ___bpf_copy_key()
1342 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_elem()
1415 key = ___bpf_copy_key(ukey, map->key_size); in map_update_elem()
1463 key = ___bpf_copy_key(ukey, map->key_size); in map_delete_elem()
1519 key = __bpf_copy_key(ukey, map->key_size); in map_get_next_key()
1529 next_key = kvmalloc(map->key_size, GFP_USER); in map_get_next_key()
1546 if (copy_to_user(unext_key, next_key, map->key_size) != 0) in map_get_next_key()
1584 key = kvmalloc(map->key_size, GFP_USER | __GFP_NOWARN); in generic_map_delete_batch()
1590 if (copy_from_user(key, keys + cp * map->key_size, in generic_map_delete_batch()
1591 map->key_size)) in generic_map_delete_batch()
1646 key = kvmalloc(map->key_size, GFP_USER | __GFP_NOWARN); in generic_map_update_batch()
1659 if (copy_from_user(key, keys + cp * map->key_size, in generic_map_update_batch()
1660 map->key_size) || in generic_map_update_batch()
1711 buf_prevkey = kvmalloc(map->key_size, GFP_USER | __GFP_NOWARN); in generic_map_lookup_batch()
1715 buf = kvmalloc(map->key_size + value_size, GFP_USER | __GFP_NOWARN); in generic_map_lookup_batch()
1723 if (ubatch && copy_from_user(buf_prevkey, ubatch, map->key_size)) in generic_map_lookup_batch()
1726 value = key + map->key_size; in generic_map_lookup_batch()
1751 if (copy_to_user(keys + cp * map->key_size, key, in generic_map_lookup_batch()
1752 map->key_size)) { in generic_map_lookup_batch()
1774 (cp && copy_to_user(uobatch, prev_key, map->key_size)))) in generic_map_lookup_batch()
1826 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_and_delete_elem()
4220 info.key_size = map->key_size; in bpf_map_get_info_by_fd()