/linux/fs/btrfs/tests/ |
H A D | raid-stripe-tree-tests.c | 43 u64 map_type = RST_TEST_RAID1_TYPE; in test_punch_hole_3extents() local 64 bioc->map_type = map_type; in test_punch_hole_3extents() 141 ret = btrfs_get_raid_extent_offset(fs_info, logical1, &len1, map_type, in test_punch_hole_3extents() 164 ret = btrfs_get_raid_extent_offset(fs_info, logical2, &len2, map_type, in test_punch_hole_3extents() 175 ret = btrfs_get_raid_extent_offset(fs_info, logical3, &len3, map_type, in test_punch_hole_3extents() 221 u64 map_type = RST_TEST_RAID1_TYPE; in test_delete_two_extents() local 240 bioc->map_type = map_type; in test_delete_two_extents() 315 ret = btrfs_get_raid_extent_offset(fs_info, logical1, &len1, map_type, in test_delete_two_extents() 365 u64 map_type = RST_TEST_RAID1_TYPE; test_punch_hole() local 508 u64 map_type = RST_TEST_RAID1_TYPE; test_front_delete_prev_item() local 650 u64 map_type = RST_TEST_RAID1_TYPE; test_front_delete() local 759 u64 map_type = RST_TEST_RAID1_TYPE; test_tail_delete() local 881 u64 map_type = RST_TEST_RAID1_TYPE; test_create_update_delete() local 1002 u64 map_type = RST_TEST_RAID1_TYPE; test_simple_create_delete() local [all...] |
/linux/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 28 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 33 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), in create_map() 161 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument 167 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity0() 173 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0() 175 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0() 252 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument 264 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity1() 320 test_lru_sanity2(int map_type,int map_flags,unsigned int tgt_free) test_lru_sanity2() argument 426 test_lru_sanity3(int map_type,int map_flags,unsigned int tgt_free) test_lru_sanity3() argument 487 test_lru_sanity4(int map_type,int map_flags,unsigned int tgt_free) test_lru_sanity4() argument 564 test_lru_sanity5(int map_type,int map_flags) test_lru_sanity5() argument 611 test_lru_sanity6(int map_type,int map_flags,int tgt_free) test_lru_sanity6() argument 678 test_lru_sanity7(int map_type,int map_flags) test_lru_sanity7() argument 769 test_lru_sanity8(int map_type,int map_flags) test_lru_sanity8() argument [all...] |
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 67 enum bpf_map_type map_type; member 134 .map_type = BPF_MAP_TYPE_ARRAY, 189 .map_type = BPF_MAP_TYPE_ARRAY, 214 .map_type = BPF_MAP_TYPE_ARRAY, 255 .map_type = BPF_MAP_TYPE_ARRAY, 300 .map_type = BPF_MAP_TYPE_ARRAY, 322 .map_type = BPF_MAP_TYPE_ARRAY, 344 .map_type = BPF_MAP_TYPE_ARRAY, 366 .map_type = BPF_MAP_TYPE_ARRAY, 391 .map_type 5268 enum bpf_map_type map_type; global() member [all...] |
H A D | libbpf_probes.c | 68 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_probe_map_types() local 71 if (map_type == BPF_MAP_TYPE_UNSPEC) in test_libbpf_probe_map_types() 79 res = libbpf_probe_bpf_map_type(map_type, NULL); in test_libbpf_probe_map_types()
|
H A D | libbpf_str.c | 130 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_bpf_map_type_str() local 135 if (map_type == __MAX_BPF_MAP_TYPE) in test_libbpf_bpf_map_type_str() 139 map_type_str = libbpf_bpf_map_type_str(map_type); in test_libbpf_bpf_map_type_str() 147 * (map_type). For this enum value, libbpf_bpf_map_type_str() picks in test_libbpf_bpf_map_type_str()
|
H A D | map_init.c | 38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup() argument 48 err = bpf_map__set_type(skel->maps.hashmap1, map_type); in setup()
|
H A D | sockmap_ktls.c | 121 enum bpf_map_type map_type) in fmt_test_name() argument 406 static void run_tests(int family, enum bpf_map_type map_type) in run_tests() argument 410 map = bpf_map_create(map_type, NULL, sizeof(int), sizeof(int), 1, NULL); in run_tests() 414 if (test__start_subtest(fmt_test_name("update_fails_when_sock_has_ulp", family, map_type))) in run_tests()
|
/linux/samples/bpf/ |
H A D | test_lru_dist.c | 202 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 209 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), in create_map() 307 static void test_parallel_lru_dist(int map_type, int map_flags, in test_parallel_lru_dist() argument 313 printf("%s (map_type:%d map_flags:0x%X):\n", __func__, map_type, in test_parallel_lru_dist() 317 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist() 320 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist() 332 static void test_lru_loss0(int map_type, int map_flags) in test_lru_loss0() argument 340 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_loss0() 386 test_lru_loss1(int map_type,int map_flags) test_lru_loss1() argument 465 test_parallel_lru_loss(int map_type,int map_flags,int nr_tasks) test_parallel_lru_loss() argument [all...] |
/linux/include/trace/events/ |
H A D | xdp.h | 95 enum bpf_map_type map_type, 98 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index), 113 if (map_type == BPF_MAP_TYPE_DEVMAP || map_type == BPF_MAP_TYPE_DEVMAP_HASH) { 119 } else if (map_type == BPF_MAP_TYPE_UNSPEC && map_id == INT_MAX) { 145 enum bpf_map_type map_type, 147 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index) 154 enum bpf_map_type map_type, 156 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index) 165 #define _trace_xdp_redirect_map(dev, xdp, to, map_type, map_i argument 168 _trace_xdp_redirect_map_err(dev,xdp,to,map_type,map_id,index,err) global() argument [all...] |
/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_percpu_stats.c | 129 static bool is_lru(__u32 map_type) in is_lru() argument 131 return map_type == BPF_MAP_TYPE_LRU_HASH || in is_lru() 132 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in is_lru() 135 static bool is_percpu(__u32 map_type) in is_percpu() argument 137 return map_type == BPF_MAP_TYPE_PERCPU_HASH || in is_percpu() 138 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in is_percpu() 142 __u32 map_type; member 175 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) { in patch_map_thread() 178 } else if (is_percpu(opts->map_type)) { in patch_map_thread() 193 if (opts->map_type in patch_map_thread() [all...] |
H A D | map_in_map_batch_ops.c | 31 static void create_inner_maps(enum bpf_map_type map_type, in create_inner_maps() argument 41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), in create_inner_maps() 45 "map_type=(%d) map_name(%s), error:%s\n", in create_inner_maps() 46 map_type, map_name, strerror(errno)); in create_inner_maps() 61 "map_type=(%d) map_name(%s), error:%s\n", in create_inner_maps() 62 map_type, map_name, strerror(errno)); in create_inner_maps() 66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) in create_outer_map() argument 72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), in create_outer_map() 77 "map_type=(%d), error:%s\n", in create_outer_map() 78 map_type, strerro in create_outer_map() [all...] |
/linux/tools/testing/selftests/filesystems/ |
H A D | utils.c | 63 idmap_type_t map_type; member 180 static int write_id_mapping(idmap_type_t map_type, pid_t pid, const char *buf, size_t buf_size) in write_id_mapping() argument 188 if (geteuid() != 0 && map_type == ID_TYPE_GID) { in write_id_mapping() 208 ret = snprintf(path, sizeof(path), "/proc/%d/%cid_map", pid, map_type == ID_TYPE_UID ? 'u' : 'g'); in write_id_mapping() 221 map_type == ID_TYPE_UID ? 'u' : 'g', path); in write_id_mapping() 238 idmap_type_t map_type, u_or_g; in map_ids_from_idmap() local 243 for (map_type = ID_TYPE_UID, u_or_g = 'u'; in map_ids_from_idmap() 244 map_type <= ID_TYPE_GID; map_type++, u_or_g = 'g') { in map_ids_from_idmap() 252 if (map->map_type ! in map_ids_from_idmap() [all...] |
/linux/fs/btrfs/ |
H A D | raid-stripe-tree.h | 27 u64 logical, u64 *length, u64 map_type, 38 u64 map_type) in btrfs_need_stripe_tree_update() argument 40 u64 type = map_type & BTRFS_BLOCK_GROUP_TYPE_MASK; in btrfs_need_stripe_tree_update() 41 u64 profile = map_type & BTRFS_BLOCK_GROUP_PROFILE_MASK; in btrfs_need_stripe_tree_update()
|
H A D | raid-stripe-tree.c | 303 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); in btrfs_insert_one_raid_extent() 372 u64 logical, u64 *length, u64 map_type, in btrfs_get_raid_extent_offset() argument 454 if ((map_type & BTRFS_BLOCK_GROUP_DUP) && stripe_index != i) in btrfs_get_raid_extent_offset() 475 btrfs_bg_type_to_raid_name(map_type)); in btrfs_get_raid_extent_offset()
|
/linux/kernel/bpf/ |
H A D | map_iter.c | 116 if (map->map_type == BPF_MAP_TYPE_PERCPU_HASH || in bpf_iter_attach_map() 117 map->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH || in bpf_iter_attach_map() 118 map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in bpf_iter_attach_map() 120 else if (map->map_type != BPF_MAP_TYPE_HASH && in bpf_iter_attach_map() 121 map->map_type != BPF_MAP_TYPE_LRU_HASH && in bpf_iter_attach_map() 122 map->map_type != BPF_MAP_TYPE_ARRAY) in bpf_iter_attach_map()
|
H A D | syscall.c | 46 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ 47 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 48 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 49 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) 50 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 136 if (map->map_type == BPF_MAP_TYPE_PERCPU_HASH || in bpf_map_value_size() 137 map->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH || in bpf_map_value_size() 138 map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY || in bpf_map_value_size() 139 map->map_type == BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE) in bpf_map_value_size() 157 if (map->map_type in maybe_wait_bpf_programs() 1348 u32 map_type = attr->map_type; map_create() local [all...] |
H A D | map_in_map.c | 36 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc() 86 /* No need to compare ops because it is covered by map_type */ in bpf_map_meta_equal() 87 return meta0->map_type == meta1->map_type && in bpf_map_meta_equal()
|
H A D | arraymap.c | 54 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc_check() 65 if (attr->map_type != BPF_MAP_TYPE_ARRAY && in array_map_alloc_check() 69 if (attr->map_type != BPF_MAP_TYPE_PERF_EVENT_ARRAY && in array_map_alloc_check() 85 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc() 368 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in array_map_update_elem() 459 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in array_map_free() 475 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in array_map_free() 535 if (map->map_type != BPF_MAP_TYPE_ARRAY || in array_map_check_btf() 684 if (map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in bpf_iter_init_array_map() 738 is_percpu = map->map_type in bpf_for_each_array_elem() [all...] |
/linux/fs/smb/client/ |
H A D | cifs_unicode.c | 17 int map_type; in cifs_remap() local 20 map_type = SFM_MAP_UNI_RSVD; in cifs_remap() 22 map_type = SFU_MAP_UNI_RSVD; in cifs_remap() 24 map_type = NO_MAP_UNI_RSVD; in cifs_remap() 26 return map_type; in cifs_remap() 111 * @map_type - How should the 7 NTFS/SMB reserved characters be mapped to UCS2? 178 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument 213 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16() 219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_user_mem.c | 145 const char* map_type; in format_test_name() local 179 map_type = "MAP_SHARED"; in format_test_name() 182 map_type = "MAP_PRIVATE"; in format_test_name() 191 test_type, mte_type, map_type, len, offset); in format_test_name()
|
/linux/tools/bpf/bpftool/ |
H A D | feature.c | 593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex() argument 605 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, in probe_map_type_ifindex() 614 probe_map_type(enum bpf_map_type map_type, char const *map_type_str, in probe_map_type() argument 618 const char *plain_comment = "eBPF map_type "; in probe_map_type() 623 switch (map_type) { in probe_map_type() 631 res = probe_map_type_ifindex(map_type, ifindex); in probe_map_type() 633 res = libbpf_probe_bpf_map_type(map_type, NULL) > 0; in probe_map_type() 981 unsigned int map_type = BPF_MAP_TYPE_UNSPEC; in section_map_types() local 990 map_type++; in section_map_types() 991 map_type_str = libbpf_bpf_map_type_str(map_type); in section_map_types() [all...] |
H A D | gen.c | 964 const struct btf_type *map_type, __u32 map_type_id) in walk_st_ops_shadow_vars() argument 980 n = btf_vlen(map_type); in walk_st_ops_shadow_vars() 981 for (i = 0, m = btf_members(map_type); i < n; i++, m++) { in walk_st_ops_shadow_vars() 1081 const struct btf_type *map_type; in gen_st_ops_shadow_type() local 1089 map_type = btf__type_by_id(btf, map_type_id); in gen_st_ops_shadow_type() 1090 if (!map_type) in gen_st_ops_shadow_type() 1093 type_name = btf__name_by_offset(btf, map_type->name_off); in gen_st_ops_shadow_type() 1097 err = walk_st_ops_shadow_vars(btf, ident, map_type, map_type_id); in gen_st_ops_shadow_type() 1583 const struct btf_type *map_type, *var_type; in do_subskeleton() local 1689 map_type in do_subskeleton() [all...] |
/linux/drivers/gpu/drm/i915/gt/ |
H A D | shmem_utils.c | 37 enum i915_map_type map_type; in shmem_create_from_object() local 47 map_type = i915_gem_object_is_lmem(obj) ? I915_MAP_WC : I915_MAP_WB; in shmem_create_from_object() 48 ptr = i915_gem_object_pin_map_unlocked(obj, map_type); in shmem_create_from_object()
|
/linux/tools/lib/bpf/ |
H A D | skel_internal.h | 158 if (map->map_type != BPF_MAP_TYPE_ARRAY) in skel_finalize_map_data() 219 static inline int skel_map_create(enum bpf_map_type map_type, in skel_map_create() argument 230 attr.map_type = map_type; in skel_map_create()
|
/linux/drivers/media/platform/chips-media/wave5/ |
H A D | wave5.h | 77 struct frame_buffer *fb_arr, enum tiled_map_type map_type, 112 struct frame_buffer *fb_arr, enum tiled_map_type map_type,
|