Home
last modified time | relevance | path

Searched defs:map (Results 1 – 25 of 1034) sorted by relevance

12345678910>>...42

/Linux-v5.4/tools/perf/util/
Dmap.h21 struct map { struct
40 u64 (*map_ip)(struct map *, u64); argument
42 u64 (*unmap_ip)(struct map *, u64); argument
45 struct map_groups *groups; argument
51 struct kmap *__map__kmap(struct map *map); argument
55 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip()
60 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip()
70 static inline size_t map__size(const struct map *map) in map__size()
91 #define map__for_each_symbol(map, pos, n) \ argument
101 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
[all …]
Dmap.c133 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init()
153 struct map *map = malloc(sizeof(*map)); in map__new() local
235 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local
256 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
261 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map()
268 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog()
284 bool map__has_symbols(const struct map *map) in map__has_symbols()
289 static void map__exit(struct map *map) in map__exit()
295 void map__delete(struct map *map) in map__delete()
301 void map__put(struct map *map) in map__put()
[all …]
Dmmap.c26 size_t perf_mmap__mmap_len(struct mmap *map) in perf_mmap__mmap_len()
32 static union perf_event *perf_mmap__read(struct mmap *map, in perf_mmap__read()
86 union perf_event *perf_mmap__read_event(struct mmap *map) in perf_mmap__read_event()
108 static bool perf_mmap__empty(struct mmap *map) in perf_mmap__empty()
113 void perf_mmap__get(struct mmap *map) in perf_mmap__get()
118 void perf_mmap__put(struct mmap *map) in perf_mmap__put()
126 void perf_mmap__consume(struct mmap *map) in perf_mmap__consume()
165 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled()
171 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc()
183 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
[all …]
/Linux-v5.4/include/linux/mtd/
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-v5.4/net/sctp/
Dtsnmap.c35 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init()
57 void sctp_tsnmap_free(struct sctp_tsnmap *map) in sctp_tsnmap_free()
69 int sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn) in sctp_tsnmap_check()
95 int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn, in sctp_tsnmap_mark()
142 static void sctp_tsnmap_iter_init(const struct sctp_tsnmap *map, in sctp_tsnmap_iter_init()
152 static int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map, in sctp_tsnmap_next_gap_ack()
190 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn) in sctp_tsnmap_skip()
228 static void sctp_tsnmap_update(struct sctp_tsnmap *map) in sctp_tsnmap_update()
247 __u16 sctp_tsnmap_pending(struct sctp_tsnmap *map) in sctp_tsnmap_pending()
272 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, in sctp_tsnmap_find_gap_ack()
[all …]
/Linux-v5.4/drivers/base/regmap/
Dregmap.c35 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log()
40 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log()
73 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table()
89 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable()
103 bool regmap_cached(struct regmap *map, unsigned int reg) in regmap_cached()
126 bool regmap_readable(struct regmap *map, unsigned int reg) in regmap_readable()
146 bool regmap_volatile(struct regmap *map, unsigned int reg) in regmap_volatile()
163 bool regmap_precious(struct regmap *map, unsigned int reg) in regmap_precious()
177 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg) in regmap_writeable_noinc()
188 bool regmap_readable_noinc(struct regmap *map, unsigned int reg) in regmap_readable_noinc()
[all …]
Dregcache.c26 static int regcache_hw_init(struct regmap *map) in regcache_hw_init()
115 int regcache_init(struct regmap *map, const struct regmap_config *config) in regcache_init()
206 void regcache_exit(struct regmap *map) in regcache_exit()
233 int regcache_read(struct regmap *map, in regcache_read()
264 int regcache_write(struct regmap *map, in regcache_write()
278 static bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg, in regcache_reg_needs_sync()
294 static int regcache_default_sync(struct regmap *map, unsigned int min, in regcache_default_sync()
339 int regcache_sync(struct regmap *map) in regcache_sync()
408 int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
463 int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
[all …]
Dregmap-debugfs.c19 struct regmap *map; member
39 struct regmap *map = file->private_data; in regmap_name_read_file() local
68 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache()
81 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable()
96 static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, in regmap_debugfs_get_dump_start()
182 static inline void regmap_calc_tot_len(struct regmap *map, in regmap_calc_tot_len()
194 static int regmap_next_readable_reg(struct regmap *map, int reg) in regmap_next_readable_reg()
216 static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from, in regmap_read_debugfs()
285 struct regmap *map = file->private_data; in regmap_map_read_file() local
307 struct regmap *map = file->private_data; in regmap_map_write_file() local
[all …]
Dregcache-rbtree.c40 struct regmap *map, in regcache_rbtree_get_base_top_reg()
48 static unsigned int regcache_rbtree_get_register(struct regmap *map, in regcache_rbtree_get_register()
54 static void regcache_rbtree_set_register(struct regmap *map, in regcache_rbtree_set_register()
62 static struct regcache_rbtree_node *regcache_rbtree_lookup(struct regmap *map, in regcache_rbtree_lookup()
96 static int regcache_rbtree_insert(struct regmap *map, struct rb_root *root, in regcache_rbtree_insert()
134 struct regmap *map = s->private; in rbtree_show() local
178 static void rbtree_debugfs_init(struct regmap *map) in rbtree_debugfs_init()
184 static int regcache_rbtree_init(struct regmap *map) in regcache_rbtree_init()
213 static int regcache_rbtree_exit(struct regmap *map) in regcache_rbtree_exit()
242 static int regcache_rbtree_read(struct regmap *map, in regcache_rbtree_read()
[all …]
/Linux-v5.4/kernel/bpf/
Darraymap.c143 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
154 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
168 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
185 static u32 array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
215 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
226 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
253 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
272 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
309 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
348 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
[all …]
Dlocal_storage.c20 struct bpf_map map; member
28 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage()
49 struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, in cgroup_storage_lookup()
84 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
116 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
127 static int cgroup_storage_update_elem(struct bpf_map *map, void *_key, in cgroup_storage_update_elem()
173 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_copy() local
203 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_update() local
238 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_get_next_key() local
274 struct bpf_cgroup_storage_map *map; in cgroup_storage_map_alloc() local
[all …]
Dqueue_stack_maps.c17 struct bpf_map map; member
25 static struct bpf_queue_stack *bpf_queue_stack(struct bpf_map *map) in bpf_queue_stack()
100 static void queue_stack_map_free(struct bpf_map *map) in queue_stack_map_free()
114 static int __queue_map_get(struct bpf_map *map, void *value, bool delete) in __queue_map_get()
143 static int __stack_map_get(struct bpf_map *map, void *value, bool delete) in __stack_map_get()
175 static int queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem()
181 static int stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem()
187 static int queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem()
193 static int stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem()
199 static int queue_stack_map_push_elem(struct bpf_map *map, void *value, in queue_stack_map_push_elem()
[all …]
Dxskmap.c13 struct bpf_map map; member
19 int xsk_map_inc(struct xsk_map *map) in xsk_map_inc()
27 void xsk_map_put(struct xsk_map *map) in xsk_map_put()
32 static struct xsk_map_node *xsk_map_node_alloc(struct xsk_map *map, in xsk_map_node_alloc()
135 static void xsk_map_free(struct bpf_map *map) in xsk_map_free()
146 static int xsk_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in xsk_map_get_next_key()
163 struct xdp_sock *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) in __xsk_map_lookup_elem()
175 int __xsk_map_redirect(struct bpf_map *map, struct xdp_buff *xdp, in __xsk_map_redirect()
192 void __xsk_map_flush(struct bpf_map *map) in __xsk_map_flush()
204 static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) in xsk_map_lookup_elem()
[all …]
/Linux-v5.4/drivers/mtd/maps/
Dpci.c30 struct map_info map; member
39 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read8() local
47 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read32() local
55 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_copyfrom() local
61 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_write8() local
67 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_write32() local
73 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_copyto() local
88 intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map) in intel_iq80310_init()
116 intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map) in intel_iq80310_exit()
124 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) in intel_iq80310_translate()
[all …]
Ddc21285.c54 static map_word dc21285_read8(struct map_info *map, unsigned long ofs) in dc21285_read8()
61 static map_word dc21285_read16(struct map_info *map, unsigned long ofs) in dc21285_read16()
68 static map_word dc21285_read32(struct map_info *map, unsigned long ofs) in dc21285_read32()
75 static void dc21285_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) in dc21285_copy_from()
80 static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write8()
89 static void dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write16()
98 static void dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write32()
105 static void dc21285_copy_to_32(struct map_info *map, unsigned long to, const void *from, ssize_t le… in dc21285_copy_to_32()
117 static void dc21285_copy_to_16(struct map_info *map, unsigned long to, const void *from, ssize_t le… in dc21285_copy_to_16()
129 static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) in dc21285_copy_to_8()
/Linux-v5.4/tools/lib/bpf/
Dhashmap.c32 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init()
49 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
57 void hashmap__clear(struct hashmap *map) in hashmap__clear()
63 void hashmap__free(struct hashmap *map) in hashmap__free()
72 size_t hashmap__size(const struct hashmap *map) in hashmap__size()
77 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity()
82 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow()
88 static int hashmap_grow(struct hashmap *map) in hashmap_grow()
118 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry()
142 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
[all …]
/Linux-v5.4/drivers/mtd/chips/
Dcfi_cmdset_0002.c126 static void cfi_check_err_status(struct map_info *map, struct flchip *chip, in cfi_check_err_status()
214 struct map_info *map = mtd->priv; in fixup_amd_bootblock() local
264 struct map_info *map = mtd->priv; in fixup_use_write_buffers() local
276 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri() local
314 struct map_info *map = mtd->priv; in fixup_use_erase_chip() local
336 struct map_info *map = mtd->priv; in fixup_old_sst_eraseregion() local
350 struct map_info *map = mtd->priv; in fixup_sst39vf() local
361 struct map_info *map = mtd->priv; in fixup_sst39vf_rev_b() local
374 struct map_info *map = mtd->priv; in fixup_sst38vf640x_sectorsize() local
390 struct map_info *map = mtd->priv; in fixup_s29gl064n_sectors() local
[all …]
Dcfi_cmdset_0001.c172 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri() local
212 struct map_info *map = mtd->priv; in fixup_at49bv640dx_lock() local
224 struct map_info *map = mtd->priv; in fixup_intel_strataflash() local
237 struct map_info *map = mtd->priv; in fixup_no_write_suspend() local
250 struct map_info *map = mtd->priv; in fixup_st_m28w320ct() local
259 struct map_info *map = mtd->priv; in fixup_st_m28w320cb() local
279 struct map_info *map = mtd->priv; in fixup_LH28F640BF() local
299 struct map_info *map = mtd->priv; in fixup_use_point() local
308 struct map_info *map = mtd->priv; in fixup_use_write_buffers() local
322 struct map_info *map = mtd->priv; in fixup_unlock_powerup_lock() local
[all …]
/Linux-v5.4/include/drm/
Ddrm_os_linux.h16 #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) argument
18 #define DRM_READ16(map, offset) readw(((void __iomem *)(map)->handle) + (offset)) argument
20 #define DRM_READ32(map, offset) readl(((void __iomem *)(map)->handle) + (offset)) argument
22 #define DRM_WRITE8(map, offset, val) writeb(val, ((void __iomem *)(map)->handle) + (offset)) argument
24 #define DRM_WRITE16(map, offset, val) writew(val, ((void __iomem *)(map)->handle) + (offset)) argument
26 #define DRM_WRITE32(map, offset, val) writel(val, ((void __iomem *)(map)->handle) + (offset)) argument
29 #define DRM_READ64(map, offset) readq(((void __iomem *)(map)->handle) + (offset)) argument
31 #define DRM_WRITE64(map, offset, val) writeq(val, ((void __iomem *)(map)->handle) + (offset)) argument
/Linux-v5.4/net/rds/
Dcong.c109 struct rds_cong_map *map; in rds_cong_tree_walk() local
140 struct rds_cong_map *map; in rds_cong_from_addr() local
217 void rds_cong_queue_updates(struct rds_cong_map *map) in rds_cong_queue_updates()
253 void rds_cong_map_updated(struct rds_cong_map *map, uint64_t portmask) in rds_cong_map_updated()
299 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) in rds_cong_set_bit()
313 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) in rds_cong_clear_bit()
327 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) in rds_cong_test_bit()
351 struct rds_cong_map *map; in rds_cong_remove_socket() local
368 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait()
402 struct rds_cong_map *map; in rds_cong_exit() local
[all …]
/Linux-v5.4/tools/perf/lib/
Dthreadmap.c10 static void perf_thread_map__reset(struct perf_thread_map *map, int start, int nr) in perf_thread_map__reset()
18 struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr) in perf_thread_map__realloc()
35 void perf_thread_map__set_pid(struct perf_thread_map *map, int thread, pid_t pid) in perf_thread_map__set_pid()
40 char *perf_thread_map__comm(struct perf_thread_map *map, int thread) in perf_thread_map__comm()
70 struct perf_thread_map *perf_thread_map__get(struct perf_thread_map *map) in perf_thread_map__get()
77 void perf_thread_map__put(struct perf_thread_map *map) in perf_thread_map__put()
88 pid_t perf_thread_map__pid(struct perf_thread_map *map, int thread) in perf_thread_map__pid()
/Linux-v5.4/net/core/
Dsock_map.c15 struct bpf_map map; member
66 struct bpf_map *map; in sock_map_get_from_fd() local
97 struct bpf_map *map, void *link_raw) in sock_map_add_link()
115 struct bpf_map *map = link->map; in sock_map_del_link() local
142 static int sock_map_link(struct bpf_map *map, struct sk_psock_progs *progs, in sock_map_link()
231 static void sock_map_free(struct bpf_map *map) in sock_map_free()
256 static void sock_map_release_progs(struct bpf_map *map) in sock_map_release_progs()
261 static struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key) in __sock_map_lookup_elem()
272 static void *sock_map_lookup(struct bpf_map *map, void *key) in sock_map_lookup()
297 static void sock_map_delete_from_link(struct bpf_map *map, struct sock *sk, in sock_map_delete_from_link()
[all …]
/Linux-v5.4/net/netfilter/ipset/
Dip_set_bitmap_gen.h33 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument
38 struct mtype *map = set->data; in mtype_gc_init() local
47 struct mtype *map = set->data; in mtype_ext_cleanup() local
58 struct mtype *map = set->data; in mtype_destroy() local
74 struct mtype *map = set->data; in mtype_flush() local
85 mtype_memsize(const struct mtype *map, size_t dsize) in mtype_memsize()
94 const struct mtype *map = set->data; in mtype_head() local
119 struct mtype *map = set->data; in mtype_test() local
133 struct mtype *map = set->data; in mtype_add() local
178 struct mtype *map = set->data; in mtype_del() local
[all …]
/Linux-v5.4/drivers/xen/
Dgntdev.c84 struct gntdev_grant_map *map; in gntdev_print_maps() local
94 static void gntdev_free_map(struct gntdev_grant_map *map) in gntdev_free_map()
207 struct gntdev_grant_map *map; in gntdev_add_map() local
225 struct gntdev_grant_map *map; in gntdev_find_map_index() local
237 void gntdev_put_map(struct gntdev_priv *priv, struct gntdev_grant_map *map) in gntdev_put_map()
267 struct gntdev_grant_map *map = data; in find_grant_ptes() local
299 int gntdev_map_grant_pages(struct gntdev_grant_map *map) in gntdev_map_grant_pages()
364 static int __unmap_grant_pages(struct gntdev_grant_map *map, int offset, in __unmap_grant_pages()
400 static int unmap_grant_pages(struct gntdev_grant_map *map, int offset, in unmap_grant_pages()
433 struct gntdev_grant_map *map = vma->vm_private_data; in gntdev_vma_open() local
[all …]
/Linux-v5.4/kernel/trace/
Dtracing_map.c201 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field()
226 int tracing_map_add_sum_field(struct tracing_map *map) in tracing_map_add_sum_field()
243 int tracing_map_add_var(struct tracing_map *map) in tracing_map_add_var()
269 int tracing_map_add_key_field(struct tracing_map *map, in tracing_map_add_key_field()
400 static struct tracing_map_elt *tracing_map_elt_alloc(struct tracing_map *map) in tracing_map_elt_alloc()
449 static struct tracing_map_elt *get_free_elt(struct tracing_map *map) in get_free_elt()
464 static void tracing_map_free_elts(struct tracing_map *map) in tracing_map_free_elts()
480 static int tracing_map_alloc_elts(struct tracing_map *map) in tracing_map_alloc_elts()
513 __tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only) in __tracing_map_insert()
631 struct tracing_map_elt *tracing_map_insert(struct tracing_map *map, void *key) in tracing_map_insert()
[all …]

12345678910>>...42