Home
last modified time | relevance | path

Searched full:map (Results 1 – 25 of 4635) sorted by relevance

12345678910>>...186

/linux/tools/perf/util/
H A Dmap.h26 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument
43 struct kmap *__map__kmap(struct map *map);
44 struct kmap *map__kmap(struct map *map);
45 struct maps *map__kmaps(struct map *map);
47 static inline struct dso *map__dso(const struct map *map) in map__dso()
49 return RC_CHK_ACCESS(map) in map__dso()
46 map__dso(const struct map * map) map__dso() argument
51 map__start(const struct map * map) map__start() argument
56 map__end(const struct map * map) map__end() argument
61 map__pgoff(const struct map * map) map__pgoff() argument
66 map__reloc(const struct map * map) map__reloc() argument
71 map__flags(const struct map * map) map__flags() argument
76 map__prot(const struct map * map) map__prot() argument
81 map__priv(const struct map * map) map__priv() argument
86 map__refcnt(struct map * map) map__refcnt() argument
91 map__erange_warned(struct map * map) map__erange_warned() argument
96 map__size(const struct map * map) map__size() argument
102 map__dso_map_ip(const struct map * map,u64 ip) map__dso_map_ip() argument
108 map__dso_unmap_ip(const struct map * map,u64 rip) map__dso_unmap_ip() argument
113 map__map_ip(const struct map * map,u64 ip_or_rip) map__map_ip() argument
121 map__unmap_ip(const struct map * map,u64 ip_or_rip) map__unmap_ip() argument
145 map__for_each_symbol(map,pos,n) global() argument
156 __map__for_each_symbol_by_name(map,sym_name,pos,idx) global() argument
163 map__for_each_symbol_by_name(map,sym_name,pos,idx) global() argument
179 map__get(struct map * map) map__get() argument
191 __map__zput(struct map ** map) __map__zput() argument
197 map__zput(map) global() argument
222 __map__is_kmodule(const struct map * map) __map__is_kmodule() argument
260 map__set_start(struct map * map,u64 start) map__set_start() argument
265 map__set_end(struct map * map,u64 end) map__set_end() argument
270 map__set_pgoff(struct map * map,u64 pgoff) map__set_pgoff() argument
275 map__add_pgoff(struct map * map,u64 inc) map__add_pgoff() argument
280 map__set_reloc(struct map * map,u64 reloc) map__set_reloc() argument
285 map__set_priv(struct map * map,int priv) map__set_priv() argument
290 map__set_erange_warned(struct map * map,bool erange_warned) map__set_erange_warned() argument
295 map__set_dso(struct map * map,struct dso * dso) map__set_dso() argument
300 map__set_mapping_type(struct map * map,enum mapping_type type) map__set_mapping_type() argument
305 map__mapping_type(struct map * map) map__mapping_type() argument
[all...]
H A Dmap.c12 #include "map.h"
105 static void map__init(struct map *map, u64 start, u64 end, u64 pgoff, in map__init() argument
108 map__set_start(map, start); in map__init()
109 map__set_end(map, end); in map__init()
110 map__set_pgoff(map, pgoff); in map__init()
111 assert(map__reloc(map) == 0); in map__init()
112 map__set_dso(map, dso__get(dso)); in map__init()
113 refcount_set(map__refcnt(map), 1); in map__init()
114 RC_CHK_ACCESS(map) in map__init()
237 __map__is_kernel(const struct map * map) __map__is_kernel() argument
244 __map__is_extra_kernel_map(const struct map * map) __map__is_extra_kernel_map() argument
251 __map__is_bpf_prog(const struct map * map) __map__is_bpf_prog() argument
268 __map__is_bpf_image(const struct map * map) __map__is_bpf_image() argument
285 __map__is_ool(const struct map * map) __map__is_ool() argument
292 map__has_symbols(const struct map * map) map__has_symbols() argument
297 map__exit(struct map * map) map__exit() argument
303 map__delete(struct map * map) map__delete() argument
309 map__put(struct map * map) map__put() argument
317 map__fixup_start(struct map * map) map__fixup_start() argument
330 map__fixup_end(struct map * map) map__fixup_end() argument
344 map__load(struct map * map) map__load() argument
385 map__find_symbol(struct map * map,u64 addr) map__find_symbol() argument
393 map__find_symbol_by_name_idx(struct map * map,const char * name,size_t * idx) map__find_symbol_by_name_idx() argument
406 map__find_symbol_by_name(struct map * map,const char * name) map__find_symbol_by_name() argument
432 map__fprintf(struct map * map,FILE * fp) map__fprintf() argument
447 __map__fprintf_dsoname(struct map * map,bool print_off,FILE * fp) __map__fprintf_dsoname() argument
468 map__fprintf_dsoname(struct map * map,FILE * fp) map__fprintf_dsoname() argument
473 map__fprintf_dsoname_dsoff(struct map * map,bool print_off,u64 addr,FILE * fp) map__fprintf_dsoname_dsoff() argument
489 map__srcline(struct map * map,u64 addr,struct symbol * sym) map__srcline() argument
497 map__fprintf_srcline(struct map * map,u64 addr,const char * prefix,FILE * fp) map__fprintf_srcline() argument
529 map__rip_2objdump(struct map * map,u64 rip) map__rip_2objdump() argument
574 map__objdump_2mem(struct map * map,u64 ip) map__objdump_2mem() argument
590 map__contains_symbol(const struct map * map,const struct symbol * sym) map__contains_symbol() argument
597 __map__kmap(struct map * map) __map__kmap() argument
606 map__kmap(struct map * map) map__kmap() argument
615 map__kmaps(struct map * map) map__kmaps() argument
[all...]
H A Dhashmap.c4 * Generic non-thread safe hash map implementation.
38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument
41 map->hash_fn = hash_fn; in hashmap__init()
42 map->equal_fn = equal_fn; in hashmap__init()
43 map->ctx = ctx; in hashmap__init()
45 map->buckets = NULL; in hashmap__init()
46 map->cap = 0; in hashmap__init()
47 map->cap_bits = 0; in hashmap__init()
48 map->sz = 0; in hashmap__init()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
[all …]
H A Dmmap.c39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len() argument
41 return perf_mmap__mmap_len(&map->core); in mmap__mmap_len()
71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled() argument
73 return map->aio.nr_cblocks > 0; in perf_mmap__aio_enabled()
77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() argument
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc()
81 if (map->aio.data[idx] == MAP_FAILED) { in perf_mmap__aio_alloc()
82 map->aio.data[idx] = NULL; in perf_mmap__aio_alloc()
89 static void perf_mmap__aio_free(struct mmap *map, in argument
97 perf_mmap__aio_bind(struct mmap * map,int idx,struct perf_cpu cpu,int affinity) perf_mmap__aio_bind() argument
126 perf_mmap__aio_alloc(struct mmap * map,int idx) perf_mmap__aio_alloc() argument
135 perf_mmap__aio_free(struct mmap * map,int idx) perf_mmap__aio_free() argument
147 perf_mmap__aio_mmap(struct mmap * map,struct mmap_params * mp) perf_mmap__aio_mmap() argument
201 perf_mmap__aio_munmap(struct mmap * map) perf_mmap__aio_munmap() argument
229 mmap__munmap(struct mmap * map) mmap__munmap() argument
263 perf_mmap__setup_affinity_mask(struct mmap * map,struct mmap_params * mp) perf_mmap__setup_affinity_mask() argument
278 mmap__mmap(struct mmap * map,struct mmap_params * mp,int fd,struct perf_cpu cpu) mmap__mmap() argument
324 perf_mmap__push(struct mmap * md,void * to,int push (struct mmap * map,void * to,void * buf,size_t size)) perf_mmap__push() argument
[all...]
/linux/include/linux/mtd/
H A Dmap.h22 #define map_bankwidth(map) 1 argument
23 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) argument
24 #define map_bankwidth_is_large(map) (0) argument
25 #define map_words(map) (1) argument
28 #define map_bankwidth_is_1(map) (0) argument
34 # define map_bankwidth(map) ((map)->bankwidth) argument
36 # define map_bankwidth(map) 2 argument
37 # define map_bankwidth_is_large(map) (0) argument
38 # define map_words(map) (1) argument
40 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) argument
[all …]
/linux/drivers/base/regmap/
H A Dregmap-debugfs.c3 // Register map access API - debugfs
19 struct regmap *map; member
38 struct regmap *map = file->private_data; in regmap_name_read_file() local
47 if (map->dev && map->dev->driver) in regmap_name_read_file()
48 name = map->dev->driver->name; in regmap_name_read_file()
67 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache() argument
71 while (!list_empty(&map->debugfs_off_cache)) { in regmap_debugfs_free_dump_cache()
72 c = list_first_entry(&map->debugfs_off_cache, in regmap_debugfs_free_dump_cache()
80 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable() argument
82 if (regmap_precious(map, reg)) in regmap_printable()
[all …]
/linux/drivers/mtd/maps/
H A Dpci.c7 * Generic PCI memory map driver. We support the following boards:
17 #include <linux/mtd/map.h>
23 int (*init)(struct pci_dev *dev, struct map_pci_info *map);
24 void (*exit)(struct pci_dev *dev, struct map_pci_info *map);
25 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
30 struct map_info map; member
32 void (*exit)(struct pci_dev *dev, struct map_pci_info *map);
33 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
39 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read8() local
41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8()
[all …]
H A Damd76xrom.c15 #include <linux/mtd/map.h>
42 struct map_info map; member
71 struct amd76xrom_map_info *map, *scratch; in amd76xrom_cleanup() local
82 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup()
83 if (map->rsrc.parent) { in amd76xrom_cleanup()
84 release_resource(&map->rsrc); in amd76xrom_cleanup()
86 mtd_device_unregister(map->mtd); in amd76xrom_cleanup()
87 map_destroy(map->mtd); in amd76xrom_cleanup()
88 list_del(&map->list); in amd76xrom_cleanup()
89 kfree(map); in amd76xrom_cleanup()
[all …]
H A Dichxrom.c15 #include <linux/mtd/map.h>
47 struct map_info map; member
59 struct ichxrom_map_info *map, *scratch; in ichxrom_cleanup() local
70 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup()
71 if (map->rsrc.parent) in ichxrom_cleanup()
72 release_resource(&map->rsrc); in ichxrom_cleanup()
73 mtd_device_unregister(map->mtd); in ichxrom_cleanup()
74 map_destroy(map->mtd); in ichxrom_cleanup()
75 list_del(&map->list); in ichxrom_cleanup()
76 kfree(map); in ichxrom_cleanup()
[all …]
H A Dck804xrom.c18 #include <linux/mtd/map.h>
46 struct map_info map; member
84 struct ck804xrom_map_info *map, *scratch; in ck804xrom_cleanup() local
94 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ck804xrom_cleanup()
95 if (map->rsrc.parent) in ck804xrom_cleanup()
96 release_resource(&map->rsrc); in ck804xrom_cleanup()
98 mtd_device_unregister(map->mtd); in ck804xrom_cleanup()
99 map_destroy(map->mtd); in ck804xrom_cleanup()
100 list_del(&map->list); in ck804xrom_cleanup()
101 kfree(map); in ck804xrom_cleanup()
[all …]
/linux/net/sctp/
H A Dtsnmap.c29 static void sctp_tsnmap_update(struct sctp_tsnmap *map);
30 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off,
32 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size);
35 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init() argument
38 if (!map->tsn_map) { in sctp_tsnmap_init()
39 map->tsn_map = kzalloc(len>>3, gfp); in sctp_tsnmap_init()
40 if (map->tsn_map == NULL) in sctp_tsnmap_init()
43 map->len = len; in sctp_tsnmap_init()
45 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init()
49 map->base_tsn = initial_tsn; in sctp_tsnmap_init()
[all …]
/linux/tools/lib/bpf/
H A Dhashmap.c4 * Generic non-thread safe hash map implementation.
38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument
41 map->hash_fn = hash_fn; in hashmap__init()
42 map->equal_fn = equal_fn; in hashmap__init()
43 map->ctx = ctx; in hashmap__init()
45 map->buckets = NULL; in hashmap__init()
46 map->cap = 0; in hashmap__init()
47 map->cap_bits = 0; in hashmap__init()
48 map->sz = 0; in hashmap__init()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
[all …]
/linux/kernel/bpf/
H A Darraymap.c26 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_free_percpu()
37 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_alloc_percpu()
38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
73 /* avoid overflow on round_up(map->value_size) */ in array_map_alloc_check()
76 /* percpu map value size is bound by PCPU_MIN_UNIT_SIZE */ in array_map_alloc_check()
130 /* allocate all map elements and zero-initialize them */ in array_map_alloc()
146 array->map.bypass_spec_v1 = bypass_spec_v1; in array_map_alloc()
148 /* copy mandatory map attributes */ in array_map_alloc()
149 bpf_map_init_from_attr(&array->map, attr); in array_map_alloc()
157 return &array->map; in array_map_elem_ptr()
163 array_map_lookup_elem(struct bpf_map * map,void * key) array_map_lookup_elem() argument
174 array_map_direct_value_addr(const struct bpf_map * map,u64 * imm,u32 off) array_map_direct_value_addr() argument
188 array_map_direct_value_meta(const struct bpf_map * map,u64 imm,u32 * off) array_map_direct_value_meta() argument
205 array_map_gen_lookup(struct bpf_map * map,struct bpf_insn * insn_buf) array_map_gen_lookup() argument
238 percpu_array_map_lookup_elem(struct bpf_map * map,void * key) percpu_array_map_lookup_elem() argument
250 percpu_array_map_gen_lookup(struct bpf_map * map,struct bpf_insn * insn_buf) percpu_array_map_gen_lookup() argument
281 percpu_array_map_lookup_percpu_elem(struct bpf_map * map,void * key,u32 cpu) percpu_array_map_lookup_percpu_elem() argument
295 bpf_percpu_array_copy(struct bpf_map * map,void * key,void * value) bpf_percpu_array_copy() argument
323 array_map_get_next_key(struct bpf_map * map,void * key,void * next_key) array_map_get_next_key() argument
342 array_map_update_elem(struct bpf_map * map,void * key,void * value,u64 map_flags) array_map_update_elem() argument
381 bpf_percpu_array_update(struct bpf_map * map,void * key,void * value,u64 map_flags) bpf_percpu_array_update() argument
421 array_map_delete_elem(struct bpf_map * map,void * key) array_map_delete_elem() argument
431 array_map_free_timers_wq(struct bpf_map * map) array_map_free_timers_wq() argument
450 array_map_free(struct bpf_map * map) array_map_free() argument
481 array_map_seq_show_elem(struct bpf_map * map,void * key,struct seq_file * m) array_map_seq_show_elem() argument
502 percpu_array_map_seq_show_elem(struct bpf_map * map,void * key,struct seq_file * m) percpu_array_map_seq_show_elem() argument
525 array_map_check_btf(const struct bpf_map * map,const struct btf * btf,const struct btf_type * key_type,const struct btf_type * value_type) array_map_check_btf() argument
557 array_map_mmap(struct bpf_map * map,struct vm_area_struct * vma) array_map_mmap() argument
583 struct bpf_map *map; global() member
591 struct bpf_map *map = info->map; bpf_array_map_seq_start() local
610 struct bpf_map *map = info->map; bpf_array_map_seq_next() local
630 struct bpf_map *map = info->map; __bpf_array_map_seq_show() local
681 struct bpf_map *map = aux->map; bpf_iter_init_array_map() local
726 bpf_for_each_array_elem(struct bpf_map * map,bpf_callback_t callback_fn,void * callback_ctx,u64 flags) bpf_for_each_array_elem() argument
761 array_map_mem_usage(const struct bpf_map * map) array_map_mem_usage() argument
842 fd_array_map_free(struct bpf_map * map) fd_array_map_free() argument
854 fd_array_map_lookup_elem(struct bpf_map * map,void * key) fd_array_map_lookup_elem() argument
860 bpf_fd_array_map_lookup_elem(struct bpf_map * map,void * key,u32 * value) bpf_fd_array_map_lookup_elem() argument
880 bpf_fd_array_map_update_elem(struct bpf_map * map,struct file * map_file,void * key,void * value,u64 map_flags) bpf_fd_array_map_update_elem() argument
912 __fd_array_map_delete_elem(struct bpf_map * map,void * key,bool need_defer) __fd_array_map_delete_elem() argument
938 fd_array_map_delete_elem(struct bpf_map * map,void * key) fd_array_map_delete_elem() argument
943 prog_fd_array_get_ptr(struct bpf_map * map,struct file * map_file,int fd) prog_fd_array_get_ptr() argument
959 prog_fd_array_put_ptr(struct bpf_map * map,void * ptr,bool need_defer) prog_fd_array_put_ptr() argument
971 bpf_fd_array_map_clear(struct bpf_map * map,bool need_defer) bpf_fd_array_map_clear() argument
980 prog_array_map_seq_show_elem(struct bpf_map * map,void * key,struct seq_file * m) prog_array_map_seq_show_elem() argument
1008 prog_array_map_poke_track(struct bpf_map * map,struct bpf_prog_aux * prog_aux) prog_array_map_poke_track() argument
1041 prog_array_map_poke_untrack(struct bpf_map * map,struct bpf_prog_aux * prog_aux) prog_array_map_poke_untrack() argument
1065 prog_array_map_poke_run(struct bpf_map * map,u32 key,struct bpf_prog * old,struct bpf_prog * new) prog_array_map_poke_run() argument
1116 struct bpf_map *map = container_of(work, struct bpf_array_aux, prog_array_map_clear_deferred() local
1122 prog_array_map_clear(struct bpf_map * map) prog_array_map_clear() argument
1133 struct bpf_map *map; prog_array_map_alloc() local
1155 prog_array_map_free(struct bpf_map * map) prog_array_map_free() argument
1222 perf_event_fd_array_get_ptr(struct bpf_map * map,struct file * map_file,int fd) perf_event_fd_array_get_ptr() argument
1248 perf_event_fd_array_put_ptr(struct bpf_map * map,void * ptr,bool need_defer) perf_event_fd_array_put_ptr() argument
1254 perf_event_fd_array_release(struct bpf_map * map,struct file * map_file) perf_event_fd_array_release() argument
1273 perf_event_fd_array_map_free(struct bpf_map * map) perf_event_fd_array_map_free() argument
1297 cgroup_fd_array_get_ptr(struct bpf_map * map,struct file * map_file,int fd) cgroup_fd_array_get_ptr() argument
1304 cgroup_fd_array_put_ptr(struct bpf_map * map,void * ptr,bool need_defer) cgroup_fd_array_put_ptr() argument
1310 cgroup_fd_array_free(struct bpf_map * map) cgroup_fd_array_free() argument
1334 struct bpf_map *map, *inner_map_meta; array_of_map_alloc() local
1351 array_of_map_free(struct bpf_map * map) array_of_map_free() argument
1361 array_of_map_lookup_elem(struct bpf_map * map,void * key) array_of_map_lookup_elem() argument
1371 array_of_map_gen_lookup(struct bpf_map * map,struct bpf_insn * insn_buf) array_of_map_gen_lookup() argument
[all...]
H A Dlocal_storage.c22 struct bpf_map map; member
29 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage() argument
31 return container_of(map, struct bpf_cgroup_storage_map, map); in map_to_storage()
34 static bool attach_type_isolated(const struct bpf_map *map) in attach_type_isolated() argument
36 return map->key_size == sizeof(struct bpf_cgroup_storage_key); in attach_type_isolated()
39 static int bpf_cgroup_storage_key_cmp(const struct bpf_cgroup_storage_map *map, in bpf_cgroup_storage_key_cmp() argument
42 if (attach_type_isolated(&map->map)) { in bpf_cgroup_storage_key_cmp()
67 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup() argument
102 cgroup_storage_insert(struct bpf_cgroup_storage_map * map,struct bpf_cgroup_storage * storage) cgroup_storage_insert() argument
134 struct bpf_cgroup_storage_map *map = map_to_storage(_map); cgroup_storage_lookup_elem() local
144 cgroup_storage_update_elem(struct bpf_map * map,void * key,void * value,u64 flags) cgroup_storage_update_elem() argument
185 struct bpf_cgroup_storage_map *map = map_to_storage(_map); bpf_percpu_cgroup_storage_copy() local
214 struct bpf_cgroup_storage_map *map = map_to_storage(_map); bpf_percpu_cgroup_storage_update() local
248 struct bpf_cgroup_storage_map *map = map_to_storage(_map); cgroup_storage_get_next_key() local
289 struct bpf_cgroup_storage_map *map; cgroup_storage_map_alloc() local
332 struct bpf_cgroup_storage_map *map = map_to_storage(_map); cgroup_storage_map_free() local
351 cgroup_storage_delete_elem(struct bpf_map * map,void * key) cgroup_storage_delete_elem() argument
356 cgroup_storage_check_btf(const struct bpf_map * map,const struct btf * btf,const struct btf_type * key_type,const struct btf_type * value_type) cgroup_storage_check_btf() argument
414 cgroup_storage_seq_show_elem(struct bpf_map * map,void * key,struct seq_file * m) cgroup_storage_seq_show_elem() argument
449 cgroup_storage_map_usage(const struct bpf_map * map) cgroup_storage_map_usage() argument
482 bpf_cgroup_storage_calculate_size(struct bpf_map * map,u32 * pages) bpf_cgroup_storage_calculate_size() argument
504 struct bpf_map *map; bpf_cgroup_storage_alloc() local
561 struct bpf_map *map; bpf_cgroup_storage_free() local
578 struct bpf_cgroup_storage_map *map; bpf_cgroup_storage_link() local
597 struct bpf_cgroup_storage_map *map; bpf_cgroup_storage_unlink() local
[all...]
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-map.rst4 bpftool-map
17 **bpftool** [*OPTIONS*] **map** *COMMAND*
25 MAP COMMANDS
28 | **bpftool** **map** { **show** | **list** } [*MAP*]
29 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \
30 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \
32 | **bpftool** **map dump** *MAP*
33 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
34 | **bpftool** **map lookup** *MAP* [**key** *DATA*]
35 | **bpftool** **map getnext** *MAP* [**key** *DATA*]
[all …]
/linux/drivers/mtd/lpddr/
H A Dqinfo_probe.c16 #include <linux/mtd/map.h>
20 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr);
21 struct mtd_info *lpddr_probe(struct map_info *map);
22 static struct lpddr_private *lpddr_probe_chip(struct map_info *map);
23 static int lpddr_pfow_present(struct map_info *map,
44 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) in lpddr_get_qinforec_pos() argument
48 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos()
58 printk(KERN_ERR"%s qinfo id string is wrong! \n", map->name); in lpddr_get_qinforec_pos()
63 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) in lpddr_info_query() argument
66 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query()
[all …]
/linux/kernel/dma/
H A Dmap_benchmark.c38 struct map_benchmark_data *map = data; in map_benchmark_thread() local
39 int npages = map->bparam.granule; in map_benchmark_thread()
58 if (map->dir != DMA_FROM_DEVICE) in map_benchmark_thread()
62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); in map_benchmark_thread()
63 if (unlikely(dma_mapping_error(map->dev, dma_addr))) { in map_benchmark_thread()
65 dev_name(map->dev)); in map_benchmark_thread()
73 ndelay(map->bparam.dma_trans_ns); in map_benchmark_thread()
76 dma_unmap_single(map->dev, dma_addr, size, map->dir); in map_benchmark_thread()
87 atomic64_add(map_100ns, &map->sum_map_100ns); in map_benchmark_thread()
88 atomic64_add(unmap_100ns, &map->sum_unmap_100ns); in map_benchmark_thread()
[all …]
/linux/kernel/trace/
H A Dtracing_map.c3 * tracing_map - lock-free map for tracing
7 * tracing_map implementation inspired by lock-free map algorithms
37 * tracing_map_add_sum_field() when the tracing map was set up.
51 * call to tracing_map_add_sum_field() when the tracing map was set
69 * tracing_map_add_var() when the tracing map was set up.
84 * when the tracing map was set up.
98 * call to tracing_map_add_var() when the tracing map was set
116 * tracing_map_add_var() when the tracing map was set up. The reset
202 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field() argument
207 if (map->n_fields < TRACING_MAP_FIELDS_MAX) { in tracing_map_add_field()
[all …]
/linux/drivers/xen/
H A Dgntdev.c67 static void unmap_grant_pages(struct gntdev_grant_map *map,
83 struct gntdev_grant_map *map; in gntdev_print_maps() local
86 list_for_each_entry(map, &priv->maps, next) in gntdev_print_maps()
88 map->index, map->count, in gntdev_print_maps()
89 map->index == text_index && text ? text : ""); in gntdev_print_maps()
93 static void gntdev_free_map(struct gntdev_grant_map *map) in gntdev_free_map() argument
95 if (map == NULL) in gntdev_free_map()
99 if (map->dma_vaddr) { in gntdev_free_map()
102 args.dev = map->dma_dev; in gntdev_free_map()
103 args.coherent = !!(map->dma_flags & GNTDEV_DMA_FLAG_COHERENT); in gntdev_free_map()
[all …]
/linux/drivers/ras/amd/atl/
H A Dmap.c5 * map.c : Functions to read and decode DRAM address maps
17 ctx->map.intlv_mode = FIELD_GET(DF2_INTLV_NUM_CHAN, ctx->map.base); in df2_get_intlv_mode()
19 if (ctx->map.intlv_mode == 8) in df2_get_intlv_mode()
20 ctx->map.intlv_mode = DF2_2CHAN_HASH; in df2_get_intlv_mode()
22 if (ctx->map.intlv_mode != NONE && in df2_get_intlv_mode()
23 ctx->map.intlv_mode != NOHASH_2CHAN && in df2_get_intlv_mode()
24 ctx->map.intlv_mode != DF2_2CHAN_HASH) in df2_get_intlv_mode()
32 ctx->map.intlv_mode = FIELD_GET(DF3_INTLV_NUM_CHAN, ctx->map.base); in df3_get_intlv_mode()
38 ctx->map.intlv_mode = FIELD_GET(DF3p5_INTLV_NUM_CHAN, ctx->map.base); in df3p5_get_intlv_mode()
40 if (ctx->map.intlv_mode == DF3_6CHAN) in df3p5_get_intlv_mode()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c49 struct hashmap *map; in test_hashmap_generic() local
51 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic()
52 if (!ASSERT_OK_PTR(map, "hashmap__new")) in test_hashmap_generic()
59 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
65 err = hashmap__add(map, k, v); in test_hashmap_generic()
67 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
83 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
84 "invalid map size: %zu\n", hashmap__size(map))) in test_hashmap_generic()
86 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
[all …]
/linux/tools/testing/selftests/mm/
H A Dmlock2-tests.c166 static int unlock_lock_check(char *map) in lock_check()
168 if (is_vmflag_set((unsigned long)map, LOCKED)) { in lock_check()
178 char *map;
181 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in unlock_lock_check()
183 if (map == MAP_FAILED) in unlock_lock_check()
186 if (mlock2_(map, 2 * page_size, 0)) { in unlock_lock_check()
187 munmap(map, 2 * page_size); in unlock_lock_check()
191 ksft_test_result(lock_check((unsigned long)map), "%s: Locked\n", __func__); in test_mlock_lock() local
194 if (munlock(map, 2 * page_size)) { in test_mlock_lock()
195 munmap(map, in test_mlock_lock()
179 unlock_lock_check(char * map) unlock_lock_check() argument
216 onfault_check(char * map) onfault_check() argument
227 unlock_onfault_check(char * map) unlock_onfault_check() argument
242 char *map; test_mlock_onfault() local
269 char *map; test_lock_onfault_of_present() local
292 char *map; test_munlockall0() local
318 char *map; test_munlockall1() local
358 void *map; test_vma_management() local
444 void *map; main() local
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dmap_ptr_kern.c38 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields() argument
41 VERIFY(map->map_type == g_map_type); in check_bpf_map_fields()
42 VERIFY(map->key_size == key_size); in check_bpf_map_fields()
43 VERIFY(map->value_size == value_size); in check_bpf_map_fields()
44 VERIFY(map->max_entries == max_entries); in check_bpf_map_fields()
45 VERIFY(map->id > 0); in check_bpf_map_fields()
92 struct bpf_map map; member
106 __s64 bpf_map_sum_elem_count(struct bpf_map *map) __ksym;
111 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local
114 VERIFY(check_default_noinline(&hash->map, map)); in check_hash()
[all …]
/linux/drivers/md/dm-vdo/indexer/
H A Dindex-page-map.c6 #include "index-page-map.h"
20 * The index page map is conceptually a two-dimensional array indexed by chapter number and index
39 struct index_page_map *map; in uds_make_index_page_map() local
41 result = vdo_allocate(1, struct index_page_map, "page map", &map); in uds_make_index_page_map()
45 map->geometry = geometry; in uds_make_index_page_map()
46 map->entries_per_chapter = geometry->index_pages_per_chapter - 1; in uds_make_index_page_map()
47 result = vdo_allocate(get_entry_count(geometry), u16, "Index Page Map Entries", in uds_make_index_page_map()
48 &map->entries); in uds_make_index_page_map()
50 uds_free_index_page_map(map); in uds_make_index_page_map()
54 *map_ptr = map; in uds_make_index_page_map()
[all …]
/linux/tools/lib/perf/
H A Dmmap.c19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() argument
23 map->fd = -1; in perf_mmap__init()
24 map->overwrite = overwrite; in perf_mmap__init()
25 map->unmap_cb = unmap_cb; in perf_mmap__init()
26 refcount_set(&map->refcnt, 0); in perf_mmap__init()
28 prev->next = map; in perf_mmap__init()
31 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() argument
33 return map->mask + 1 + page_size; in perf_mmap__mmap_len()
36 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() argument
39 map in perf_mmap__mmap()
53 perf_mmap__munmap(struct perf_mmap * map) perf_mmap__munmap() argument
70 perf_mmap__get(struct perf_mmap * map) perf_mmap__get() argument
75 perf_mmap__put(struct perf_mmap * map) perf_mmap__put() argument
88 perf_mmap__read_head(struct perf_mmap * map) perf_mmap__read_head() argument
93 perf_mmap__empty(struct perf_mmap * map) perf_mmap__empty() argument
100 perf_mmap__consume(struct perf_mmap * map) perf_mmap__consume() argument
181 perf_mmap__read_init(struct perf_mmap * map) perf_mmap__read_init() argument
198 perf_mmap__read_done(struct perf_mmap * map) perf_mmap__read_done() argument
210 perf_mmap__read(struct perf_mmap * map,u64 * startp,u64 end) perf_mmap__read() argument
272 perf_mmap__read_event(struct perf_mmap * map) perf_mmap__read_event() argument
480 perf_mmap__read_self(struct perf_mmap * map,struct perf_counts_values * count) perf_mmap__read_self() argument
[all...]

12345678910>>...186