Searched refs:map (Results 151 - 175 of 2546) sorted by last modified time

1234567891011>>

/linux-master/drivers/gpu/drm/xe/
H A Dxe_bo_types.h9 #include <linux/iosys-map.h>
43 /** @vmap: iosys map of this buffer */
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_engine_pm.c43 void *map; local
48 map = i915_gem_object_pin_map(obj, type);
49 if (!IS_ERR(map)) {
50 memset(map, CONTEXT_REDZONE, obj->base.size);
/linux-master/drivers/firmware/efi/libstub/
H A Dx86-stub.c622 /* boot_params map full, switch to e820 extended */
672 struct efi_boot_memmap *map; local
676 status = efi_get_memory_map(&map, false);
680 nr_desc = map->map_size / map->desc_size;
689 status = allocate_unaccepted_bitmap(nr_desc, map);
691 efi_bs_call(free_pool, map);
700 static efi_status_t exit_boot_func(struct efi_boot_memmap *map, argument
712 p->efi->efi_memdesc_size = map->desc_size;
713 p->efi->efi_memdesc_version = map
[all...]
H A Drandomalloc.c64 struct efi_boot_memmap *map; local
68 status = efi_get_memory_map(&map, false);
77 /* count the suitable slots in each memory map entry */
78 for (map_offset = 0; map_offset < map->map_size; map_offset += map->desc_size) {
79 efi_memory_desc_t *md = (void *)map->map + map_offset;
100 * when iterating over the memory map the first time around.
102 * So iterate over the memory map again, subtracting the number of
109 for (map_offset = 0; map_offset < map
[all...]
/linux-master/block/
H A Dblk-mq.c3309 unsigned int start = set->map[i].queue_offset;
3310 unsigned int end = start + set->map[i].nr_queues;
3327 return blk_mq_hw_queue_to_node(&set->map[type], hctx_idx);
3864 if (!set->map[j].nr_queues) {
3869 hctx_idx = set->map[j].mq_map[i];
3879 set->map[j].mq_map[i] = 0;
3930 * Set the map size to the number of mapped software queues.
4236 set->map[HCTX_TYPE_POLL].nr_queues)
4358 pr_err("blk-mq: failed to allocate request map\n");
4373 * expect that set->map[HCTX_TYPE_DEFAUL
[all...]
/linux-master/tools/testing/selftests/mm/
H A Dsoft-dirty.c18 char *map; local
20 map = aligned_alloc(pagesize, pagesize);
21 if (!map)
27 if (pagemap_is_softdirty(pagemap_fd, map) == 1) {
34 map[0]++;
36 if (pagemap_is_softdirty(pagemap_fd, map) == 0) {
43 free(map);
50 char *map, *map2; local
52 map = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0);
53 if (map
79 char *map; local
132 char *map; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dverifier_arena.c100 struct bpf_map map; member in struct:bpf_arena___l
110 pages = bpf_arena_alloc_pages(&ar->map, NULL, ar->map.max_entries, NUMA_NO_NODE, 0);
120 struct bpf_map *map = ctx->map; local
122 if (!map)
124 bpf_arena_alloc_pages(map, NULL, map->max_entries, 0, 0);
142 struct bpf_map *map = ctx->map; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dverifier.c208 struct bpf_map *map; local
211 map = bpf_object__find_map_by_name(obj, map_name);
212 if (!map) {
213 PRINT_FAIL("Can't find map '%s'\n", map_name);
217 err = bpf_map_update_elem(bpf_map__fd(map), &key, &value, 0);
219 PRINT_FAIL("Error while updating map '%s': %d\n", map_name, err);
/linux-master/tools/testing/selftests/bpf/
H A Dbpf_arena_common.h45 void __arena* bpf_arena_alloc_pages(void *map, void __arena *addr, __u32 page_cnt,
47 void bpf_arena_free_pages(void *map, void __arena *ptr, __u32 page_cnt) __ksym __weak;
61 static inline void __arena* bpf_arena_alloc_pages(void *map, void *addr, __u32 page_cnt, argument
66 static inline void bpf_arena_free_pages(void *map, void __arena *ptr, __u32 page_cnt) argument
/linux-master/tools/lib/bpf/
H A Dlibbpf.c76 static int map_set_def_max_entries(struct bpf_map *map);
1022 static bool bpf_map__is_struct_ops(const struct bpf_map *map) argument
1024 return map->def.type == BPF_MAP_TYPE_STRUCT_OPS;
1040 /* For each struct_ops program P, referenced from some struct_ops map M,
1048 struct bpf_map *map; local
1060 map = &obj->maps[j];
1061 if (!bpf_map__is_struct_ops(map))
1064 vlen = btf_vlen(map->st_ops->type);
1066 slot_prog = map->st_ops->progs[k];
1071 if (map
1083 bpf_map__init_kern_struct_ops(struct bpf_map *map) argument
1253 struct bpf_map *map; local
1283 struct bpf_map *map; local
1669 struct bpf_map *map; local
1710 bpf_map_mmap_sz(const struct bpf_map *map) argument
1724 bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) argument
1810 map_is_mmapable(struct bpf_object *obj, struct bpf_map *map) argument
1841 struct bpf_map *map; local
2418 build_map_pin_path(struct bpf_map *map, const char *path) argument
2692 map_is_ringbuf(const struct bpf_map *map) argument
2698 fill_map_from_def(struct bpf_map *map, const struct btf_map_def *def) argument
2767 struct bpf_map *map; local
2858 init_arena_map_data(struct bpf_object *obj, struct bpf_map *map, const char *sec_name, int sec_idx, void *data, size_t data_sz) argument
2934 struct bpf_map *map = &obj->maps[i]; local
3355 map_needs_vmlinux_btf(struct bpf_map *map) argument
3363 struct bpf_map *map; local
4387 struct bpf_map *map; local
4672 map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map) argument
4738 bpf_map__autocreate(const struct bpf_map *map) argument
4743 bpf_map__set_autocreate(struct bpf_map *map, bool autocreate) argument
4752 bpf_map__reuse_fd(struct bpf_map *map, int fd) argument
4810 bpf_map__max_entries(const struct bpf_map *map) argument
4815 bpf_map__inner_map(struct bpf_map *map) argument
4823 bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries) argument
4942 map_is_reuse_compat(const struct bpf_map *map, int map_fd) argument
4968 bpf_object__reuse_map(struct bpf_map *map) argument
5007 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map) argument
5046 map_is_created(const struct bpf_map *map) argument
5051 bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map, bool is_inner) argument
5182 init_map_in_map_slots(struct bpf_object *obj, struct bpf_map *map) argument
5218 init_prog_array_slots(struct bpf_object *obj, struct bpf_map *map) argument
5253 struct bpf_map *map; local
5269 map_set_def_max_entries(struct bpf_map *map) argument
5290 struct bpf_map *map; local
5890 poison_map_ldimm64(struct bpf_program *prog, int relo_idx, int insn_idx, struct bpf_insn *insn, int map_idx, const struct bpf_map *map) argument
5953 const struct bpf_map *map; local
7036 struct bpf_map *map = NULL, *targ_map = NULL; local
7431 struct bpf_map *map; local
7590 const struct bpf_map *map; local
8340 bpf_map_prepare_vdata(const struct bpf_map *map) argument
8362 struct bpf_map *map; local
8556 bpf_map__pin(struct bpf_map *map, const char *path) argument
8617 bpf_map__unpin(struct bpf_map *map, const char *path) argument
8653 bpf_map__set_pin_path(struct bpf_map *map, const char *path) argument
8676 bpf_map__is_pinned(const struct bpf_map *map) argument
8693 struct bpf_map *map; local
8741 struct bpf_map *map; local
8861 bpf_map__destroy(struct bpf_map *map) argument
9579 struct bpf_map *map; local
9606 struct bpf_map *map; local
9924 bpf_map__fd(const struct bpf_map *map) argument
9933 map_uses_real_name(const struct bpf_map *map) argument
9948 bpf_map__name(const struct bpf_map *map) argument
9959 bpf_map__type(const struct bpf_map *map) argument
9964 bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type) argument
9972 bpf_map__map_flags(const struct bpf_map *map) argument
9977 bpf_map__set_map_flags(struct bpf_map *map, __u32 flags) argument
9985 bpf_map__map_extra(const struct bpf_map *map) argument
9990 bpf_map__set_map_extra(struct bpf_map *map, __u64 map_extra) argument
9998 bpf_map__numa_node(const struct bpf_map *map) argument
10003 bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node) argument
10011 bpf_map__key_size(const struct bpf_map *map) argument
10016 bpf_map__set_key_size(struct bpf_map *map, __u32 size) argument
10024 bpf_map__value_size(const struct bpf_map *map) argument
10029 map_btf_datasec_resize(struct bpf_map *map, __u32 size) argument
10100 bpf_map__set_value_size(struct bpf_map *map, __u32 size) argument
10133 bpf_map__btf_key_type_id(const struct bpf_map *map) argument
10138 bpf_map__btf_value_type_id(const struct bpf_map *map) argument
10143 bpf_map__set_initial_value(struct bpf_map *map, const void *data, size_t size) argument
10165 bpf_map__initial_value(const struct bpf_map *map, size_t *psize) argument
10184 bpf_map__is_internal(const struct bpf_map *map) argument
10189 bpf_map__ifindex(const struct bpf_map *map) argument
10194 bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex) argument
10202 bpf_map__set_inner_map_fd(struct bpf_map *map, int fd) argument
10298 validate_map_op(const struct bpf_map *map, size_t key_sz, size_t value_sz, bool check_value_sz) argument
10339 bpf_map__lookup_elem(const struct bpf_map *map, const void *key, size_t key_sz, void *value, size_t value_sz, __u64 flags) argument
10352 bpf_map__update_elem(const struct bpf_map *map, const void *key, size_t key_sz, const void *value, size_t value_sz, __u64 flags) argument
10365 bpf_map__delete_elem(const struct bpf_map *map, const void *key, size_t key_sz, __u64 flags) argument
10377 bpf_map__lookup_and_delete_elem(const struct bpf_map *map, const void *key, size_t key_sz, void *value, size_t value_sz, __u64 flags) argument
10390 bpf_map__get_next_key(const struct bpf_map *map, const void *cur_key, void *next_key, size_t key_sz) argument
12699 bpf_map__attach_struct_ops(const struct bpf_map *map) argument
12748 bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map) argument
13025 struct bpf_map_info map; local
13494 struct bpf_map **map = maps[i].map; local
13579 const struct bpf_map *map; local
13656 struct bpf_map *map = *s->maps[i].map; local
[all...]
/linux-master/tools/bpf/bpftool/
H A Dgen.c93 static bool get_map_ident(const struct bpf_map *map, char *buf, size_t buf_sz) argument
96 const char *name = bpf_map__name(map);
99 if (!bpf_map__is_internal(map)) {
257 static bool is_mmapable_map(const struct bpf_map *map, char *buf, size_t sz) argument
261 if (bpf_map__type(map) == BPF_MAP_TYPE_ARENA && bpf_map__initial_value(map, &tmp_sz)) {
266 if (!bpf_map__is_internal(map) || !(bpf_map__map_flags(map) & BPF_F_MMAPABLE))
269 if (!get_map_ident(map, buf, sz))
279 struct bpf_map *map; local
328 struct bpf_map *map; local
486 bpf_map_mmap_sz(const struct bpf_map *map) argument
500 struct bpf_map *map; local
647 struct bpf_map *map; local
691 struct bpf_map *map; local
853 struct bpf_map *map; local
1054 gen_st_ops_shadow_type(const char *obj_name, struct btf *btf, const char *ident, const struct bpf_map *map) argument
1085 struct bpf_map *map; local
1118 struct bpf_map *map; local
1151 struct bpf_map *map; local
1532 const struct bpf_map *map; local
[all...]
/linux-master/net/mac80211/
H A Dieee80211_i.h494 u32 duration; /* duration of the planned T2L map in TUs */
495 u16 map; /* map of usable links for all TIDs */ member in struct:ieee80211_adv_ttlm_info
/linux-master/kernel/bpf/
H A Dhelpers.c33 * Different map implementations will rely on rcu in map methods
38 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key)
42 return (unsigned long) map->ops->map_lookup_elem(map, key);
54 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key,
59 return map->ops->map_update_elem(map, key, value, flags);
73 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key)
77 return map
374 copy_map_value_locked(struct bpf_map *map, void *dst, void *src, bool lock_src) argument
1100 struct bpf_map *map; member in struct:bpf_hrtimer
1122 struct bpf_map *map = t->map; local
[all...]
H A Dbloom_filter.c16 struct bpf_map map; member in struct:bpf_bloom_filter
36 static long bloom_map_peek_elem(struct bpf_map *map, void *value) argument
39 container_of(map, struct bpf_bloom_filter, map);
43 h = hash(bloom, value, map->value_size, i);
51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) argument
54 container_of(map, struct bpf_bloom_filter, map);
61 h = hash(bloom, value, map->value_size, i);
68 static long bloom_map_pop_elem(struct bpf_map *map, voi argument
73 bloom_map_delete_elem(struct bpf_map *map, void *value) argument
78 bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
162 bloom_map_free(struct bpf_map *map) argument
170 bloom_map_lookup_elem(struct bpf_map *map, void *key) argument
176 bloom_map_update_elem(struct bpf_map *map, void *key, void *value, u64 flags) argument
183 bloom_map_check_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument
192 bloom_map_mem_usage(const struct bpf_map *map) argument
[all...]
H A Darena.c44 struct bpf_map map; member in struct:bpf_arena
63 static long arena_map_peek_elem(struct bpf_map *map, void *value) argument
68 static long arena_map_push_elem(struct bpf_map *map, void *value, u64 flags) argument
73 static long arena_map_pop_elem(struct bpf_map *map, void *value) argument
78 static long arena_map_delete_elem(struct bpf_map *map, void *value) argument
83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
134 bpf_map_init_from_attr(&arena->map, attr);
138 return &arena->map;
164 static void arena_map_free(struct bpf_map *map) argument
166 struct bpf_arena *arena = container_of(map, struc
190 arena_map_lookup_elem(struct bpf_map *map, void *key) argument
195 arena_map_update_elem(struct bpf_map *map, void *key, void *value, u64 flags) argument
201 arena_map_check_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type) argument
207 arena_map_mem_usage(const struct bpf_map *map) argument
232 struct bpf_map *map = vma->vm_file->private_data; local
247 struct bpf_map *map = vmf->vma->vm_file->private_data; local
298 struct bpf_map *map = filp->private_data; local
328 arena_map_mmap(struct bpf_map *map, struct vm_area_struct *vma) argument
367 arena_map_direct_value_addr(const struct bpf_map *map, u64 *imm, u32 off) argument
535 struct bpf_map *map = p__map; local
546 struct bpf_map *map = p__map; local
[all...]
/linux-master/include/net/
H A Dxdp_sock.h42 struct bpf_map map; member in struct:xsk_map
43 spinlock_t lock; /* Synchronize map updates */
/linux-master/fs/nfsd/
H A Dvfs.c789 struct accessmap *map; local
803 map = nfs3_regaccess;
805 map = nfs3_diraccess;
807 map = nfs3_anyaccess;
811 for (; map->access; map++) {
812 if (map->access & query) {
815 sresult |= map->access;
817 err2 = nfsd_permission(rqstp, export, dentry, map->how);
820 result |= map
[all...]
/linux-master/fs/btrfs/
H A Dzoned.c1290 struct btrfs_chunk_map *map)
1293 struct btrfs_device *device = map->stripes[zone_idx].dev;
1299 info->physical = map->stripes[zone_idx].physical;
1393 struct btrfs_chunk_map *map,
1399 if ((map->type & BTRFS_BLOCK_GROUP_DATA) && !fs_info->stripe_root) {
1435 struct btrfs_chunk_map *map,
1442 if ((map->type & BTRFS_BLOCK_GROUP_DATA) && !fs_info->stripe_root) {
1444 btrfs_bg_type_to_raid_name(map->type));
1448 for (i = 0; i < map->num_stripes; i++) {
1457 btrfs_bg_type_to_raid_name(map
1288 btrfs_load_zone_info(struct btrfs_fs_info *fs_info, int zone_idx, struct zone_info *info, unsigned long *active, struct btrfs_chunk_map *map) argument
1392 btrfs_load_block_group_dup(struct btrfs_block_group *bg, struct btrfs_chunk_map *map, struct zone_info *zone_info, unsigned long *active) argument
1434 btrfs_load_block_group_raid1(struct btrfs_block_group *bg, struct btrfs_chunk_map *map, struct zone_info *zone_info, unsigned long *active) argument
1482 btrfs_load_block_group_raid0(struct btrfs_block_group *bg, struct btrfs_chunk_map *map, struct zone_info *zone_info, unsigned long *active) argument
1514 btrfs_load_block_group_raid10(struct btrfs_block_group *bg, struct btrfs_chunk_map *map, struct zone_info *zone_info, unsigned long *active) argument
1552 struct btrfs_chunk_map *map; local
2062 struct btrfs_chunk_map *map; local
2170 struct btrfs_chunk_map *map; local
2626 struct btrfs_chunk_map *map = block_group->physical_map; local
[all...]
H A Dblock-group.c1050 struct btrfs_chunk_map *map)
1065 block_group = btrfs_lookup_block_group(fs_info, map->start);
1231 * the block group's extent map before the task calling this function
1257 * And we must not remove the chunk map from the fs_info->mapping_tree
1277 btrfs_remove_chunk_map(fs_info, map);
1292 struct btrfs_chunk_map *map; local
1295 map = btrfs_find_chunk_map(fs_info, chunk_offset, 1);
1296 ASSERT(map != NULL);
1297 ASSERT(map->start == chunk_offset);
1318 num_items = 3 + map
1049 btrfs_remove_block_group(struct btrfs_trans_handle *trans, struct btrfs_chunk_map *map) argument
1973 struct btrfs_chunk_map *map; local
2066 struct btrfs_chunk_map *map; local
2243 struct btrfs_chunk_map *map; local
2411 struct btrfs_chunk_map *map; local
2653 struct btrfs_chunk_map *map; local
4475 struct btrfs_chunk_map *map; local
[all...]
/linux-master/drivers/uio/
H A Duio.c47 #define to_map(map) container_of(map, struct uio_map, kobj)
94 ATTRIBUTE_GROUPS(map); variable
98 struct uio_map *map = to_map(kobj); local
99 kfree(map);
105 struct uio_map *map = to_map(kobj); local
106 struct uio_mem *mem = map->mem;
292 struct uio_map *map; local
309 map = kzalloc(sizeof(*map), GFP_KERNE
[all...]
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Drtw8922a.c484 struct rtw8922a_efuse *map)
486 struct rtw8922a_tssi_offset *ofst[] = {&map->path_a_tssi, &map->path_b_tssi};
487 u8 *bw40_1s_tssi_6g_ofst[] = {map->bw40_1s_tssi_6g_a, map->bw40_1s_tssi_6g_b};
491 tssi->thermal[RF_PATH_A] = map->path_a_therm;
492 tssi->thermal[RF_PATH_B] = map->path_b_therm;
518 struct rtw8922a_efuse *map)
525 gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK] = map->rx_gain_a._2g_cck;
526 gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK] = map
483 rtw8922a_efuse_parsing_tssi(struct rtw89_dev *rtwdev, struct rtw8922a_efuse *map) argument
517 rtw8922a_efuse_parsing_gain_offset(struct rtw89_dev *rtwdev, struct rtw8922a_efuse *map) argument
602 struct rtw8922a_efuse *map = (struct rtw8922a_efuse *)log_map; local
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_ethtool.c2060 const struct hns3_ethtool_link_ext_state_mapping *map; local
2076 map = &hns3_link_ext_state_map[i];
2077 if (map->status_code == status_code) {
2078 info->link_ext_state = map->link_ext_state;
2079 info->__link_ext_substate = map->link_ext_substate;
/linux-master/arch/s390/net/
H A Dbpf_jit_comp.c1595 * if (index >= array->map.max_entries)
1599 /* llgf %w1,map.max_entries(%b2) */
1601 offsetof(struct bpf_array, map.max_entries));
/linux-master/drivers/irqchip/
H A Dirq-renesas-rzg2l.c395 struct of_phandle_args map; local
400 ret = of_irq_parse_one(np, i, &map);
403 of_phandle_args_to_fwspec(np, map.args, map.args_count,
/linux-master/drivers/iommu/
H A Ddma-iommu.c16 #include <linux/dma-map-ops.h>
901 /* IOMMU can map any pages, so himem can also be used here */
941 * but an IOMMU which supports smaller pages might not map the whole thing.
1161 dev_warn_once(dev, "DMA bounce buffers are inactive, unable to map unaligned transaction.\n");
1359 enum pci_p2pdma_map_type map; local
1390 map = pci_p2pdma_map_segment(&p2pdma_state, dev, s);
1391 switch (map) {

Completed in 919 milliseconds

1234567891011>>