Home
last modified time | relevance | path

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

12345678910>>...75

/kernel/linux/linux-4.19/include/linux/mtd/
Dmap.h36 #define map_bankwidth(map) 1 argument
37 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) argument
38 #define map_bankwidth_is_large(map) (0) argument
39 #define map_words(map) (1) argument
42 #define map_bankwidth_is_1(map) (0) argument
48 # define map_bankwidth(map) ((map)->bankwidth) argument
50 # define map_bankwidth(map) 2 argument
51 # define map_bankwidth_is_large(map) (0) argument
52 # define map_words(map) (1) argument
54 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) argument
[all …]
/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-4.19/tools/perf/util/
Dmap.h23 struct map { struct
41 u64 (*map_ip)(struct map *, u64); argument
43 u64 (*unmap_ip)(struct map *, u64); argument
46 struct map_groups *groups; argument
52 struct kmap { argument
86 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip()
91 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip()
101 static inline size_t map__size(const struct map *map) in map__size()
122 #define map__for_each_symbol(map, pos, n) \ argument
132 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
[all …]
Dmap.c128 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init()
148 struct map *map = malloc(sizeof(*map)); in map__new() local
230 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local
251 bool __map__is_kernel(const struct map *map) in __map__is_kernel()
256 bool __map__is_extra_kernel_map(const struct map *map) in __map__is_extra_kernel_map()
263 bool map__has_symbols(const struct map *map) in map__has_symbols()
268 static void map__exit(struct map *map) in map__exit()
274 void map__delete(struct map *map) in map__delete()
280 void map__put(struct map *map) in map__put()
286 void map__fixup_start(struct map *map) in map__fixup_start()
[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-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-4.19/drivers/base/regmap/
Dregmap.c68 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table()
84 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable()
98 bool regmap_cached(struct regmap *map, unsigned int reg) in regmap_cached()
121 bool regmap_readable(struct regmap *map, unsigned int reg) in regmap_readable()
141 bool regmap_volatile(struct regmap *map, unsigned int reg) in regmap_volatile()
158 bool regmap_precious(struct regmap *map, unsigned int reg) in regmap_precious()
172 bool regmap_readable_noinc(struct regmap *map, unsigned int reg) in regmap_readable_noinc()
183 static bool regmap_volatile_range(struct regmap *map, unsigned int reg, in regmap_volatile_range()
195 static void regmap_format_2_6_write(struct regmap *map, in regmap_format_2_6_write()
203 static void regmap_format_4_12_write(struct regmap *map, in regmap_format_4_12_write()
[all …]
Dregcache.c30 static int regcache_hw_init(struct regmap *map) in regcache_hw_init()
119 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 static bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg, in regcache_reg_needs_sync()
298 static int regcache_default_sync(struct regmap *map, unsigned int min, in regcache_default_sync()
343 int regcache_sync(struct regmap *map) in regcache_sync()
412 int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
467 int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
[all …]
/kernel/linux/linux-4.19/kernel/bpf/
Dlocal_storage.c18 struct bpf_map map; member
26 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage()
47 struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, in cgroup_storage_lookup()
82 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
114 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
125 static int cgroup_storage_update_elem(struct bpf_map *map, void *_key, in cgroup_storage_update_elem()
158 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_get_next_key() local
194 struct bpf_cgroup_storage_map *map; in cgroup_storage_map_alloc() local
233 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_map_free() local
241 static int cgroup_storage_delete_elem(struct bpf_map *map, void *key) in cgroup_storage_delete_elem()
[all …]
Darraymap.c152 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
164 static u32 array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
194 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
205 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
232 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
251 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
279 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
318 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
324 static void array_map_free(struct bpf_map *map) in array_map_free()
341 static void array_map_seq_show_elem(struct bpf_map *map, void *key, in array_map_seq_show_elem()
[all …]
/kernel/linux/linux-4.19/net/sctp/
Dtsnmap.c50 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init()
72 void sctp_tsnmap_free(struct sctp_tsnmap *map) in sctp_tsnmap_free()
84 int sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn) in sctp_tsnmap_check()
110 int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn, in sctp_tsnmap_mark()
157 static void sctp_tsnmap_iter_init(const struct sctp_tsnmap *map, in sctp_tsnmap_iter_init()
167 static int sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map, in sctp_tsnmap_next_gap_ack()
205 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn) in sctp_tsnmap_skip()
243 static void sctp_tsnmap_update(struct sctp_tsnmap *map) in sctp_tsnmap_update()
262 __u16 sctp_tsnmap_pending(struct sctp_tsnmap *map) in sctp_tsnmap_pending()
287 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, in sctp_tsnmap_find_gap_ack()
[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-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()
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 …]
/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 …]
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()
/kernel/linux/linux-4.19/drivers/mtd/maps/
Dpci.c33 struct map_info map; member
42 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read8() local
50 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read32() local
58 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_copyfrom() local
64 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_write8() local
70 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_write32() local
76 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_copyto() local
91 intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map) in intel_iq80310_init()
119 intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map) in intel_iq80310_exit()
127 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) in intel_iq80310_translate()
[all …]
/kernel/linux/linux-5.10/kernel/bpf/
Darraymap.c175 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
186 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
200 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
217 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
250 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
261 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
288 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
307 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
344 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
383 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 …]
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()
107 static int __queue_map_get(struct bpf_map *map, void *value, bool delete) in __queue_map_get()
136 static int __stack_map_get(struct bpf_map *map, void *value, bool delete) in __stack_map_get()
168 static int queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem()
174 static int stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem()
180 static int queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem()
186 static int stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem()
192 static int 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/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 …]
/kernel/linux/linux-4.19/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

12345678910>>...75