Home
last modified time | relevance | path

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

12345678910>>...59

/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/tools/perf/util/
H A Dmap.h26 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument
46 static inline struct dso *map__dso(const struct map *map) in 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.c105 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
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.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 …]
H A Dmmap.c39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len()
71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled()
77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc()
89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) in perf_mmap__aio_bind()
126 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc()
135 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
147 static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp) in perf_mmap__aio_mmap()
201 static void perf_mmap__aio_munmap(struct mmap *map) in perf_mmap__aio_munmap()
229 void mmap__munmap(struct mmap *map) in mmap__munmap()
[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()
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 …]
/linux/kernel/bpf/
H A Darraymap.c163 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
174 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
188 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
238 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
250 static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in percpu_array_map_gen_lookup()
281 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in percpu_array_map_lookup_percpu_elem()
295 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
323 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
342 static long array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
[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()
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 …]
H A 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 …]
H A Darena.c44 struct bpf_map map; member
63 static long arena_map_peek_elem(struct bpf_map *map, void *value) in arena_map_peek_elem() argument
68 static long arena_map_push_elem(struct bpf_map *map, void *value, u64 flags) in arena_map_push_elem() argument
73 static long arena_map_pop_elem(struct bpf_map *map, void *value) in arena_map_pop_elem() argument
78 static long arena_map_delete_elem(struct bpf_map *map, void *value) in arena_map_delete_elem() argument
83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in arena_map_get_next_key() argument
164 static void arena_map_free(struct bpf_map *map) in arena_map_free() argument
190 arena_map_lookup_elem(struct bpf_map * map,void * key) arena_map_lookup_elem() argument
195 arena_map_update_elem(struct bpf_map * map,void * key,void * value,u64 flags) arena_map_update_elem() argument
201 arena_map_check_btf(const struct bpf_map * map,const struct btf * btf,const struct btf_type * key_type,const struct btf_type * value_type) arena_map_check_btf() argument
207 arena_map_mem_usage(const struct bpf_map * map) arena_map_mem_usage() argument
232 struct bpf_map *map = vma->vm_file->private_data; arena_vm_close() local
247 struct bpf_map *map = vmf->vma->vm_file->private_data; arena_vm_fault() local
298 struct bpf_map *map = filp->private_data; arena_get_unmapped_area() local
328 arena_map_mmap(struct bpf_map * map,struct vm_area_struct * vma) arena_map_mmap() argument
367 arena_map_direct_value_addr(const struct bpf_map * map,u64 * imm,u32 off) arena_map_direct_value_addr() argument
535 struct bpf_map *map = p__map; bpf_arena_alloc_pages() local
546 struct bpf_map *map = p__map; bpf_arena_free_pages() local
[all...]
H A Dbloom_filter.c16 struct bpf_map map; member
36 static long bloom_map_peek_elem(struct bpf_map *map, void *value) in bloom_map_peek_elem()
51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) in bloom_map_push_elem()
68 static long bloom_map_pop_elem(struct bpf_map *map, void *value) in bloom_map_pop_elem()
73 static long bloom_map_delete_elem(struct bpf_map *map, void *value) in bloom_map_delete_elem()
78 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in bloom_map_get_next_key()
162 static void bloom_map_free(struct bpf_map *map) in bloom_map_free()
170 static void *bloom_map_lookup_elem(struct bpf_map *map, void *key) in bloom_map_lookup_elem()
176 static long bloom_map_update_elem(struct bpf_map *map, void *key, in bloom_map_update_elem()
183 static int bloom_map_check_btf(const struct bpf_map *map, in bloom_map_check_btf()
[all …]
/linux/drivers/base/regmap/
H A 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 …]
H A 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()
212 void regcache_exit(struct regmap *map) in regcache_exit()
239 int regcache_read(struct regmap *map, in regcache_read()
270 int regcache_write(struct regmap *map, in regcache_write()
284 bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg, in regcache_reg_needs_sync()
303 static int regcache_default_sync(struct regmap *map, unsigned int min, in regcache_default_sync()
355 int regcache_sync(struct regmap *map) in regcache_sync()
448 int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
506 int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
[all …]
H A Dregmap-debugfs.c19 struct regmap *map; member
38 struct regmap *map = file->private_data; in regmap_name_read_file() local
67 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache()
80 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable()
95 static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, in regmap_debugfs_get_dump_start()
181 static inline void regmap_calc_tot_len(struct regmap *map, in regmap_calc_tot_len()
193 static int regmap_next_readable_reg(struct regmap *map, int reg) in regmap_next_readable_reg()
215 static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from, in regmap_read_debugfs()
287 struct regmap *map = file->private_data; in regmap_map_read_file() local
309 struct regmap *map = file->private_data; in regmap_map_write_file() local
[all …]
H A Dregmap-kunit.c213 struct regmap *map; in basic_read_write() local
238 struct regmap *map; in bulk_write() local
271 struct regmap *map; bulk_read() local
301 struct regmap *map; read_bypassed() local
365 struct regmap *map; read_bypassed_volatile() local
429 struct regmap *map; write_readonly() local
460 struct regmap *map; read_writeonly() local
496 struct regmap *map; reg_defaults() local
522 struct regmap *map; reg_defaults_read_dev() local
554 struct regmap *map; register_patch() local
602 struct regmap *map; stride() local
672 struct regmap *map; basic_ranges() local
740 struct regmap *map; stress_insert() local
791 struct regmap *map; cache_bypass() local
826 struct regmap *map; cache_sync_marked_dirty() local
861 struct regmap *map; cache_sync_after_cache_only() local
910 struct regmap *map; cache_sync_defaults_marked_dirty() local
959 struct regmap *map; cache_sync_default_after_cache_only() local
1006 struct regmap *map; cache_sync_readonly() local
1044 struct regmap *map; cache_sync_patch() local
1102 struct regmap *map; cache_drop() local
1142 struct regmap *map; cache_drop_with_non_contiguous_ranges() local
1244 struct regmap *map; cache_drop_all_and_sync_marked_dirty() local
1285 struct regmap *map; cache_drop_all_and_sync_no_defaults() local
1327 struct regmap *map; cache_drop_all_and_sync_has_defaults() local
1370 struct regmap *map; cache_present() local
1406 struct regmap *map; cache_range_window_reg() local
1556 struct regmap *map; raw_read_defaults_single() local
1578 struct regmap *map; raw_read_defaults() local
1613 struct regmap *map; raw_write_read_single() local
1636 struct regmap *map; raw_write() local
1695 struct regmap *map; raw_noinc_write() local
1742 struct regmap *map; raw_sync() local
1817 struct regmap *map; raw_ranges() local
[all...]
/linux/net/sctp/
H A 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/drivers/mtd/maps/
H A 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 …]
H A 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/drivers/mtd/chips/
H A Dcfi_cmdset_0002.c129 static int cfi_check_err_status(struct map_info *map, struct flchip *chip, in cfi_check_err_status()
226 struct map_info *map = mtd->priv; in fixup_amd_bootblock() local
276 struct map_info *map = mtd->priv; in fixup_use_write_buffers() local
292 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri() local
330 struct map_info *map = mtd->priv; in fixup_use_erase_chip() local
352 struct map_info *map = mtd->priv; in fixup_old_sst_eraseregion() local
366 struct map_info *map = mtd->priv; in fixup_sst39vf() local
377 struct map_info *map = mtd->priv; in fixup_sst39vf_rev_b() local
390 struct map_info *map = mtd->priv; in fixup_sst38vf640x_sectorsize() local
406 struct map_info *map = mtd->priv; in fixup_s29gl064n_sectors() local
[all …]
H A Dcfi_cmdset_0001.c174 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri() local
214 struct map_info *map = mtd->priv; in fixup_at49bv640dx_lock() local
226 struct map_info *map = mtd->priv; in fixup_intel_strataflash() local
239 struct map_info *map = mtd->priv; in fixup_no_write_suspend() local
252 struct map_info *map = mtd->priv; in fixup_st_m28w320ct() local
261 struct map_info *map = mtd->priv; in fixup_st_m28w320cb() local
281 struct map_info *map = mtd->priv; in fixup_LH28F640BF() local
301 struct map_info *map = mtd->priv; in fixup_use_point() local
310 struct map_info *map = mtd->priv; in fixup_use_write_buffers() local
324 struct map_info *map = mtd->priv; in fixup_unlock_powerup_lock() local
[all …]
/linux/tools/lib/bpf/
H A 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 …]
/linux/net/xdp/
H A Dxskmap.c15 static struct xsk_map_node *xsk_map_node_alloc(struct xsk_map *map, in xsk_map_node_alloc()
35 struct xsk_map *map = node->map; in xsk_map_node_free() local
88 static u64 xsk_map_mem_usage(const struct bpf_map *map) in xsk_map_mem_usage()
96 static void xsk_map_free(struct bpf_map *map) in xsk_map_free()
104 static int xsk_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in xsk_map_get_next_key()
121 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in xsk_map_gen_lookup()
141 static void *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) in __xsk_map_lookup_elem()
151 static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) in xsk_map_lookup_elem()
156 static void *xsk_map_lookup_elem_sys_only(struct bpf_map *map, void *key) in xsk_map_lookup_elem_sys_only()
161 static long xsk_map_update_elem(struct bpf_map *map, void *key, void *value, in xsk_map_update_elem()
[all …]
/linux/net/rds/
H A 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/net/netfilter/ipset/
H A Dip_set_bitmap_gen.h36 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument
41 struct mtype *map = set->data; in mtype_gc_init() local
50 struct mtype *map = set->data; in mtype_ext_cleanup() local
61 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/tools/bpf/bpftool/
H A Dpids.c19 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table()
23 void delete_obj_refs_table(struct hashmap *map) {} in delete_obj_refs_table()
24 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {} in emit_obj_refs_plain()
25 void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json()
31 static void add_ref(struct hashmap *map, struct pid_iter_entry *e) in add_ref()
98 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) in build_obj_refs_table()
182 void delete_obj_refs_table(struct hashmap *map) in delete_obj_refs_table()
200 void emit_obj_refs_json(struct hashmap *map, __u32 id, in emit_obj_refs_json()
233 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) in emit_obj_refs_plain()

12345678910>>...59