/linux-6.3-rc2/drivers/base/regmap/ |
A D | regcache.c | 226 map->cache_ops->exit(map); in regcache_exit() 354 map->lock(map->lock_arg); in regcache_sync() 380 ret = map->cache_ops->sync(map, 0, map->max_register); in regcache_sync() 392 map->unlock(map->lock_arg); in regcache_sync() 423 map->lock(map->lock_arg); in regcache_sync_region() 448 map->unlock(map->lock_arg); in regcache_sync_region() 477 map->lock(map->lock_arg); in regcache_drop_region() 483 map->unlock(map->lock_arg); in regcache_drop_region() 503 map->lock(map->lock_arg); in regcache_cache_only() 527 map->lock(map->lock_arg); in regcache_mark_dirty() [all …]
|
A D | regmap.c | 118 map->lock(map->lock_arg); in regmap_cached() 120 map->unlock(map->lock_arg); in regmap_cached() 776 map->lock_arg = map; in __regmap_init() 801 map->lock_arg = map; in __regmap_init() 1205 new->map = map; in __regmap_init() 1798 async->map = map; in _regmap_raw_write_impl() 1840 ret = map->write(map->bus_context, map->work_buf, in _regmap_raw_write_impl() 1933 ret = map->write(map->bus_context, map->work_buf, map->format.buf_size); in _regmap_bus_formatted_write() 1969 return (map->bus || (!map->bus && map->read)) ? map : map->bus_context; in _regmap_map_get_context() 2019 map->lock(map->lock_arg); in regmap_write() [all …]
|
A D | regmap-debugfs.c | 47 if (map->dev && map->dev->driver) in regmap_name_read_file() 187 map->debugfs_val_len = 2 * map->format.val_bytes; in regmap_calc_tot_len() 188 map->debugfs_tot_len = map->debugfs_reg_len + in regmap_calc_tot_len() 348 struct regmap *map = range->map; in regmap_range_read_file() local 477 map->lock(map->lock_arg); in regmap_cache_only_write_file() 488 map->unlock(map->lock_arg); in regmap_cache_only_write_file() 524 map->lock(map->lock_arg); in regmap_cache_bypass_write_file() 534 map->unlock(map->lock_arg); in regmap_cache_bypass_write_file() 571 node->map = map; in regmap_debugfs_init() 652 map->cache_ops->debugfs_init(map); in regmap_debugfs_init() [all …]
|
A D | trace.h | 21 TP_ARGS(map, reg, val), 43 TP_ARGS(map, reg, val) 51 TP_ARGS(map, reg, val) 59 TP_ARGS(map, reg, val) 179 TP_ARGS(map, flag), 198 TP_ARGS(map, flag) 205 TP_ARGS(map, flag) 212 TP_ARGS(map), 236 TP_ARGS(map) 243 TP_ARGS(map) [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | map.h | 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); 56 return map->end - map->start; in map__size() 95 void map__init(struct map *map, 105 void map__delete(struct map *map); 106 struct map *map__clone(struct map *map); 108 static inline struct map *map__get(struct map *map) in map__get() argument 115 void map__put(struct map *map); 131 int map__load(struct map *map); [all …]
|
A D | map.c | 124 struct map *map = malloc(sizeof(*map)); in map__new() local 222 struct map *map = calloc(1, (sizeof(*map) + in map__new2() local 392 struct map *map; in map__clone() local 410 map->start, map->end, map->pgoff, map->dso->name); in map__fprintf() 418 if (map && map->dso) { in map__fprintf_dsoname() 445 if (map && map->dso) { in map__fprintf_srcline() 500 return map->unmap_ip(map, rip) - map->reloc; in map__rip_2objdump() 521 return map->unmap_ip(map, ip + map->pgoff); in map__objdump_2mem() 528 return map->unmap_ip(map, ip - map->dso->text_offset); in map__objdump_2mem() 540 static struct map *__map__next(struct map *map) in __map__next() argument [all …]
|
A D | hashmap.c | 48 map->sz = 0; in hashmap__init() 57 if (!map) in hashmap__new() 60 return map; in hashmap__new() 73 map->cap = map->cap_bits = map->sz = 0; in hashmap__clear() 82 free(map); in hashmap__free() 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); in hashmap_needs_to_grow() 143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_find() [all …]
|
A D | mmap.c | 92 munmap(map->aio.data[idx], mmap__mmap_len(map)); in perf_mmap__aio_free() 128 map->aio.data[idx] = malloc(mmap__mmap_len(map)); in perf_mmap__aio_alloc() 163 map->aio.data = calloc(map->aio.nr_cblocks, sizeof(void *)); in perf_mmap__aio_mmap() 175 ret = perf_mmap__aio_bind(map, i, map->core.cpu, mp->affinity); in perf_mmap__aio_mmap() 207 if (map->aio.data) in perf_mmap__aio_munmap() 239 munmap(map->data, mmap__mmap_len(map)); in mmap__munmap() 266 map->affinity_mask.bits = bitmap_zalloc(map->affinity_mask.nbits); in perf_mmap__setup_affinity_mask() 273 __set_bit(map->core.cpu.cpu, map->affinity_mask.bits); in perf_mmap__setup_affinity_mask() 300 if (zstd_init(&map->zstd_data, map->comp_level)) { in mmap__mmap() 306 if (map->comp_level && !perf_mmap__aio_enabled(map)) { in mmap__mmap() [all …]
|
A D | maps.c | 13 static void __maps__insert(struct maps *maps, struct map *map); 35 void maps__insert(struct maps *maps, struct map *map) in maps__insert() argument 41 if (map->dso && map->dso->kernel) { in maps__insert() 81 void maps__remove(struct maps *maps, struct map *map) in maps__remove() argument 141 struct map *map = maps__find(maps, addr); in maps__find_symbol() local 144 if (map != NULL && map__load(map) >= 0) { in maps__find_symbol() 147 return map__find_symbol(map, map->map_ip(map, addr)); in maps__find_symbol() 234 struct map *pos = rb_entry(next, struct map, rb_node); in maps__fixup_overlappings() 247 struct map *pos = rb_entry(next, struct map, rb_node); in maps__fixup_overlappings() 325 struct map *map; in maps__clone() local [all …]
|
/linux-6.3-rc2/include/linux/mtd/ |
A D | map.h | 34 # define map_bankwidth(map) ((map)->bankwidth) argument 50 # define map_bankwidth(map) ((map)->bankwidth) argument 76 # define map_words(map) map_calc_words(map) argument 81 # define map_words(map) map_calc_words(map) argument 97 # define map_words(map) map_calc_words(map) argument 117 # define map_words(map) map_calc_words(map) argument 253 #define ENABLE_VPP(map) do { if (map->set_vpp) map->set_vpp(map, 1); } while (0) argument 254 #define DISABLE_VPP(map) do { if (map->set_vpp) map->set_vpp(map, 0); } while (0) argument 257 do { if (map->inval_cache) map->inval_cache(map, from, size); } while (0) 444 #define map_read(map, ofs) (map)->read(map, ofs) argument [all …]
|
/linux-6.3-rc2/net/sctp/ |
A D | tsnmap.c | 45 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init() 51 map->max_tsn_seen = map->cumulative_tsn_ack_point; in sctp_tsnmap_init() 54 return map; in sctp_tsnmap_init() 59 map->len = 0; in sctp_tsnmap_free() 87 if (gap < map->len && test_bit(gap, map->tsn_map)) in sctp_tsnmap_check() 105 if (gap >= map->len && !sctp_tsnmap_grow(map, gap + 1)) in sctp_tsnmap_mark() 211 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_skip() 216 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len); in sctp_tsnmap_skip() 242 bitmap_shift_right(map->tsn_map, map->tsn_map, zero_bit, map->len); in sctp_tsnmap_update() 307 if (!TSN_lt(tsn, map->base_tsn + map->len)) in sctp_tsnmap_renege() [all …]
|
/linux-6.3-rc2/drivers/mtd/maps/ |
A D | pci.c | 41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 49 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() 56 memcpy_fromio(to, map->base + map->translate(map, from), len); in mtd_pci_copyfrom() 62 writeb(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write8() 68 writel(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write32() 74 memcpy_toio(map->base + map->translate(map, to), from, len); in mtd_pci_copyto() 92 map->map.bankwidth = 1; in intel_iq80310_init() 187 map->map.bankwidth = 4; in intel_dc21285_init() 190 map->map.size = len; in intel_dc21285_init() 296 map->exit(dev, map); in mtd_pci_probe() [all …]
|
A D | amd76xrom.c | 197 map->map.name = map->map_name; in amd76xrom_init_one() 198 map->map.phys = map_top; in amd76xrom_init_one() 208 for(map->map.bankwidth = 32; map->map.bankwidth; in amd76xrom_init_one() 209 map->map.bankwidth >>= 1) in amd76xrom_init_one() 222 map->mtd = do_map_probe(*probe_type, &map->map); in amd76xrom_init_one() 231 if (map->mtd->size > map->map.size) { in amd76xrom_init_one() 234 (unsigned long long)map->mtd->size, map->map.size); in amd76xrom_init_one() 235 map->mtd->size = map->map.size; in amd76xrom_init_one() 244 map->rsrc.start = map->map.phys; in amd76xrom_init_one() 245 map->rsrc.end = map->map.phys + map->mtd->size - 1; in amd76xrom_init_one() [all …]
|
A D | ck804xrom.c | 227 map->map.name = map->map_name; in ck804xrom_init_one() 228 map->map.phys = map_top; in ck804xrom_init_one() 238 for(map->map.bankwidth = 32; map->map.bankwidth; in ck804xrom_init_one() 239 map->map.bankwidth >>= 1) in ck804xrom_init_one() 252 map->mtd = do_map_probe(*probe_type, &map->map); in ck804xrom_init_one() 261 if (map->mtd->size > map->map.size) { in ck804xrom_init_one() 264 (unsigned long long)map->mtd->size, map->map.size); in ck804xrom_init_one() 265 map->mtd->size = map->map.size; in ck804xrom_init_one() 274 map->rsrc.start = map->map.phys; in ck804xrom_init_one() 275 map->rsrc.end = map->map.phys + map->mtd->size - 1; in ck804xrom_init_one() [all …]
|
A D | ichxrom.c | 221 map->map.name = map->map_name; in ichxrom_init_one() 222 map->map.phys = map_top; in ichxrom_init_one() 235 for(map->map.bankwidth = 32; map->map.bankwidth; in ichxrom_init_one() 236 map->map.bankwidth >>= 1) in ichxrom_init_one() 249 map->mtd = do_map_probe(*probe_type, &map->map); in ichxrom_init_one() 258 if (map->mtd->size > map->map.size) { in ichxrom_init_one() 261 (unsigned long long)map->mtd->size, map->map.size); in ichxrom_init_one() 262 map->mtd->size = map->map.size; in ichxrom_init_one() 271 map->rsrc.start = map->map.phys; in ichxrom_init_one() 272 map->rsrc.end = map->map.phys + map->mtd->size - 1; in ichxrom_init_one() [all …]
|
A D | esb2rom.c | 287 map->map.name = map->map_name; in esb2rom_init_one() 288 map->map.phys = map_top; in esb2rom_init_one() 301 for(map->map.bankwidth = 32; map->map.bankwidth; in esb2rom_init_one() 302 map->map.bankwidth >>= 1) { in esb2rom_init_one() 314 map->mtd = do_map_probe(*probe_type, &map->map); in esb2rom_init_one() 323 if (map->mtd->size > map->map.size) { in esb2rom_init_one() 326 (unsigned long long)map->mtd->size, map->map.size); in esb2rom_init_one() 327 map->mtd->size = map->map.size; in esb2rom_init_one() 336 map->rsrc.start = map->map.phys; in esb2rom_init_one() 337 map->rsrc.end = map->map.phys + map->mtd->size - 1; in esb2rom_init_one() [all …]
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | hashmap.c | 48 map->sz = 0; in hashmap__init() 57 if (!map) in hashmap__new() 60 return map; in hashmap__new() 73 map->cap = map->cap_bits = map->sz = 0; in hashmap__clear() 82 free(map); in hashmap__free() 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); in hashmap_needs_to_grow() 143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_find() [all …]
|
/linux-6.3-rc2/drivers/mtd/lpddr/ |
A D | qinfo_probe.c | 81 dsr = CMDVAL(map_read(map, map->pfow_base + PFOW_DSR)); in lpddr_info_query() 87 val = CMDVAL(map_read(map, map->pfow_base + PFOW_COMMAND_DATA)); in lpddr_info_query() 96 pfow_val[0] = map_read(map, map->pfow_base + PFOW_QUERY_STRING_P); in lpddr_pfow_present() 97 pfow_val[1] = map_read(map, map->pfow_base + PFOW_QUERY_STRING_F); in lpddr_pfow_present() 98 pfow_val[2] = map_read(map, map->pfow_base + PFOW_QUERY_STRING_O); in lpddr_pfow_present() 99 pfow_val[3] = map_read(map, map->pfow_base + PFOW_QUERY_STRING_W); in lpddr_pfow_present() 116 map->name, map->pfow_base); in lpddr_pfow_present() 130 lpddr->DevId = CMDVAL(map_read(map, map->pfow_base + PFOW_DEVICE_ID)); in lpddr_chip_setup() 152 if ((map->pfow_base + 0x1000) >= map->size) { in lpddr_probe_chip() 155 (unsigned long)map->pfow_base, map->size - 1); in lpddr_probe_chip() [all …]
|
/linux-6.3-rc2/kernel/dma/ |
A D | map_benchmark.c | 62 dma_addr = dma_map_single(map->dev, buf, size, map->dir); in map_benchmark_thread() 65 dev_name(map->dev)); in map_benchmark_thread() 76 dma_unmap_single(map->dev, dma_addr, size, map->dir); in map_benchmark_thread() 113 get_device(map->dev); in do_map_benchmark() 175 put_device(map->dev); in do_map_benchmark() 188 if (copy_from_user(&map->bparam, argp, sizeof(map->bparam))) in map_benchmark_ioctl() 216 if (map->bparam.granule < 1 || map->bparam.granule > 1024) { in map_benchmark_ioctl() 260 if (copy_to_user(argp, &map->bparam, sizeof(map->bparam))) in map_benchmark_ioctl() 284 map = devm_kzalloc(dev, sizeof(*map), GFP_KERNEL); in __map_benchmark_probe() 285 if (!map) in __map_benchmark_probe() [all …]
|
/linux-6.3-rc2/kernel/trace/ |
A D | tracing_map.c | 282 map->key_idx[map->n_keys++] = idx; in tracing_map_add_key_field() 412 elt->map = map; in tracing_map_elt_alloc() 440 if (map->ops && map->ops->elt_alloc) { in tracing_map_elt_alloc() 460 if (map->ops && map->ops->elt_init) in get_free_elt() 530 entry = TRACING_MAP_ENTRY(map->map, idx); in __tracing_map_insert() 678 tracing_map_array_free(map->map); in tracing_map_destroy() 701 tracing_map_array_clear(map->map); in tracing_map_clear() 775 map = kzalloc(sizeof(*map), GFP_KERNEL); in tracing_map_create() 788 map->map = tracing_map_array_alloc(map->map_size, in tracing_map_create() 790 if (!map->map) in tracing_map_create() [all …]
|
/linux-6.3-rc2/drivers/xen/ |
A D | gntdev.c | 88 map->index, map->count, in gntdev_print_maps() 114 gnttab_free_pages(map->count, map->pages); in gntdev_free_map() 228 add->index = map->index + map->count; in gntdev_add_map() 253 if (!map) in gntdev_put_map() 277 unmap_grant_pages(map, 0, map->count); in gntdev_put_map() 366 pr_debug("map %d+%d\n", map->index, map->count); in gntdev_map_grant_pages() 367 err = gnttab_map_refs(map->map_ops, map->kmap_ops, map->pages, in gntdev_map_grant_pages() 456 map->unmap_data.pages = map->pages + offset; in __unmap_grant_pages() 459 map->unmap_data.data = map; in __unmap_grant_pages() 562 map->index, map->count, map_start, map_end, in gntdev_invalidate() [all …]
|
/linux-6.3-rc2/kernel/bpf/ |
A D | arraymap.c | 554 struct bpf_map *map = info->map; in bpf_array_map_seq_start() local 563 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_start() 573 struct bpf_map *map = info->map; in bpf_array_map_seq_next() local 582 array = container_of(map, struct bpf_array, map); in bpf_array_map_seq_next() 593 struct bpf_map *map = info->map; in __bpf_array_map_seq_show() local 607 ctx.map = info->map; in __bpf_array_map_seq_show() 644 struct bpf_map *map = aux->map; in bpf_iter_init_array_map() local 663 seq_info->map = map; in bpf_iter_init_array_map() 702 array = container_of(map, struct bpf_array, map); in bpf_for_each_array_elem() 1043 if (poke->tail_call.map != map || in prog_array_map_poke_run() [all …]
|
A D | local_storage.c | 31 return container_of(map, struct bpf_cgroup_storage_map, map); in map_to_storage() 42 if (attach_type_isolated(&map->map)) { in bpf_cgroup_storage_key_cmp() 271 if (attach_type_isolated(&map->map)) { in cgroup_storage_get_next_key() 317 if (!map) in cgroup_storage_map_alloc() 321 bpf_map_init_from_attr(&map->map, attr); in cgroup_storage_map_alloc() 327 return &map->map; in cgroup_storage_map_alloc() 432 btf_type_seq_show(map->btf, map->btf_value_type_id, in cgroup_storage_seq_show_elem() 502 if (!map) in bpf_cgroup_storage_alloc() 559 map = &storage->map->map; in bpf_cgroup_storage_free() 579 map = storage->map; in bpf_cgroup_storage_link() [all …]
|
/linux-6.3-rc2/tools/lib/perf/ |
A D | threadmap.c | 12 size_t size = (nr - start) * sizeof(map->map[0]); in perf_thread_map__reset() 14 memset(&map->map[start], 0, size); in perf_thread_map__reset() 20 size_t size = sizeof(*map) + sizeof(map->map[0]) * nr; in perf_thread_map__realloc() 21 int start = map ? map->nr : 0; in perf_thread_map__realloc() 23 map = realloc(map, size); in perf_thread_map__realloc() 27 if (map) in perf_thread_map__realloc() 37 map->map[idx].pid = pid; in perf_thread_map__set_pid() 42 return map->map[idx].comm; in perf_thread_map__comm() 82 if (map) in perf_thread_map__get() 89 if (map && refcount_dec_and_test(&map->refcnt)) in perf_thread_map__put() [all …]
|
A D | mmap.c | 22 map->fd = -1; in perf_mmap__init() 40 map->base = mmap(NULL, perf_mmap__mmap_len(map), mp->prot, in perf_mmap__mmap() 54 if (map && map->base != NULL) { in perf_mmap__munmap() 55 munmap(map->base, perf_mmap__mmap_len(map)); in perf_mmap__munmap() 60 if (map && map->unmap_cb) in perf_mmap__munmap() 61 map->unmap_cb(map); in perf_mmap__munmap() 71 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put() 200 map->prev = perf_mmap__read_head(map); in perf_mmap__read_done() 270 map->end = perf_mmap__read_head(map); in perf_mmap__read_event() 272 event = perf_mmap__read(map, &map->start, map->end); in perf_mmap__read_event() [all …]
|