/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 30 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 34 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map() 98 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument 104 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity0() 110 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0() 112 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0() 186 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument 198 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity1() 207 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() 262 static void test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity2() argument [all …]
|
D | test_btf.c | 123 enum bpf_map_type map_type; member 185 .map_type = BPF_MAP_TYPE_ARRAY, 240 .map_type = BPF_MAP_TYPE_ARRAY, 266 .map_type = BPF_MAP_TYPE_ARRAY, 298 .map_type = BPF_MAP_TYPE_ARRAY, 332 .map_type = BPF_MAP_TYPE_ARRAY, 366 .map_type = BPF_MAP_TYPE_ARRAY, 408 .map_type = BPF_MAP_TYPE_ARRAY, 444 .map_type = BPF_MAP_TYPE_ARRAY, 473 .map_type = BPF_MAP_TYPE_ARRAY, [all …]
|
D | test_select_reuseport.c | 64 attr.map_type = BPF_MAP_TYPE_REUSEPORT_SOCKARRAY; in create_maps() 75 attr.map_type = BPF_MAP_TYPE_ARRAY_OF_MAPS; in create_maps()
|
/Linux-v4.19/samples/bpf/ |
D | test_lru_dist.c | 211 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 215 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map() 313 static void test_parallel_lru_dist(int map_type, int map_flags, in test_parallel_lru_dist() argument 319 printf("%s (map_type:%d map_flags:0x%X):\n", __func__, map_type, in test_parallel_lru_dist() 323 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist() 326 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist() 338 static void test_lru_loss0(int map_type, int map_flags) in test_lru_loss0() argument 346 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_loss0() 352 map_fd = create_map(map_type, map_flags, 900 * nr_cpus); in test_lru_loss0() 354 map_fd = create_map(map_type, map_flags, 900); in test_lru_loss0() [all …]
|
/Linux-v4.19/kernel/bpf/ |
D | map_in_map.c | 26 if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || in bpf_map_meta_alloc() 27 inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE) { in bpf_map_meta_alloc() 44 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc() 64 return meta0->map_type == meta1->map_type && in bpf_map_meta_equal()
|
D | syscall.c | 36 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY || \ 37 (map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ 38 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 39 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 40 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 112 u32 type = attr->map_type; in find_and_alloc_map() 134 map->map_type = type; in find_and_alloc_map() 164 map->map_type = attr->map_type; in bpf_map_init_from_attr() 347 if (map->map_type == BPF_MAP_TYPE_PROG_ARRAY) { in bpf_map_show_fdinfo() 361 map->map_type, in bpf_map_show_fdinfo() [all …]
|
D | hashtab.c | 72 return htab->map.map_type == BPF_MAP_TYPE_LRU_HASH || in htab_is_lru() 73 htab->map.map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in htab_is_lru() 78 return htab->map.map_type == BPF_MAP_TYPE_PERCPU_HASH || in htab_is_percpu() 79 htab->map.map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in htab_is_percpu() 236 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || in htab_map_alloc_check() 237 attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); in htab_map_alloc_check() 238 bool lru = (attr->map_type == BPF_MAP_TYPE_LRU_HASH || in htab_map_alloc_check() 239 attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); in htab_map_alloc_check() 300 bool percpu = (attr->map_type == BPF_MAP_TYPE_PERCPU_HASH || in htab_map_alloc() 301 attr->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH); in htab_map_alloc() [all …]
|
D | arraymap.c | 59 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc_check() 80 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc() 269 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in array_map_update_elem() 335 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in array_map_free()
|
D | verifier.c | 2111 switch (map->map_type) { in check_map_func_compatibility() 2181 if (map->map_type != BPF_MAP_TYPE_PROG_ARRAY) in check_map_func_compatibility() 2191 if (map->map_type != BPF_MAP_TYPE_PERF_EVENT_ARRAY) in check_map_func_compatibility() 2195 if (map->map_type != BPF_MAP_TYPE_STACK_TRACE) in check_map_func_compatibility() 2200 if (map->map_type != BPF_MAP_TYPE_CGROUP_ARRAY) in check_map_func_compatibility() 2204 if (map->map_type != BPF_MAP_TYPE_DEVMAP && in check_map_func_compatibility() 2205 map->map_type != BPF_MAP_TYPE_CPUMAP && in check_map_func_compatibility() 2206 map->map_type != BPF_MAP_TYPE_XSKMAP) in check_map_func_compatibility() 2212 if (map->map_type != BPF_MAP_TYPE_SOCKMAP) in check_map_func_compatibility() 2218 if (map->map_type != BPF_MAP_TYPE_SOCKHASH) in check_map_func_compatibility() [all …]
|
D | offload.c | 339 if (attr->map_type != BPF_MAP_TYPE_ARRAY && in bpf_map_offload_map_alloc() 340 attr->map_type != BPF_MAP_TYPE_HASH) in bpf_map_offload_map_alloc()
|
/Linux-v4.19/tools/lib/bpf/ |
D | bpf.h | 32 enum bpf_map_type map_type; member 46 int bpf_create_map_node(enum bpf_map_type map_type, const char *name, 49 int bpf_create_map_name(enum bpf_map_type map_type, const char *name, 52 int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size, 54 int bpf_create_map_in_map_node(enum bpf_map_type map_type, const char *name, 57 int bpf_create_map_in_map(enum bpf_map_type map_type, const char *name,
|
D | bpf.c | 83 attr.map_type = create_attr->map_type; in bpf_create_map_xattr() 100 int bpf_create_map_node(enum bpf_map_type map_type, const char *name, in bpf_create_map_node() argument 107 map_attr.map_type = map_type; in bpf_create_map_node() 120 int bpf_create_map(enum bpf_map_type map_type, int key_size, in bpf_create_map() argument 125 map_attr.map_type = map_type; in bpf_create_map() 134 int bpf_create_map_name(enum bpf_map_type map_type, const char *name, in bpf_create_map_name() argument 141 map_attr.map_type = map_type; in bpf_create_map_name() 150 int bpf_create_map_in_map_node(enum bpf_map_type map_type, const char *name, in bpf_create_map_in_map_node() argument 159 attr.map_type = map_type; in bpf_create_map_in_map_node() 175 int bpf_create_map_in_map(enum bpf_map_type map_type, const char *name, in bpf_create_map_in_map() argument [all …]
|
/Linux-v4.19/fs/cifs/ |
D | cifs_unicode.c | 32 int map_type; in cifs_remap() local 35 map_type = SFM_MAP_UNI_RSVD; in cifs_remap() 37 map_type = SFU_MAP_UNI_RSVD; in cifs_remap() 39 map_type = NO_MAP_UNI_RSVD; in cifs_remap() 41 return map_type; in cifs_remap() 193 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument 228 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16() 234 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
|
D | smb2misc.c | 450 int map_type; in cifs_convert_path_to_utf16() local 453 map_type = SFM_MAP_UNI_RSVD; in cifs_convert_path_to_utf16() 455 map_type = SFU_MAP_UNI_RSVD; in cifs_convert_path_to_utf16() 457 map_type = NO_MAP_UNI_RSVD; in cifs_convert_path_to_utf16() 472 cifs_sb->local_nls, map_type); in cifs_convert_path_to_utf16()
|
D | readdir.c | 725 int map_type; in cifs_filldir() local 727 map_type = cifs_remap(cifs_sb); in cifs_filldir() 733 (size_t)max_len), nlt, map_type); in cifs_filldir()
|
D | cifs_unicode.h | 109 const struct nls_table *cp, int map_type);
|
/Linux-v4.19/drivers/pinctrl/ |
D | pinconf.c | 396 enum pinctrl_map_type map_type; member 427 if (map->type != dbg->map_type) in pinconf_dbg_config_print() 518 dbg->map_type = PIN_MAP_TYPE_CONFIGS_PIN; in pinconf_dbg_config_write() 520 dbg->map_type = PIN_MAP_TYPE_CONFIGS_GROUP; in pinconf_dbg_config_write() 562 if (map->type != dbg->map_type) in pinconf_dbg_config_write()
|
/Linux-v4.19/drivers/media/tuners/ |
D | tda18271-priv.h | 191 enum tda18271_map_type map_type, 194 enum tda18271_map_type map_type,
|
/Linux-v4.19/drivers/net/netdevsim/ |
D | bpf.c | 440 if (offmap->map.map_type == BPF_MAP_TYPE_ARRAY) in nsim_map_delete_elem() 470 if (WARN_ON(offmap->map.map_type != BPF_MAP_TYPE_ARRAY && in nsim_bpf_map_alloc() 471 offmap->map.map_type != BPF_MAP_TYPE_HASH)) in nsim_bpf_map_alloc() 487 if (offmap->map.map_type == BPF_MAP_TYPE_ARRAY) { in nsim_bpf_map_alloc()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/ |
D | fw.h | 131 __be32 map_type; member
|
D | cmsg.c | 288 req->map_type = cpu_to_be32(map->map_type); in nfp_bpf_ctrl_alloc_map()
|
D | offload.c | 340 if (offmap->map.map_type == BPF_MAP_TYPE_ARRAY) in nfp_bpf_map_delete_elem() 368 if (!(bpf->maps.types & 1 << offmap->map.map_type)) { in nfp_bpf_map_alloc()
|
/Linux-v4.19/arch/x86/kernel/apic/ |
D | x2apic_uv_x.c | 751 enum map_type {map_wb, map_uc}; enum 753 …p_high(char *id, unsigned long base, int pshift, int bshift, int max_pnode, enum map_type map_type) in map_high() argument 764 if (map_type == map_uc) in map_high()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd_gpuvm.c | 714 struct amdgpu_vm *vm, enum bo_vm_match map_type, in reserve_bo_and_cond_vms() argument 732 (entry->is_mapped != map_type in reserve_bo_and_cond_vms() 733 && map_type != BO_VM_ALL)) in reserve_bo_and_cond_vms() 756 (entry->is_mapped != map_type in reserve_bo_and_cond_vms() 757 && map_type != BO_VM_ALL)) in reserve_bo_and_cond_vms()
|
/Linux-v4.19/drivers/edac/ |
D | e752x_edac.c | 218 int map_type; member 1060 if (!pvt->map_type) in remap_csrow_index() 1330 pvt->map_type = ((stat8 & 0x0f) > ((stat8 >> 4) & 0x0f)); in e752x_probe1()
|