/Linux-v4.19/drivers/base/regmap/ |
D | regcache.c | 30 static int regcache_hw_init(struct regmap *map) in regcache_hw_init() argument 38 if (!map->num_reg_defaults_raw) in regcache_hw_init() 42 for (count = 0, i = 0; i < map->num_reg_defaults_raw; i++) in regcache_hw_init() 43 if (regmap_readable(map, i * map->reg_stride) && in regcache_hw_init() 44 !regmap_volatile(map, i * map->reg_stride)) in regcache_hw_init() 49 map->cache_bypass = true; in regcache_hw_init() 53 map->num_reg_defaults = count; in regcache_hw_init() 54 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), in regcache_hw_init() 56 if (!map->reg_defaults) in regcache_hw_init() 59 if (!map->reg_defaults_raw) { in regcache_hw_init() [all …]
|
D | regmap.c | 38 static int _regmap_update_bits(struct regmap *map, unsigned int reg, 67 bool regmap_check_range_table(struct regmap *map, unsigned int reg, in regmap_check_range_table() argument 83 bool regmap_writeable(struct regmap *map, unsigned int reg) in regmap_writeable() argument 85 if (map->max_register && reg > map->max_register) in regmap_writeable() 88 if (map->writeable_reg) in regmap_writeable() 89 return map->writeable_reg(map->dev, reg); in regmap_writeable() 91 if (map->wr_table) in regmap_writeable() 92 return regmap_check_range_table(map, reg, map->wr_table); in regmap_writeable() 97 bool regmap_cached(struct regmap *map, unsigned int reg) in regmap_cached() argument 102 if (map->cache_type == REGCACHE_NONE) in regmap_cached() [all …]
|
D | regmap-debugfs.c | 23 struct regmap *map; member 43 struct regmap *map = file->private_data; in regmap_name_read_file() local 52 if (map->dev && map->dev->driver) in regmap_name_read_file() 53 name = map->dev->driver->name; in regmap_name_read_file() 72 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache() argument 76 while (!list_empty(&map->debugfs_off_cache)) { in regmap_debugfs_free_dump_cache() 77 c = list_first_entry(&map->debugfs_off_cache, in regmap_debugfs_free_dump_cache() 85 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable() argument 87 if (regmap_precious(map, reg)) in regmap_printable() 90 if (!regmap_readable(map, reg) && !regmap_cached(map, reg)) in regmap_printable() [all …]
|
D | trace.h | 18 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)); 42 TP_PROTO(struct regmap *map, unsigned int reg, 45 TP_ARGS(map, reg, val) 51 TP_PROTO(struct regmap *map, unsigned int reg, 54 TP_ARGS(map, reg, val) 60 TP_PROTO(struct regmap *map, unsigned int reg, 63 TP_ARGS(map, reg, val) [all …]
|
D | internal.h | 38 void (*format_write)(struct regmap *map, 48 struct regmap *map; member 170 int (*init)(struct regmap *map); 171 int (*exit)(struct regmap *map); 173 void (*debugfs_init)(struct regmap *map); 175 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); 176 int (*write)(struct regmap *map, unsigned int reg, unsigned int value); 177 int (*sync)(struct regmap *map, unsigned int min, unsigned int max); 178 int (*drop)(struct regmap *map, unsigned int min, unsigned int max); 181 bool regmap_cached(struct regmap *map, unsigned int reg); [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | map.h | 23 struct map { struct 41 u64 (*map_ip)(struct map *, u64); argument 43 u64 (*unmap_ip)(struct map *, u64); argument 82 struct kmap *__map__kmap(struct map *map); 83 struct kmap *map__kmap(struct map *map); 84 struct map_groups *map__kmaps(struct map *map); 86 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument 88 return ip - map->start + map->pgoff; in map__map_ip() 91 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument 93 return ip + map->start - map->pgoff; in map__unmap_ip() [all …]
|
D | map.c | 23 static void __maps__insert(struct maps *maps, struct map *map); 127 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument 129 map->start = start; in map__init() 130 map->end = end; in map__init() 131 map->pgoff = pgoff; in map__init() 132 map->reloc = 0; in map__init() 133 map->dso = dso__get(dso); in map__init() 134 map->map_ip = map__map_ip; in map__init() 135 map->unmap_ip = map__unmap_ip; in map__init() 136 RB_CLEAR_NODE(&map->rb_node); in map__init() [all …]
|
D | mmap.c | 18 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() argument 20 return map->mask + 1 + page_size; in perf_mmap__mmap_len() 24 static union perf_event *perf_mmap__read(struct perf_mmap *map, in perf_mmap__read() argument 27 unsigned char *data = map->base + page_size; in perf_mmap__read() 34 event = (union perf_event *)&data[*startp & map->mask]; in perf_mmap__read() 44 if ((*startp & map->mask) + size != ((*startp + size) & map->mask)) { in perf_mmap__read() 47 void *dst = map->event_copy; in perf_mmap__read() 50 cpy = min(map->mask + 1 - (offset & map->mask), len); in perf_mmap__read() 51 memcpy(dst, &data[offset & map->mask], cpy); in perf_mmap__read() 57 event = (union perf_event *)map->event_copy; in perf_mmap__read() [all …]
|
/Linux-v4.19/include/linux/mtd/ |
D | map.h | 36 #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 …]
|
/Linux-v4.19/net/sctp/ |
D | tsnmap.c | 44 static void sctp_tsnmap_update(struct sctp_tsnmap *map); 45 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, 47 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size); 50 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init() argument 53 if (!map->tsn_map) { in sctp_tsnmap_init() 54 map->tsn_map = kzalloc(len>>3, gfp); in sctp_tsnmap_init() 55 if (map->tsn_map == NULL) in sctp_tsnmap_init() 58 map->len = len; in sctp_tsnmap_init() 60 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init() 64 map->base_tsn = initial_tsn; in sctp_tsnmap_init() [all …]
|
/Linux-v4.19/drivers/mtd/maps/ |
D | pci.c | 26 int (*init)(struct pci_dev *dev, struct map_pci_info *map); 27 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 28 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 33 struct map_info map; member 35 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 36 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 42 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read8() local 44 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 50 struct map_pci_info *map = (struct map_pci_info *)_map; in mtd_pci_read32() local 52 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() [all …]
|
D | amd76xrom.c | 41 struct map_info map; member 70 struct amd76xrom_map_info *map, *scratch; in amd76xrom_cleanup() local 81 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup() 82 if (map->rsrc.parent) { in amd76xrom_cleanup() 83 release_resource(&map->rsrc); in amd76xrom_cleanup() 85 mtd_device_unregister(map->mtd); in amd76xrom_cleanup() 86 map_destroy(map->mtd); in amd76xrom_cleanup() 87 list_del(&map->list); in amd76xrom_cleanup() 88 kfree(map); in amd76xrom_cleanup() 109 struct amd76xrom_map_info *map = NULL; in amd76xrom_init_one() local [all …]
|
D | ck804xrom.c | 45 struct map_info map; member 83 struct ck804xrom_map_info *map, *scratch; in ck804xrom_cleanup() local 93 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ck804xrom_cleanup() 94 if (map->rsrc.parent) in ck804xrom_cleanup() 95 release_resource(&map->rsrc); in ck804xrom_cleanup() 97 mtd_device_unregister(map->mtd); in ck804xrom_cleanup() 98 map_destroy(map->mtd); in ck804xrom_cleanup() 99 list_del(&map->list); in ck804xrom_cleanup() 100 kfree(map); in ck804xrom_cleanup() 122 struct ck804xrom_map_info *map = NULL; in ck804xrom_init_one() local [all …]
|
D | ichxrom.c | 46 struct map_info map; member 58 struct ichxrom_map_info *map, *scratch; in ichxrom_cleanup() local 69 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup() 70 if (map->rsrc.parent) in ichxrom_cleanup() 71 release_resource(&map->rsrc); in ichxrom_cleanup() 72 mtd_device_unregister(map->mtd); in ichxrom_cleanup() 73 map_destroy(map->mtd); in ichxrom_cleanup() 74 list_del(&map->list); in ichxrom_cleanup() 75 kfree(map); in ichxrom_cleanup() 94 struct ichxrom_map_info *map = NULL; in ichxrom_init_one() local [all …]
|
D | esb2rom.c | 107 struct map_info map; member 119 struct esb2rom_map_info *map, *scratch; in esb2rom_cleanup() local 128 list_for_each_entry_safe(map, scratch, &window->maps, list) { in esb2rom_cleanup() 129 if (map->rsrc.parent) in esb2rom_cleanup() 130 release_resource(&map->rsrc); in esb2rom_cleanup() 131 mtd_device_unregister(map->mtd); in esb2rom_cleanup() 132 map_destroy(map->mtd); in esb2rom_cleanup() 133 list_del(&map->list); in esb2rom_cleanup() 134 kfree(map); in esb2rom_cleanup() 152 struct esb2rom_map_info *map = NULL; in esb2rom_init_one() local [all …]
|
/Linux-v4.19/drivers/mtd/lpddr/ |
D | qinfo_probe.c | 34 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr); 35 struct mtd_info *lpddr_probe(struct map_info *map); 36 static struct lpddr_private *lpddr_probe_chip(struct map_info *map); 37 static int lpddr_pfow_present(struct map_info *map, 58 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) in lpddr_get_qinforec_pos() argument 62 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos() 72 printk(KERN_ERR"%s qinfo id string is wrong! \n", map->name); in lpddr_get_qinforec_pos() 77 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) in lpddr_info_query() argument 80 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query() 81 unsigned long adr = lpddr_get_qinforec_pos(map, id_str); in lpddr_info_query() [all …]
|
D | lpddr2_nvm.c | 129 static inline u_long ow_reg_add(struct map_info *map, u_long offset) in ow_reg_add() argument 132 struct pcm_int_data *pcm_data = map->fldrv_priv; in ow_reg_add() 134 val = map->pfow_base + offset*pcm_data->bus_width; in ow_reg_add() 145 static inline void ow_enable(struct map_info *map) in ow_enable() argument 147 struct pcm_int_data *pcm_data = map->fldrv_priv; in ow_enable() 160 static inline void ow_disable(struct map_info *map) in ow_disable() argument 162 struct pcm_int_data *pcm_data = map->fldrv_priv; in ow_disable() 172 static int lpddr2_nvm_do_op(struct map_info *map, u_long cmd_code, in lpddr2_nvm_do_op() argument 180 struct pcm_int_data *pcm_data = map->fldrv_priv; in lpddr2_nvm_do_op() 194 map_write(map, cmd, ow_reg_add(map, CMD_CODE_OFS)); in lpddr2_nvm_do_op() [all …]
|
/Linux-v4.19/kernel/bpf/ |
D | local_storage.c | 18 struct bpf_map map; member 26 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage() argument 28 return container_of(map, struct bpf_cgroup_storage_map, map); in map_to_storage() 47 struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, in cgroup_storage_lookup() argument 50 struct rb_root *root = &map->root; in cgroup_storage_lookup() 54 spin_lock_bh(&map->lock); in cgroup_storage_lookup() 71 spin_unlock_bh(&map->lock); in cgroup_storage_lookup() 77 spin_unlock_bh(&map->lock); in cgroup_storage_lookup() 82 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert() argument 85 struct rb_root *root = &map->root; in cgroup_storage_insert() [all …]
|
D | arraymap.c | 31 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_free_percpu() 42 for (i = 0; i < array->map.max_entries; i++) { in bpf_array_alloc_percpu() 136 array->map.unpriv_array = unpriv; in array_map_alloc() 139 bpf_map_init_from_attr(&array->map, attr); in array_map_alloc() 140 array->map.pages = cost; in array_map_alloc() 148 return &array->map; in array_map_alloc() 152 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem() argument 154 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem() 157 if (unlikely(index >= array->map.max_entries)) 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() argument [all …]
|
/Linux-v4.19/kernel/trace/ |
D | tracing_map.c | 201 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field() argument 206 if (map->n_fields < TRACING_MAP_FIELDS_MAX) { in tracing_map_add_field() 207 ret = map->n_fields; in tracing_map_add_field() 208 map->fields[map->n_fields++].cmp_fn = cmp_fn; in tracing_map_add_field() 226 int tracing_map_add_sum_field(struct tracing_map *map) in tracing_map_add_sum_field() argument 228 return tracing_map_add_field(map, tracing_map_cmp_atomic64); in tracing_map_add_sum_field() 243 int tracing_map_add_var(struct tracing_map *map) in tracing_map_add_var() argument 247 if (map->n_vars < TRACING_MAP_VARS_MAX) in tracing_map_add_var() 248 ret = map->n_vars++; in tracing_map_add_var() 269 int tracing_map_add_key_field(struct tracing_map *map, in tracing_map_add_key_field() argument [all …]
|
/Linux-v4.19/drivers/xen/ |
D | gntdev.c | 70 static int unmap_grant_pages(struct gntdev_grant_map *map, 86 struct gntdev_grant_map *map; in gntdev_print_maps() local 89 list_for_each_entry(map, &priv->maps, next) in gntdev_print_maps() 91 map->index, map->count, in gntdev_print_maps() 92 map->index == text_index && text ? text : ""); in gntdev_print_maps() 96 static void gntdev_free_map(struct gntdev_grant_map *map) in gntdev_free_map() argument 98 if (map == NULL) in gntdev_free_map() 102 if (map->dma_vaddr) { in gntdev_free_map() 105 args.dev = map->dma_dev; in gntdev_free_map() 106 args.coherent = !!(map->dma_flags & GNTDEV_DMA_FLAG_COHERENT); in gntdev_free_map() [all …]
|
/Linux-v4.19/drivers/mtd/chips/ |
D | cfi_cmdset_0002.c | 82 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode); 83 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr); 158 struct map_info *map = mtd->priv; in fixup_amd_bootblock() local 159 struct cfi_private *cfi = map->fldrv_priv; in fixup_amd_bootblock() 168 map->name, cfi->mfr, cfi->id); in fixup_amd_bootblock() 188 " detected\n", map->name); in fixup_amd_bootblock() 192 …printk(KERN_WARNING "%s: JEDEC Device ID is 0x%02X. Assuming broken CFI table.\n", map->name, cfi-… in fixup_amd_bootblock() 199 " deduced %s from Device ID\n", map->name, major, minor, in fixup_amd_bootblock() 207 struct map_info *map = mtd->priv; in fixup_use_write_buffers() local 208 struct cfi_private *cfi = map->fldrv_priv; in fixup_use_write_buffers() [all …]
|
D | cfi_util.c | 41 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr() argument 43 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr() 67 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd() argument 78 if (map_bankwidth_is_large(map)) { in cfi_build_cmd() 80 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd() 82 wordwidth = map_bankwidth(map); in cfi_build_cmd() 86 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd() 87 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd() 97 onecmd = cpu_to_cfi16(map, cmd); in cfi_build_cmd() 100 onecmd = cpu_to_cfi32(map, cmd); in cfi_build_cmd() [all …]
|
/Linux-v4.19/net/rds/ |
D | cong.c | 109 struct rds_cong_map *map; in rds_cong_tree_walk() local 115 map = rb_entry(parent, struct rds_cong_map, m_rb_node); in rds_cong_tree_walk() 117 diff = rds_addr_cmp(addr, &map->m_addr); in rds_cong_tree_walk() 123 return map; in rds_cong_tree_walk() 140 struct rds_cong_map *map; in rds_cong_from_addr() local 146 map = kzalloc(sizeof(struct rds_cong_map), GFP_KERNEL); in rds_cong_from_addr() 147 if (!map) in rds_cong_from_addr() 150 map->m_addr = *addr; in rds_cong_from_addr() 151 init_waitqueue_head(&map->m_waitq); in rds_cong_from_addr() 152 INIT_LIST_HEAD(&map->m_conn_list); in rds_cong_from_addr() [all …]
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 226 static int lock_check(char *map) in lock_check() argument 231 page1_flags = get_pageflags((unsigned long)map); in lock_check() 232 page2_flags = get_pageflags((unsigned long)map + page_size); in lock_check() 251 if (!is_vmflag_set((unsigned long)map, LOCKED)) { in lock_check() 256 if (!is_vmflag_set((unsigned long)map + page_size, LOCKED)) { in lock_check() 264 static int unlock_lock_check(char *map) in unlock_lock_check() argument 269 page1_flags = get_pageflags((unsigned long)map); in unlock_lock_check() 270 page2_flags = get_pageflags((unsigned long)map + page_size); in unlock_lock_check() 279 if (is_vmflag_set((unsigned long)map, LOCKED)) { in unlock_lock_check() 284 if (is_vmflag_set((unsigned long)map + page_size, LOCKED)) { in unlock_lock_check() [all …]
|