Home
last modified time | relevance | path

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

12345678910>>...378

/kernel/linux/linux-6.6/tools/perf/util/
Dmap.h19 DECLARE_RC_STRUCT(map) { in DECLARE_RC_STRUCT() argument
29 u64 (*map_ip)(const struct map *, u64); in DECLARE_RC_STRUCT()
31 u64 (*unmap_ip)(const struct map *, u64); in DECLARE_RC_STRUCT()
40 struct kmap *__map__kmap(struct map *map);
41 struct kmap *map__kmap(struct map *map);
42 struct maps *map__kmaps(struct map *map);
45 u64 map__dso_map_ip(const struct map *map, u64 ip);
47 u64 map__dso_unmap_ip(const struct map *map, u64 ip);
49 u64 identity__map_ip(const struct map *map __maybe_unused, u64 ip);
51 static inline struct dso *map__dso(const struct map *map) in map__dso() argument
[all …]
Dmap.c12 #include "map.h"
105 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
107 map__set_start(map, start); in map__init()
108 map__set_end(map, end); in map__init()
109 map__set_pgoff(map, pgoff); in map__init()
110 map__set_reloc(map, 0); in map__init()
111 map__set_dso(map, dso__get(dso)); in map__init()
112 map__set_map_ip(map, map__dso_map_ip); in map__init()
113 map__set_unmap_ip(map, map__dso_unmap_ip); in map__init()
114 map__set_erange_warned(map, false); in map__init()
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/base/regmap/
Dregcache.c26 static int regcache_hw_init(struct regmap *map) in regcache_hw_init() argument
34 if (!map->num_reg_defaults_raw) in regcache_hw_init()
38 for (count = 0, i = 0; i < map->num_reg_defaults_raw; i++) in regcache_hw_init()
39 if (regmap_readable(map, i * map->reg_stride) && in regcache_hw_init()
40 !regmap_volatile(map, i * map->reg_stride)) in regcache_hw_init()
45 map->cache_bypass = true; in regcache_hw_init()
49 map->num_reg_defaults = count; in regcache_hw_init()
50 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init()
52 if (!map->reg_defaults) in regcache_hw_init()
55 if (!map->reg_defaults_raw) { in regcache_hw_init()
[all …]
Dregmap.c3 // Register map access API
36 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log() argument
38 return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0); in regmap_should_log()
41 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log() argument
45 static int _regmap_update_bits(struct regmap *map, unsigned int reg,
74 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table() argument
90 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable() argument
92 if (map->max_register && reg > map->max_register) in regmap_writeable()
95 if (map->writeable_reg) in regmap_writeable()
96 return map->writeable_reg(map->dev, reg); in regmap_writeable()
[all …]
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 …]
/kernel/linux/linux-6.6/drivers/base/regmap/
Dregcache.c24 static int regcache_hw_init(struct regmap *map) in regcache_hw_init() argument
32 if (!map->num_reg_defaults_raw) in regcache_hw_init()
36 for (count = 0, i = 0; i < map->num_reg_defaults_raw; i++) in regcache_hw_init()
37 if (regmap_readable(map, i * map->reg_stride) && in regcache_hw_init()
38 !regmap_volatile(map, i * map->reg_stride)) in regcache_hw_init()
43 map->cache_bypass = true; in regcache_hw_init()
47 map->num_reg_defaults = count; in regcache_hw_init()
48 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init()
50 if (!map->reg_defaults) in regcache_hw_init()
53 if (!map->reg_defaults_raw) { in regcache_hw_init()
[all …]
Dregmap.c3 // Register map access API
36 static inline bool regmap_should_log(struct regmap *map) in regmap_should_log() argument
38 return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0); in regmap_should_log()
41 static inline bool regmap_should_log(struct regmap *map) { return false; } in regmap_should_log() argument
45 static int _regmap_update_bits(struct regmap *map, unsigned int reg,
74 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table() argument
90 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable() argument
92 if (map->max_register && reg > map->max_register) in regmap_writeable()
95 if (map->writeable_reg) in regmap_writeable()
96 return map->writeable_reg(map->dev, reg); in regmap_writeable()
[all …]
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 …]
Dtrace.h18 TP_PROTO(struct regmap *map, unsigned int reg,
21 TP_ARGS(map, reg, val),
24 __string( name, regmap_name(map) )
30 __assign_str(name, regmap_name(map));
40 TP_PROTO(struct regmap *map, unsigned int reg,
43 TP_ARGS(map, reg, val)
48 TP_PROTO(struct regmap *map, unsigned int reg,
51 TP_ARGS(map, reg, val)
56 TP_PROTO(struct regmap *map, unsigned int reg,
59 TP_ARGS(map, reg, val)
[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
44 struct kmap *map__kmap(struct map *map);
45 struct maps *map__kmaps(struct map *map);
47 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument
49 return ip - map->start + map->pgoff; in map__map_ip()
52 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument
54 return ip + map->start - map->pgoff; in map__unmap_ip()
[all …]
Dmap.c13 #include "map.h"
28 static void __maps__insert(struct maps *maps, struct map *map);
116 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
118 map->start = start; in map__init()
119 map->end = end; in map__init()
120 map->pgoff = pgoff; in map__init()
121 map->reloc = 0; in map__init()
122 map->dso = dso__get(dso); in map__init()
123 map->map_ip = map__map_ip; in map__init()
124 map->unmap_ip = map__unmap_ip; in map__init()
[all …]
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 …]
/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/drivers/mtd/maps/
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 …]
/kernel/linux/linux-5.10/drivers/mtd/maps/
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 …]
/kernel/linux/linux-5.10/net/sctp/
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 …]
/kernel/linux/linux-6.6/net/sctp/
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 …]
/kernel/linux/linux-5.10/tools/lib/bpf/
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 …]
/kernel/linux/linux-6.6/tools/lib/bpf/
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 …]
/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() argument
19 map->fd = -1; in perf_mmap__init()
20 map->overwrite = overwrite; in perf_mmap__init()
21 map->unmap_cb = unmap_cb; in perf_mmap__init()
22 refcount_set(&map->refcnt, 0); in perf_mmap__init()
24 prev->next = map; in perf_mmap__init()
27 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() argument
29 return map->mask + 1 + page_size; in perf_mmap__mmap_len()
32 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() argument
35 map->prev = 0; in perf_mmap__mmap()
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-map.rst2 bpftool-map
13 **bpftool** [*OPTIONS*] **map** *COMMAND*
21 MAP COMMANDS
24 | **bpftool** **map** { **show** | **list** } [*MAP*]
25 | **bpftool** **map create** *FILE* **type** *TYPE* **key** *KEY_SIZE* **value** *VALUE_SIZE* \
26 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \
28 | **bpftool** **map dump** *MAP*
29 | **bpftool** **map update** *MAP* [**key** *DATA*] [**value** *VALUE*] [*UPDATE_FLAGS*]
30 | **bpftool** **map lookup** *MAP* [**key** *DATA*]
31 | **bpftool** **map getnext** *MAP* [**key** *DATA*]
[all …]
/kernel/linux/linux-6.6/tools/bpf/bpftool/Documentation/
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 …]
/kernel/linux/linux-6.6/kernel/bpf/
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_alloc()
[all …]

12345678910>>...378