/drivers/base/regmap/ |
H A D | regcache.c | 28 static int regcache_hw_init(struct regmap *map) argument 36 if (!map->num_reg_defaults_raw) 39 if (!map->reg_defaults_raw) { 40 u32 cache_bypass = map->cache_bypass; 41 dev_warn(map->dev, "No cache defaults, reading back from HW\n"); 44 map->cache_bypass = 1; 45 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); 48 ret = regmap_raw_read(map, 0, tmp_buf, 49 map->num_reg_defaults_raw); 50 map 94 regcache_init(struct regmap *map, const struct regmap_config *config) argument 175 regcache_exit(struct regmap *map) argument 202 regcache_read(struct regmap *map, unsigned int reg, unsigned int *value) argument 233 regcache_write(struct regmap *map, unsigned int reg, unsigned int value) argument 247 regcache_default_sync(struct regmap *map, unsigned int min, unsigned int max) argument 294 regcache_sync(struct regmap *map) argument 362 regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max) argument 416 regcache_drop_region(struct regmap *map, unsigned int min, unsigned int max) argument 448 regcache_cache_only(struct regmap *map, bool enable) argument 467 regcache_mark_dirty(struct regmap *map) argument 486 regcache_cache_bypass(struct regmap *map, bool enable) argument 496 regcache_set_val(struct regmap *map, void *base, unsigned int idx, unsigned int val) argument 531 regcache_get_val(struct regmap *map, const void *base, unsigned int idx) argument 570 regcache_lookup_reg(struct regmap *map, unsigned int reg) argument 595 regcache_sync_block_single(struct regmap *map, void *block, unsigned long *cache_present, unsigned int block_base, unsigned int start, unsigned int end) argument 633 regcache_sync_block_raw_flush(struct regmap *map, const void **data, unsigned int base, unsigned int cur) argument 661 regcache_sync_block_raw(struct regmap *map, void *block, unsigned long *cache_present, unsigned int block_base, unsigned int start, unsigned int end) argument 705 regcache_sync_block(struct regmap *map, void *block, unsigned long *cache_present, unsigned int block_base, unsigned int start, unsigned int end) argument [all...] |
H A D | regmap.c | 2 * Register map access API 35 static int _regmap_update_bits(struct regmap *map, unsigned int reg, 64 bool regmap_check_range_table(struct regmap *map, unsigned int reg, argument 80 bool regmap_writeable(struct regmap *map, unsigned int reg) argument 82 if (map->max_register && reg > map->max_register) 85 if (map->writeable_reg) 86 return map->writeable_reg(map->dev, reg); 88 if (map 94 regmap_readable(struct regmap *map, unsigned int reg) argument 111 regmap_volatile(struct regmap *map, unsigned int reg) argument 128 regmap_precious(struct regmap *map, unsigned int reg) argument 142 regmap_volatile_range(struct regmap *map, unsigned int reg, size_t num) argument 154 regmap_format_2_6_write(struct regmap *map, unsigned int reg, unsigned int val) argument 162 regmap_format_4_12_write(struct regmap *map, unsigned int reg, unsigned int val) argument 169 regmap_format_7_9_write(struct regmap *map, unsigned int reg, unsigned int val) argument 176 regmap_format_10_14_write(struct regmap *map, unsigned int reg, unsigned int val) argument 333 struct regmap *map = __map; local 339 struct regmap *map = __map; local 346 struct regmap *map = __map; variable in typeref:struct:regmap 356 struct regmap *map = __map; variable in typeref:struct:regmap 369 _regmap_range_add(struct regmap *map, struct regmap_range_node *data) argument 394 _regmap_range_lookup(struct regmap *map, unsigned int reg) argument 414 regmap_range_exit(struct regmap *map) argument 430 regmap_attach_dev(struct device *dev, struct regmap *map, const struct regmap_config *config) argument 534 struct regmap *map; local 1049 regmap_reinit_cache(struct regmap *map, const struct regmap_config *config) argument 1073 regmap_exit(struct regmap *map) argument 1140 regmap_get_device(struct regmap *map) argument 1146 _regmap_select_page(struct regmap *map, unsigned int *reg, struct regmap_range_node *range, unsigned int val_num) argument 1194 _regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 1385 regmap_can_raw_write(struct regmap *map) argument 1396 struct regmap *map = context; local 1422 struct regmap *map = context; local 1430 struct regmap *map = context; local 1443 _regmap_map_get_context(struct regmap *map) argument 1448 _regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument 1487 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument 1514 regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val) argument 1551 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 1669 regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, size_t val_count) argument 1747 _regmap_raw_multi_reg_write(struct regmap *map, const struct reg_default *regs, size_t num_regs) argument 1795 _regmap_register_page(struct regmap *map, unsigned int reg, struct regmap_range_node *range) argument 1804 _regmap_range_multi_paged_reg_write(struct regmap *map, struct reg_default *regs, size_t num_regs) argument 1847 _regmap_multi_reg_write(struct regmap *map, const struct reg_default *regs, size_t num_regs) argument 1934 regmap_multi_reg_write(struct regmap *map, const struct reg_default *regs, int num_regs) argument 1966 regmap_multi_reg_write_bypassed(struct regmap *map, const struct reg_default *regs, int num_regs) argument 2010 regmap_raw_write_async(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 2034 _regmap_raw_read(struct regmap *map, unsigned int reg, void *val, unsigned int val_len) argument 2077 struct regmap *map = context; local 2086 struct regmap *map = context; local 2098 _regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument 2144 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument 2172 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument 2284 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument 2332 _regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 2368 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 2396 regmap_update_bits_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 2427 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 2457 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 2479 struct regmap *map = async->map; local 2498 regmap_async_is_done(struct regmap *map) argument 2518 regmap_async_complete(struct regmap *map) argument 2559 regmap_register_patch(struct regmap *map, const struct reg_default *regs, int num_regs) argument 2610 regmap_get_val_bytes(struct regmap *map) argument 2619 regmap_parse_val(struct regmap *map, const void *buf, unsigned int *val) argument [all...] |
H A D | regcache-flat.c | 19 static int regcache_flat_init(struct regmap *map) argument 24 map->cache = kzalloc(sizeof(unsigned int) * (map->max_register + 1), 26 if (!map->cache) 29 cache = map->cache; 31 for (i = 0; i < map->num_reg_defaults; i++) 32 cache[map->reg_defaults[i].reg] = map->reg_defaults[i].def; 37 static int regcache_flat_exit(struct regmap *map) argument 39 kfree(map 45 regcache_flat_read(struct regmap *map, unsigned int reg, unsigned int *value) argument 55 regcache_flat_write(struct regmap *map, unsigned int reg, unsigned int value) argument [all...] |
H A D | regcache-rbtree.c | 21 static int regcache_rbtree_write(struct regmap *map, unsigned int reg, 23 static int regcache_rbtree_exit(struct regmap *map); 44 struct regmap *map, 49 *top = rbnode->base_reg + ((rbnode->blklen - 1) * map->reg_stride); 52 static unsigned int regcache_rbtree_get_register(struct regmap *map, argument 55 return regcache_get_val(map, rbnode->block, idx); 58 static void regcache_rbtree_set_register(struct regmap *map, argument 63 regcache_set_val(map, rbnode->block, idx, val); 66 static struct regcache_rbtree_node *regcache_rbtree_lookup(struct regmap *map, argument 69 struct regcache_rbtree_ctx *rbtree_ctx = map 43 regcache_rbtree_get_base_top_reg( struct regmap *map, struct regcache_rbtree_node *rbnode, unsigned int *base, unsigned int *top) argument 100 regcache_rbtree_insert(struct regmap *map, struct rb_root *root, struct regcache_rbtree_node *rbnode) argument 139 struct regmap *map = s->private; local 193 rbtree_debugfs_init(struct regmap *map) argument 199 regcache_rbtree_init(struct regmap *map) argument 228 regcache_rbtree_exit(struct regmap *map) argument 257 regcache_rbtree_read(struct regmap *map, unsigned int reg, unsigned int *value) argument 277 regcache_rbtree_insert_to_block(struct regmap *map, struct regcache_rbtree_node *rbnode, unsigned int base_reg, unsigned int top_reg, unsigned int reg, unsigned int value) argument 324 regcache_rbtree_node_alloc(struct regmap *map, unsigned int reg) argument 374 regcache_rbtree_write(struct regmap *map, unsigned int reg, unsigned int value) argument 447 regcache_rbtree_sync(struct regmap *map, unsigned int min, unsigned int max) argument 488 regcache_rbtree_drop(struct regmap *map, unsigned int min, unsigned int max) argument [all...] |
H A D | regmap-debugfs.c | 2 * Register map access API - debugfs 23 struct regmap *map; member in struct:regmap_debugfs_node 43 struct regmap *map = file->private_data; local 51 ret = snprintf(buf, PAGE_SIZE, "%s\n", map->dev->driver->name); 68 static void regmap_debugfs_free_dump_cache(struct regmap *map) argument 72 while (!list_empty(&map->debugfs_off_cache)) { 73 c = list_first_entry(&map->debugfs_off_cache, 85 static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, argument 104 mutex_lock(&map->cache_lock); 106 if (list_empty(&map 172 regmap_calc_tot_len(struct regmap *map, void *buf, size_t count) argument 185 regmap_read_debugfs(struct regmap *map, unsigned int from, unsigned int to, char __user *user_buf, size_t count, loff_t *ppos) argument 258 struct regmap *map = file->private_data; local 280 struct regmap *map = file->private_data; local 319 struct regmap *map = range->map; local 335 struct regmap *map = file->private_data; local 413 struct regmap *map = file->private_data; local 472 regmap_debugfs_init(struct regmap *map, const char *name) argument 557 regmap_debugfs_exit(struct regmap *map) argument [all...] |
H A D | regcache-lzo.c | 19 static int regcache_lzo_exit(struct regmap *map); 33 static int regcache_lzo_block_count(struct regmap *map) argument 72 static int regcache_lzo_compress_cache_block(struct regmap *map, argument 90 static int regcache_lzo_decompress_cache_block(struct regmap *map, argument 108 static inline int regcache_lzo_get_blkindex(struct regmap *map, argument 111 return ((reg / map->reg_stride) * map->cache_word_size) / 112 DIV_ROUND_UP(map->cache_size_raw, 113 regcache_lzo_block_count(map)); 116 static inline int regcache_lzo_get_blkpos(struct regmap *map, argument 125 regcache_lzo_get_blksize(struct regmap *map) argument 131 regcache_lzo_init(struct regmap *map) argument 204 regcache_lzo_exit(struct regmap *map) argument 234 regcache_lzo_read(struct regmap *map, unsigned int reg, unsigned int *value) argument 273 regcache_lzo_write(struct regmap *map, unsigned int reg, unsigned int value) argument 334 regcache_lzo_sync(struct regmap *map, unsigned int min, unsigned int max) argument [all...] |
/drivers/mtd/maps/ |
H A D | pci.c | 10 * Generic PCI memory map driver. We support the following boards: 20 #include <linux/mtd/map.h> 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 in struct:map_pci_info 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; local 44 val.x[0]= readb(map 50 struct map_pci_info *map = (struct map_pci_info *)_map; local 58 struct map_pci_info *map = (struct map_pci_info *)_map; local 64 struct map_pci_info *map = (struct map_pci_info *)_map; local 70 struct map_pci_info *map = (struct map_pci_info *)_map; local 76 struct map_pci_info *map = (struct map_pci_info *)_map; local 91 intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map) argument 119 intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map) argument 127 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) argument 159 intel_dc21285_init(struct pci_dev *dev, struct map_pci_info *map) argument 203 intel_dc21285_exit(struct pci_dev *dev, struct map_pci_info *map) argument 215 intel_dc21285_translate(struct map_pci_info *map, unsigned long ofs) argument 258 struct map_pci_info *map = NULL; local 311 struct map_pci_info *map = mtd->priv; local [all...] |
H A D | amd76xrom.c | 14 #include <linux/mtd/map.h> 41 struct map_info map; member in struct:amd76xrom_map_info 70 struct amd76xrom_map_info *map, *scratch; local 81 list_for_each_entry_safe(map, scratch, &window->maps, list) { 82 if (map->rsrc.parent) { 83 release_resource(&map->rsrc); 85 mtd_device_unregister(map->mtd); 86 map_destroy(map->mtd); 87 list_del(&map->list); 88 kfree(map); 109 struct amd76xrom_map_info *map = NULL; local [all...] |
H A D | ck804xrom.c | 17 #include <linux/mtd/map.h> 45 struct map_info map; member in struct:ck804xrom_map_info 83 struct ck804xrom_map_info *map, *scratch; local 93 list_for_each_entry_safe(map, scratch, &window->maps, list) { 94 if (map->rsrc.parent) 95 release_resource(&map->rsrc); 97 mtd_device_unregister(map->mtd); 98 map_destroy(map->mtd); 99 list_del(&map->list); 100 kfree(map); 122 struct ck804xrom_map_info *map = NULL; local [all...] |
H A D | ichxrom.c | 14 #include <linux/mtd/map.h> 46 struct map_info map; member in struct:ichxrom_map_info 58 struct ichxrom_map_info *map, *scratch; local 67 list_for_each_entry_safe(map, scratch, &window->maps, list) { 68 if (map->rsrc.parent) 69 release_resource(&map->rsrc); 70 mtd_device_unregister(map->mtd); 71 map_destroy(map->mtd); 72 list_del(&map->list); 73 kfree(map); 92 struct ichxrom_map_info *map = NULL; local [all...] |
H A D | map_funcs.c | 2 * Out-of-line map I/O functions for simple maps when CONFIG_COMPLEX_MAPPINGS 9 #include <linux/mtd/map.h> 12 static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) argument 14 return inline_map_read(map, ofs); 17 static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) argument 19 inline_map_write(map, datum, ofs); 22 static void __xipram simple_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument 24 inline_map_copy_from(map, to, from, len); 27 static void __xipram simple_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument 29 inline_map_copy_to(map, t 32 simple_map_init(struct map_info *map) argument [all...] |
H A D | pxa2xx-flash.c | 18 #include <linux/mtd/map.h> 28 static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, argument 31 unsigned long start = (unsigned long)map->cached + from; 44 struct map_info map; member in struct:pxa2xx_flash_info 63 info->map.name = flash->name; 64 info->map.bankwidth = flash->width; 65 info->map.phys = res->start; 66 info->map.size = resource_size(res); 68 info->map.virt = ioremap(info->map [all...] |
H A D | esb2rom.c | 20 #include <linux/mtd/map.h> 107 struct map_info map; member in struct:esb2rom_map_info 119 struct esb2rom_map_info *map, *scratch; local 128 list_for_each_entry_safe(map, scratch, &window->maps, list) { 129 if (map->rsrc.parent) 130 release_resource(&map->rsrc); 131 mtd_device_unregister(map->mtd); 132 map_destroy(map->mtd); 133 list_del(&map->list); 134 kfree(map); 152 struct esb2rom_map_info *map = NULL; local [all...] |
/drivers/mtd/lpddr/ |
H A D | qinfo_probe.c | 30 #include <linux/mtd/map.h> 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) argument 62 int bankwidth = map_bankwidth(map) * 8; 72 printk(KERN_ERR"%s qinfo id string is wrong! \n", map->name); 77 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) argument 80 int bits_per_chip = map_bankwidth(map) * 105 lpddr_pfow_present(struct map_info *map, struct lpddr_private *lpddr) argument 134 lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr) argument 159 lpddr_probe_chip(struct map_info *map) argument 198 lpddr_probe(struct map_info *map) argument [all...] |
H A D | lpddr2_nvm.c | 28 #include <linux/mtd/map.h> 129 static inline u_long ow_reg_add(struct map_info *map, u_long offset) argument 132 struct pcm_int_data *pcm_data = map->fldrv_priv; 134 val = map->pfow_base + offset*pcm_data->bus_width; 145 static inline void ow_enable(struct map_info *map) argument 147 struct pcm_int_data *pcm_data = map->fldrv_priv; 160 static inline void ow_disable(struct map_info *map) argument 162 struct pcm_int_data *pcm_data = map->fldrv_priv; 172 static int lpddr2_nvm_do_op(struct map_info *map, u_long cmd_code, argument 180 struct pcm_int_data *pcm_data = map 245 struct map_info *map = mtd->priv; local 272 lpddr2_nvm_pfow_present(struct map_info *map) argument 310 struct map_info *map = mtd->priv; local 328 struct map_info *map = mtd->priv; local 416 struct map_info *map; local [all...] |
/drivers/gpu/drm/ |
H A D | drm_memory.c | 123 void drm_legacy_ioremap(struct drm_local_map *map, struct drm_device *dev) argument 125 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) 126 map->handle = agp_remap(map->offset, map->size, dev); 128 map->handle = ioremap(map->offset, map->size); 132 void drm_legacy_ioremap_wc(struct drm_local_map *map, struct drm_device *dev) argument 134 if (dev->agp && dev->agp->cant_use_aperture && map 141 drm_legacy_ioremapfree(struct drm_local_map *map, struct drm_device *dev) argument [all...] |
/drivers/xen/ |
H A D | gntdev.c | 97 static int unmap_grant_pages(struct grant_map *map, int offset, int pages); 105 struct grant_map *map; local 108 list_for_each_entry(map, &priv->maps, next) 110 map->index, map->count, 111 map->index == text_index && text ? text : ""); 115 static void gntdev_free_map(struct grant_map *map) argument 117 if (map == NULL) 120 if (map->pages) 121 free_xenballooned_pages(map 173 struct grant_map *map; local 191 struct grant_map *map; local 203 gntdev_put_map(struct gntdev_priv *priv, struct grant_map *map) argument 234 struct grant_map *map = data; local 250 map_grant_pages(struct grant_map *map) argument 304 __unmap_grant_pages(struct grant_map *map, int offset, int pages) argument 335 unmap_grant_pages(struct grant_map *map, int offset, int pages) argument 369 struct grant_map *map = vma->vm_private_data; local 377 struct grant_map *map = vma->vm_private_data; local 405 unmap_if_in_range(struct grant_map *map, unsigned long start, unsigned long end) argument 434 struct grant_map *map; local 457 struct grant_map *map; local 528 struct grant_map *map; local 549 struct grant_map *map; local 590 struct grant_map *map; local 616 struct grant_map *map; local 647 struct grant_map *map; local 742 struct grant_map *map; local [all...] |
/drivers/mtd/chips/ |
H A D | map_ram.c | 2 * Common code to handle map devices which are simple RAM 15 #include <linux/mtd/map.h> 22 static struct mtd_info *map_ram_probe(struct map_info *map); 33 static struct mtd_info *map_ram_probe(struct map_info *map) argument 39 map_write8(map, 0x55, 0); 40 if (map_read8(map, 0) != 0x55) 43 map_write8(map, 0xAA, 0); 44 if (map_read8(map, 0) != 0xAA) 48 map_write8(map, 0x55, map 94 struct map_info *map = mtd->priv; local 100 struct map_info *map = mtd->priv; local 109 struct map_info *map = mtd->priv; local 120 struct map_info *map = mtd->priv; local [all...] |
H A D | cfi_probe.c | 17 #include <linux/mtd/map.h> 27 static int cfi_probe_chip(struct map_info *map, __u32 base, 29 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi); 31 struct mtd_info *cfi_probe(struct map_info *map); 38 #define xip_allowed(base, map) \ 40 (void) map_read(map, base); \ 45 #define xip_enable(base, map, cfi) \ 47 cfi_qry_mode_off(base, map, cfi); \ 48 xip_allowed(base, map); \ 51 #define xip_disable_qry(base, map, cf 71 cfi_probe_chip(struct map_info *map, __u32 base, unsigned long *chip_map, struct cfi_private *cfi) argument 154 cfi_chip_setup(struct map_info *map, struct cfi_private *cfi) argument 389 cfi_probe(struct map_info *map) argument [all...] |
H A D | cfi_cmdset_0002.c | 37 #include <linux/mtd/map.h> 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; local 159 struct cfi_private *cfi = map->fldrv_priv; 168 map->name, cfi->mfr, cfi->id); 188 " detected\n", map->name); 192 printk(KERN_WARNING "%s: JEDEC Device ID is 0x%02X. Assuming broken CFI table.\n", map->name, cfi->id); 199 " deduced %s from Device ID\n", map->name, major, minor, 207 struct map_info *map local 218 struct map_info *map = mtd->priv; local 256 struct map_info *map = mtd->priv; local 278 struct map_info *map = mtd->priv; local 292 struct map_info *map = mtd->priv; local 303 struct map_info *map = mtd->priv; local 316 struct map_info *map = mtd->priv; local 331 struct map_info *map = mtd->priv; local 342 struct map_info *map = mtd->priv; local 353 struct map_info *map = mtd->priv; local 469 cfi_fixup_m29ew_erase_suspend(struct map_info *map, unsigned long adr) argument 512 cfi_cmdset_0002(struct map_info *map, int primary) argument 681 struct map_info *map = mtd->priv; local 742 chip_ready(struct map_info *map, unsigned long addr) argument 767 chip_good(struct map_info *map, unsigned long addr, map_word expected) argument 778 get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) argument 882 put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) argument 923 xip_disable(struct map_info *map, struct flchip *chip, unsigned long adr) argument 931 xip_enable(struct map_info *map, struct flchip *chip, unsigned long adr) argument 958 xip_udelay(struct map_info *map, struct flchip *chip, unsigned long adr, int usec) argument 1105 do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) argument 1139 struct map_info *map = mtd->priv; local 1177 otp_enter(struct map_info *map, struct flchip *chip, loff_t adr, size_t len) argument 1192 otp_exit(struct map_info *map, struct flchip *chip, loff_t adr, size_t len) argument 1209 do_read_secsi_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf, size_t grouplen) argument 1249 struct map_info *map = mtd->priv; local 1290 do_otp_write(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf, size_t grouplen) argument 1320 do_otp_lock(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf, size_t grouplen) argument 1388 struct map_info *map = mtd->priv; local 1548 do_write_oneword(struct map_info *map, struct flchip *chip, unsigned long adr, map_word datum, int mode) argument 1668 struct map_info *map = mtd->priv; local 1792 do_write_buffer(struct map_info *map, struct flchip *chip, unsigned long adr, const u_char *buf, int len) argument 1923 struct map_info *map = mtd->priv; local 2003 cfi_amdstd_panic_wait(struct map_info *map, struct flchip *chip, unsigned long adr) argument 2055 do_panic_write_oneword(struct map_info *map, struct flchip *chip, unsigned long adr, map_word datum) argument 2133 struct map_info *map = mtd->priv; local 2234 do_erase_chip(struct map_info *map, struct flchip *chip) argument 2324 do_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2435 struct map_info *map = mtd->priv; local 2455 do_atmel_lock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2490 do_atmel_unlock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2543 do_ppb_xxlock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2626 struct map_info *map = mtd->priv; local 2729 struct map_info *map = mtd->priv; local 2790 struct map_info *map = mtd->priv; local 2844 struct map_info *map = mtd->priv; local 2876 struct map_info *map = mtd->priv; local 2914 struct map_info *map = mtd->priv; local [all...] |
H A D | cfi_util.c | 23 #include <linux/mtd/map.h> 26 int __xipram cfi_qry_present(struct map_info *map, __u32 base, argument 33 qry[0] = cfi_build_cmd('Q', map, cfi); 34 qry[1] = cfi_build_cmd('R', map, cfi); 35 qry[2] = cfi_build_cmd('Y', map, cfi); 37 val[0] = map_read(map, base + osf*0x10); 38 val[1] = map_read(map, base + osf*0x11); 39 val[2] = map_read(map, base + osf*0x12); 41 if (!map_word_equal(map, qry[0], val[0])) 44 if (!map_word_equal(map, qr 54 cfi_qry_mode_on(uint32_t base, struct map_info *map, struct cfi_private *cfi) argument 92 cfi_qry_mode_off(uint32_t base, struct map_info *map, struct cfi_private *cfi) argument 105 cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) argument 150 struct map_info *map = mtd->priv; local 167 struct map_info *map = mtd->priv; local [all...] |
/drivers/clk/berlin/ |
H A D | berlin2-div.c | 67 struct berlin2_div_map map; member in struct:berlin2_div 78 struct berlin2_div_map *map = &div->map; local 84 reg = readl_relaxed(div->base + map->gate_offs); 85 reg >>= map->gate_shift; 96 struct berlin2_div_map *map = &div->map; local 102 reg = readl_relaxed(div->base + map->gate_offs); 103 reg |= BIT(map->gate_shift); 104 writel_relaxed(reg, div->base + map 115 struct berlin2_div_map *map = &div->map; local 132 struct berlin2_div_map *map = &div->map; local 163 struct berlin2_div_map *map = &div->map; local 190 struct berlin2_div_map *map = &div->map; local 238 berlin2_div_register(const struct berlin2_div_map *map, void __iomem *base, const char *name, u8 div_flags, const char **parent_names, int num_parents, unsigned long flags, spinlock_t *lock) argument [all...] |
/drivers/pcmcia/ |
H A D | i82365.h | 48 #define I365_IO(map) (0x08+((map)<<2)) 49 #define I365_MEM(map) (0x10+((map)<<3)) 101 #define I365_ENA_IO(map) (0x40 << (map)) 102 #define I365_ENA_MEM(map) (0x01 << (map)) 105 #define I365_IOCTL_MASK(map) (0x0F << (map<< [all...] |
/drivers/pinctrl/ |
H A D | pinctrl-utils.c | 32 struct pinctrl_map **map, unsigned *reserved_maps, 42 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); 44 dev_err(pctldev->dev, "krealloc(map) failed\n"); 50 *map = new_map; 57 struct pinctrl_map **map, unsigned *reserved_maps, 64 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; 65 (*map)[*num_maps].data.mux.group = group; 66 (*map)[*num_maps].data.mux.function = function; 74 struct pinctrl_map **map, unsigned *reserved_maps, 91 (*map)[*num_map 31 pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev, struct pinctrl_map **map, unsigned *reserved_maps, unsigned *num_maps, unsigned reserve) argument 56 pinctrl_utils_add_map_mux(struct pinctrl_dev *pctldev, struct pinctrl_map **map, unsigned *reserved_maps, unsigned *num_maps, const char *group, const char *function) argument 73 pinctrl_utils_add_map_configs(struct pinctrl_dev *pctldev, struct pinctrl_map **map, unsigned *reserved_maps, unsigned *num_maps, const char *group, unsigned long *configs, unsigned num_configs, enum pinctrl_map_type type) argument 125 pinctrl_utils_dt_free_map(struct pinctrl_dev *pctldev, struct pinctrl_map *map, unsigned num_maps) argument [all...] |
H A D | pinctrl-utils.h | 26 struct pinctrl_map **map, unsigned *reserved_maps, 29 struct pinctrl_map **map, unsigned *reserved_maps, 33 struct pinctrl_map **map, unsigned *reserved_maps, 41 struct pinctrl_map *map, unsigned num_maps);
|