Home
last modified time | relevance | path

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

12345678910>>...104

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/perf/util/
Dmap.h19 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument
51 static inline struct dso *map__dso(const struct map *map) in map__dso()
56 static inline u64 map__map_ip(const struct map *map, u64 ip) in map__map_ip()
61 static inline u64 map__unmap_ip(const struct map *map, u64 ip) in map__unmap_ip()
66 static inline void *map__map_ip_ptr(struct map *map) in map__map_ip_ptr()
71 static inline void* map__unmap_ip_ptr(struct map *map) in map__unmap_ip_ptr()
76 static inline u64 map__start(const struct map *map) in map__start()
81 static inline u64 map__end(const struct map *map) in map__end()
86 static inline u64 map__pgoff(const struct map *map) in map__pgoff()
91 static inline u64 map__reloc(const struct map *map) in map__reloc()
[all …]
Dmap.c105 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init()
237 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
244 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map()
251 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog()
268 bool __map__is_bpf_image(const struct map *map) in __map__is_bpf_image()
285 bool __map__is_ool(const struct map *map) in __map__is_ool()
292 bool map__has_symbols(const struct map *map) in map__has_symbols()
297 static void map__exit(struct map *map) in map__exit()
303 void map__delete(struct map *map) in map__delete()
309 void map__put(struct map *map) in map__put()
[all …]
Dhashmap.c38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
63 void hashmap__clear(struct hashmap *map) in hashmap__clear()
76 void hashmap__free(struct hashmap *map) in hashmap__free()
85 size_t hashmap__size(const struct hashmap *map) in hashmap__size()
90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity()
95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow()
101 static int hashmap_grow(struct hashmap *map) in hashmap_grow()
130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry()
154 int hashmap_insert(struct hashmap *map, long key, long value, in hashmap_insert()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dmap.h18 struct map { struct
32 u64 (*map_ip)(struct map *, u64); argument
34 u64 (*unmap_ip)(struct map *, u64); argument
43 struct kmap *__map__kmap(struct map *map); argument
47 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip()
52 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip()
62 static inline size_t map__size(const struct map *map) in map__size()
83 #define map__for_each_symbol(map, pos, n) \ argument
93 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
100 #define map__for_each_symbol_by_name(map, sym_name, pos) \ argument
[all …]
Dmap.c116 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init()
135 struct map *map = malloc(sizeof(*map)); in map__new() local
212 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local
224 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
231 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map()
238 bool __map__is_bpf_prog(const struct map *map) in __map__is_bpf_prog()
254 bool __map__is_bpf_image(const struct map *map) in __map__is_bpf_image()
270 bool __map__is_ool(const struct map *map) in __map__is_ool()
275 bool map__has_symbols(const struct map *map) in map__has_symbols()
280 static void map__exit(struct map *map) in map__exit()
[all …]
Dhashmap.c38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
63 void hashmap__clear(struct hashmap *map) in hashmap__clear()
76 void hashmap__free(struct hashmap *map) in hashmap__free()
85 size_t hashmap__size(const struct hashmap *map) in hashmap__size()
90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity()
95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow()
101 static int hashmap_grow(struct hashmap *map) in hashmap_grow()
130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry()
154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c42 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields()
98 struct bpf_map map; member
115 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local
137 struct bpf_map map; member
151 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local
183 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local
200 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local
217 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local
234 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local
242 struct bpf_map map; member
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c38 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields()
92 struct bpf_map map; member
111 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local
136 struct bpf_map map; member
150 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local
182 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local
199 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local
216 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local
233 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local
241 struct bpf_map map; member
[all …]
/kernel/linux/linux-6.6/kernel/bpf/
Darraymap.c166 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
177 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
191 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
208 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
241 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
252 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in percpu_array_map_lookup_percpu_elem()
266 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
294 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
313 static long array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
352 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
[all …]
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()
34 static bool attach_type_isolated(const struct bpf_map *map) 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()
67 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup()
102 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
134 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
144 static long cgroup_storage_update_elem(struct bpf_map *map, void *key, in cgroup_storage_update_elem()
185 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_copy() local
214 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_update() 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()
87 static void queue_stack_map_free(struct bpf_map *map) in queue_stack_map_free()
94 static long __queue_map_get(struct bpf_map *map, void *value, bool delete) in __queue_map_get()
128 static long __stack_map_get(struct bpf_map *map, void *value, bool delete) in __stack_map_get()
165 static long queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem()
171 static long stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem()
177 static long queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem()
183 static long stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem()
189 static long queue_stack_map_push_elem(struct bpf_map *map, void *value, in queue_stack_map_push_elem()
[all …]
/kernel/linux/linux-5.10/tools/lib/perf/
Dmmap.c16 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init()
27 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len()
32 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap()
49 void perf_mmap__munmap(struct perf_mmap *map) in perf_mmap__munmap()
61 void perf_mmap__get(struct perf_mmap *map) in perf_mmap__get()
66 void perf_mmap__put(struct perf_mmap *map) in perf_mmap__put()
79 u64 perf_mmap__read_head(struct perf_mmap *map) in perf_mmap__read_head()
84 static bool perf_mmap__empty(struct perf_mmap *map) in perf_mmap__empty()
91 void perf_mmap__consume(struct perf_mmap *map) in perf_mmap__consume()
172 int perf_mmap__read_init(struct perf_mmap *map) in perf_mmap__read_init()
[all …]
/kernel/linux/linux-6.6/drivers/base/regmap/
Dregmap.c36 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log()
41 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log()
74 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table()
90 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable()
104 bool regmap_cached(struct regmap *map, unsigned int reg) in regmap_cached()
127 bool regmap_readable(struct regmap *map, unsigned int reg) in regmap_readable()
147 bool regmap_volatile(struct regmap *map, unsigned int reg) in regmap_volatile()
164 bool regmap_precious(struct regmap *map, unsigned int reg) in regmap_precious()
178 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg) in regmap_writeable_noinc()
189 bool regmap_readable_noinc(struct regmap *map, unsigned int reg) in regmap_readable_noinc()
[all …]
Dregcache.c24 static int regcache_hw_init(struct regmap *map) in regcache_hw_init()
113 int regcache_init(struct regmap *map, const struct regmap_config *config) in regcache_init()
210 void regcache_exit(struct regmap *map) in regcache_exit()
237 int regcache_read(struct regmap *map, in regcache_read()
268 int regcache_write(struct regmap *map, in regcache_write()
282 bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg, in regcache_reg_needs_sync()
301 static int regcache_default_sync(struct regmap *map, unsigned int min, in regcache_default_sync()
353 int regcache_sync(struct regmap *map) in regcache_sync()
446 int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
504 int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
[all …]
/kernel/linux/linux-5.10/drivers/base/regmap/
Dregmap.c36 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log()
41 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log()
74 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table()
90 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable()
104 bool regmap_cached(struct regmap *map, unsigned int reg) in regmap_cached()
127 bool regmap_readable(struct regmap *map, unsigned int reg) in regmap_readable()
147 bool regmap_volatile(struct regmap *map, unsigned int reg) in regmap_volatile()
164 bool regmap_precious(struct regmap *map, unsigned int reg) in regmap_precious()
178 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg) in regmap_writeable_noinc()
189 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()
411 int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
469 int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
[all …]
/kernel/linux/linux-5.10/kernel/bpf/
Darraymap.c180 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
191 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
205 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
222 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
255 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
266 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
293 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
312 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
349 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
388 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
27 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage()
32 static bool attach_type_isolated(const struct bpf_map *map) in attach_type_isolated()
37 static int bpf_cgroup_storage_key_cmp(const struct bpf_cgroup_storage_map *map, in bpf_cgroup_storage_key_cmp()
65 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup()
100 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
132 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
142 static int cgroup_storage_update_elem(struct bpf_map *map, void *key, in cgroup_storage_update_elem()
184 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_copy() local
213 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_update() local
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/lib/bpf/
Dhashmap.c38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init()
55 struct hashmap *map = malloc(sizeof(struct hashmap)); in hashmap__new() local
63 void hashmap__clear(struct hashmap *map) in hashmap__clear()
76 void hashmap__free(struct hashmap *map) in hashmap__free()
85 size_t hashmap__size(const struct hashmap *map) in hashmap__size()
90 size_t hashmap__capacity(const struct hashmap *map) in hashmap__capacity()
95 static bool hashmap_needs_to_grow(struct hashmap *map) in hashmap_needs_to_grow()
101 static int hashmap_grow(struct hashmap *map) in hashmap_grow()
130 static bool hashmap_find_entry(const struct hashmap *map, in hashmap_find_entry()
154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
[all …]

12345678910>>...104