/linux-master/fs/btrfs/ |
H A D | raid-stripe-tree.h | 26 u64 logical, u64 *length, u64 map_type, 32 u64 map_type) 34 u64 type = map_type & BTRFS_BLOCK_GROUP_TYPE_MASK; 35 u64 profile = map_type & BTRFS_BLOCK_GROUP_PROFILE_MASK; 31 btrfs_need_stripe_tree_update(struct btrfs_fs_info *fs_info, u64 map_type) argument
|
H A D | raid-stripe-tree.c | 82 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); 83 u8 encoding = btrfs_bg_flags_to_raid_index(bioc->map_type); 151 u64 logical, u64 *length, u64 map_type, 227 if (encoding != btrfs_bg_flags_to_raid_index(map_type)) { 232 btrfs_bg_flags_to_raid_index(map_type)); 244 if ((map_type & BTRFS_BLOCK_GROUP_DUP) && stripe_index != i) 267 btrfs_bg_type_to_raid_name(map_type)); 150 btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, u64 logical, u64 *length, u64 map_type, u32 stripe_index, struct btrfs_io_stripe *stripe) argument
|
/linux-master/samples/bpf/ |
H A D | test_lru_dist.c | 202 static int create_map(int map_type, int map_flags, unsigned int size) argument 209 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), 307 static void test_parallel_lru_dist(int map_type, int map_flags, argument 313 printf("%s (map_type:%d map_flags:0x%X):\n", __func__, map_type, 317 lru_map_fd = create_map(map_type, map_flags, 320 lru_map_fd = create_map(map_type, map_flags, 332 static void test_lru_loss0(int map_type, int map_flags) argument 340 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, 386 test_lru_loss1(int map_type, int map_flags) argument 465 test_parallel_lru_loss(int map_type, int map_flags, int nr_tasks) argument [all...] |
H A D | tracex6.bpf.c | 63 type = BPF_CORE_READ(map, map_type);
|
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | map_percpu_stats.c | 128 static bool is_lru(__u32 map_type) argument 130 return map_type == BPF_MAP_TYPE_LRU_HASH || 131 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; 134 static bool is_percpu(__u32 map_type) argument 136 return map_type == BPF_MAP_TYPE_PERCPU_HASH || 137 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; 141 __u32 map_type; member in struct:upsert_opts 174 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) { 177 } else if (is_percpu(opts->map_type)) { 192 if (opts->map_type [all...] |
H A D | map_in_map_batch_ops.c | 31 static void create_inner_maps(enum bpf_map_type map_type, argument 41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), 45 "map_type=(%d) map_name(%s), error:%s\n", 46 map_type, map_name, strerror(errno)); 61 "map_type=(%d) map_name(%s), error:%s\n", 62 map_type, map_name, strerror(errno)); 66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) argument 72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), 77 "map_type=(%d), error:%s\n", 78 map_type, strerro [all...] |
/linux-master/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 [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 67 enum bpf_map_type map_type; member in struct:btf_raw_test 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 5219 enum bpf_map_type map_type; member in struct:btf_pprint_test_meta [all...] |
H A D | sockmap_ktls.c | 136 enum bpf_map_type map_type) 149 static void run_tests(int family, enum bpf_map_type map_type) argument 153 map = bpf_map_create(map_type, NULL, sizeof(int), sizeof(int), 1, NULL); 157 if (test__start_subtest(fmt_test_name("disconnect_after_delete", family, map_type))) 159 if (test__start_subtest(fmt_test_name("update_fails_when_sock_has_ulp", family, map_type))) 135 fmt_test_name(const char *subtest_name, int family, enum bpf_map_type map_type) argument
|
H A D | libbpf_probes.c | 68 enum bpf_map_type map_type = (enum bpf_map_type)e->val; local 71 if (map_type == BPF_MAP_TYPE_UNSPEC) 79 res = libbpf_probe_bpf_map_type(map_type, NULL);
|
H A D | libbpf_str.c | 130 enum bpf_map_type map_type = (enum bpf_map_type)e->val; local 135 if (map_type == __MAX_BPF_MAP_TYPE) 139 map_type_str = libbpf_bpf_map_type_str(map_type); 147 * (map_type). For this enum value, libbpf_bpf_map_type_str() picks
|
H A D | map_init.c | 38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, argument 48 err = bpf_map__set_type(skel->maps.hashmap1, map_type);
|
H A D | obj_name.c | 54 attr.map_type = BPF_MAP_TYPE_ARRAY;
|
/linux-master/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) argument 33 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), 148 static void test_lru_sanity0(int map_type, int map_flags) argument 154 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, 160 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); 162 lru_map_fd = create_map(map_type, map_flags, 2); 239 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) argument 251 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, 315 test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free) argument 422 test_lru_sanity3(int map_type, int map_flags, unsigned int tgt_free) argument 486 test_lru_sanity4(int map_type, int map_flags, unsigned int tgt_free) argument 562 test_lru_sanity5(int map_type, int map_flags) argument 609 test_lru_sanity6(int map_type, int map_flags, int tgt_free) argument 676 test_lru_sanity7(int map_type, int map_flags) argument 767 test_lru_sanity8(int map_type, int map_flags) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | map_in_map.c | 44 inner_map_meta->map_type = inner_map->map_type; 100 /* No need to compare ops because it is covered by map_type */ 101 return meta0->map_type == meta1->map_type &&
|
H A D | map_iter.c | 116 if (map->map_type == BPF_MAP_TYPE_PERCPU_HASH || 117 map->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH || 118 map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY) 120 else if (map->map_type != BPF_MAP_TYPE_HASH && 121 map->map_type != BPF_MAP_TYPE_LRU_HASH && 122 map->map_type != BPF_MAP_TYPE_ARRAY)
|
H A D | syscall.c | 43 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ 44 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 45 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 46 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) 47 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 132 if (map->map_type == BPF_MAP_TYPE_PERCPU_HASH || 133 map->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH || 134 map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY || 135 map->map_type == BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE) 153 if (map->map_type 1188 u32 map_type = attr->map_type; local [all...] |
/linux-master/fs/smb/client/ |
H A D | cifs_unicode.c | 17 int map_type; local 20 map_type = SFM_MAP_UNI_RSVD; 22 map_type = SFU_MAP_UNI_RSVD; 24 map_type = NO_MAP_UNI_RSVD; 26 return map_type; 111 * @map_type - How should the 7 NTFS/SMB reserved characters be mapped to UCS2? 178 const struct nls_table *codepage, int map_type) 213 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); 219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); 177 cifs_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, const struct nls_table *codepage, int map_type) argument
|
H A D | cifs_unicode.h | 59 const struct nls_table *cp, int map_type);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf_probes.c | 282 static int probe_map_create(enum bpf_map_type map_type) argument 293 switch (map_type) { 372 if (map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS || 373 map_type == BPF_MAP_TYPE_HASH_OF_MAPS) { 388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); 405 int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts) argument 412 ret = probe_map_create(map_type);
|
H A D | skel_internal.h | 158 if (map->map_type != BPF_MAP_TYPE_ARRAY) 219 static inline int skel_map_create(enum bpf_map_type map_type, argument 230 attr.map_type = map_type;
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | shmem_utils.c | 36 enum i915_map_type map_type; local 46 map_type = i915_gem_object_is_lmem(obj) ? I915_MAP_WC : I915_MAP_WB; 47 ptr = i915_gem_object_pin_map_unlocked(obj, map_type);
|
/linux-master/drivers/media/platform/chips-media/wave5/ |
H A D | wave5.h | 68 struct frame_buffer *fb_arr, enum tiled_map_type map_type, 103 struct frame_buffer *fb_arr, enum tiled_map_type map_type,
|
/linux-master/tools/testing/selftests/arm64/mte/ |
H A D | check_user_mem.c | 145 const char* map_type; local 179 map_type = "MAP_SHARED"; 182 map_type = "MAP_PRIVATE"; 191 test_type, mte_type, map_type, len, offset);
|
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | fw.h | 83 __be32 map_type; member in struct:cmsg_req_map_alloc_tbl
|