Searched refs:map (Results 1 - 25 of 484) sorted by relevance

1234567891011>>

/drivers/base/regmap/
H A Dregcache.c26 static int regcache_hw_init(struct regmap *map) argument
34 if (!map->num_reg_defaults_raw)
37 if (!map->reg_defaults_raw) {
38 dev_warn(map->dev, "No cache defaults, reading back from HW\n");
39 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL);
42 ret = regmap_bulk_read(map, 0, tmp_buf,
43 map->num_reg_defaults_raw);
48 map->reg_defaults_raw = tmp_buf;
49 map->cache_free = 1;
53 for (count = 0, i = 0; i < map
89 regcache_init(struct regmap *map, const struct regmap_config *config) argument
166 regcache_exit(struct regmap *map) argument
193 regcache_read(struct regmap *map, unsigned int reg, unsigned int *value) argument
225 regcache_write(struct regmap *map, unsigned int reg, unsigned int value) argument
254 regcache_sync(struct regmap *map) argument
313 regcache_cache_only(struct regmap *map, bool enable) argument
331 regcache_mark_dirty(struct regmap *map) argument
350 regcache_cache_bypass(struct regmap *map, bool enable) argument
414 regcache_lookup_reg(struct regmap *map, unsigned int reg) argument
[all...]
H A Dregmap.c2 * Register map access API
23 bool regmap_writeable(struct regmap *map, unsigned int reg) argument
25 if (map->max_register && reg > map->max_register)
28 if (map->writeable_reg)
29 return map->writeable_reg(map->dev, reg);
34 bool regmap_readable(struct regmap *map, unsigned int reg) argument
36 if (map->max_register && reg > map
45 regmap_volatile(struct regmap *map, unsigned int reg) argument
56 regmap_precious(struct regmap *map, unsigned int reg) argument
67 regmap_volatile_range(struct regmap *map, unsigned int reg, unsigned int num) argument
79 regmap_format_4_12_write(struct regmap *map, unsigned int reg, unsigned int val) argument
86 regmap_format_7_9_write(struct regmap *map, unsigned int reg, unsigned int val) argument
93 regmap_format_10_14_write(struct regmap *map, unsigned int reg, unsigned int val) argument
148 struct regmap *map; local
272 regmap_reinit_cache(struct regmap *map, const struct regmap_config *config) argument
300 regmap_exit(struct regmap *map) argument
309 _regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument
363 _regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument
411 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument
441 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument
460 _regmap_raw_read(struct regmap *map, unsigned int reg, void *val, unsigned int val_len) argument
488 _regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument
524 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument
549 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument
579 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument
608 _regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument
647 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument
667 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument
[all...]
H A Dinternal.h2 * Register map access API internal header
26 void (*format_write)(struct regmap *map,
83 int (*init)(struct regmap *map);
84 int (*exit)(struct regmap *map);
85 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
86 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
87 int (*sync)(struct regmap *map);
90 bool regmap_writeable(struct regmap *map, unsigned int reg);
91 bool regmap_readable(struct regmap *map, unsigned int reg);
92 bool regmap_volatile(struct regmap *map, unsigne
104 regmap_debugfs_init(struct regmap *map) argument
105 regmap_debugfs_exit(struct regmap *map) argument
[all...]
H A Dregmap-debugfs.c2 * Register map access API - debugfs
44 struct regmap *map = file->private_data; local
56 reg_len = regmap_calc_reg_len(map->max_register, buf, count);
57 val_len = 2 * map->format.val_bytes;
60 for (i = 0; i < map->max_register + 1; i++) {
61 if (!regmap_readable(map, i))
64 if (regmap_precious(map, i))
79 ret = regmap_read(map, i, &val);
85 buf_pos += 2 * map->format.val_bytes;
121 struct regmap *map local
180 regmap_debugfs_init(struct regmap *map) argument
197 regmap_debugfs_exit(struct regmap *map) argument
[all...]
H A Dregcache-lzo.c18 static int regcache_lzo_exit(struct regmap *map);
32 static int regcache_lzo_block_count(struct regmap *map) argument
71 static int regcache_lzo_compress_cache_block(struct regmap *map, argument
89 static int regcache_lzo_decompress_cache_block(struct regmap *map, argument
107 static inline int regcache_lzo_get_blkindex(struct regmap *map, argument
110 return (reg * map->cache_word_size) /
111 DIV_ROUND_UP(map->cache_size_raw,
112 regcache_lzo_block_count(map));
115 static inline int regcache_lzo_get_blkpos(struct regmap *map, argument
118 return reg % (DIV_ROUND_UP(map
123 regcache_lzo_get_blksize(struct regmap *map) argument
129 regcache_lzo_init(struct regmap *map) argument
202 regcache_lzo_exit(struct regmap *map) argument
232 regcache_lzo_read(struct regmap *map, unsigned int reg, unsigned int *value) argument
272 regcache_lzo_write(struct regmap *map, unsigned int reg, unsigned int value) argument
334 regcache_lzo_sync(struct regmap *map) argument
[all...]
H A Dregcache-rbtree.c20 static int regcache_rbtree_write(struct regmap *map, unsigned int reg,
22 static int regcache_rbtree_exit(struct regmap *map);
62 static struct regcache_rbtree_node *regcache_rbtree_lookup(struct regmap *map, argument
65 struct regcache_rbtree_ctx *rbtree_ctx = map->cache;
133 struct regmap *map = s->private; local
134 struct regcache_rbtree_ctx *rbtree_ctx = map->cache;
141 mutex_lock(&map->lock);
157 mutex_unlock(&map->lock);
174 static void rbtree_debugfs_init(struct regmap *map) argument
176 debugfs_create_file("rbtree", 0400, map
179 rbtree_debugfs_init(struct regmap *map) argument
184 regcache_rbtree_init(struct regmap *map) argument
215 regcache_rbtree_exit(struct regmap *map) argument
243 regcache_rbtree_read(struct regmap *map, unsigned int reg, unsigned int *value) argument
288 regcache_rbtree_write(struct regmap *map, unsigned int reg, unsigned int value) argument
360 regcache_rbtree_sync(struct regmap *map) argument
[all...]
/drivers/mtd/maps/
H A Dpci.c10 * Generic PCI memory map driver. We support the following boards:
21 #include <linux/mtd/map.h>
27 int (*init)(struct pci_dev *dev, struct map_pci_info *map);
28 void (*exit)(struct pci_dev *dev, struct map_pci_info *map);
29 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
34 struct map_info map; member in struct:map_pci_info
36 void (*exit)(struct pci_dev *dev, struct map_pci_info *map);
37 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
43 struct map_pci_info *map = (struct map_pci_info *)_map; local
45 val.x[0]= readb(map
62 struct map_pci_info *map = (struct map_pci_info *)_map; local
71 struct map_pci_info *map = (struct map_pci_info *)_map; local
77 struct map_pci_info *map = (struct map_pci_info *)_map; local
92 struct map_pci_info *map = (struct map_pci_info *)_map; local
99 struct map_pci_info *map = (struct map_pci_info *)_map; local
114 intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map) argument
142 intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map) argument
150 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) argument
182 intel_dc21285_init(struct pci_dev *dev, struct map_pci_info *map) argument
226 intel_dc21285_exit(struct pci_dev *dev, struct map_pci_info *map) argument
238 intel_dc21285_translate(struct map_pci_info *map, unsigned long ofs) argument
282 struct map_pci_info *map = NULL; local
337 struct map_pci_info *map = mtd->priv; local
[all...]
H A Dck804xrom.c17 #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 Damd76xrom.c14 #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 Dichxrom.c14 #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 Dmap_funcs.c2 * 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 Dpxa2xx-flash.c19 #include <linux/mtd/map.h>
29 static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, argument
32 unsigned long start = (unsigned long)map->cached + from;
45 struct map_info map; member in struct:pxa2xx_flash_info
66 info->map.name = (char *) flash->name;
67 info->map.bankwidth = flash->width;
68 info->map.phys = res->start;
69 info->map.size = resource_size(res);
71 info->map.virt = ioremap(info->map
[all...]
H A Desb2rom.c20 #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...]
H A Dlantiq-flash.c17 #include <linux/mtd/map.h>
31 * map. The workaround involves swapping all addresses whilst probing the chip.
44 struct map_info *map; member in struct:ltq_mtd
50 ltq_read16(struct map_info *map, unsigned long adr) argument
55 if (map->map_priv_1 == LTQ_NOR_PROBING)
58 temp.x[0] = *(u16 *)(map->virt + adr);
64 ltq_write16(struct map_info *map, map_word d, unsigned long adr) argument
68 if (map->map_priv_1 == LTQ_NOR_PROBING)
71 *(u16 *)(map->virt + adr) = d.x[0];
83 ltq_copy_from(struct map_info *map, voi argument
97 ltq_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
H A Dixp2000.c29 #include <linux/mtd/map.h>
40 struct map_info map; member in struct:ixp2000_flash_info
44 static inline unsigned long flash_bank_setup(struct map_info *map, unsigned long ofs) argument
47 (unsigned long(*)(unsigned long))map->map_priv_2;
72 static map_word ixp2000_flash_read8(struct map_info *map, unsigned long ofs) argument
76 val.x[0] = *((u8 *)(map->map_priv_1 + flash_bank_setup(map, ofs)));
85 static void ixp2000_flash_copy_from(struct map_info *map, void *to, argument
88 from = flash_bank_setup(map, from);
90 *(__u8 *) to++ = *(__u8 *)(map
93 ixp2000_flash_write8(struct map_info *map, map_word d, unsigned long ofs) argument
99 ixp2000_flash_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
/drivers/mtd/lpddr/
H A Dqinfo_probe.c30 #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
162 lpddr_probe_chip(struct map_info *map) argument
201 lpddr_probe(struct map_info *map) argument
[all...]
/drivers/gpu/drm/
H A Ddrm_memory.c132 void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) argument
135 dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
136 map->handle = agp_remap(map->offset, map->size, dev);
138 map->handle = ioremap(map->offset, map->size);
142 void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev) argument
145 dev->agp && dev->agp->cant_use_aperture && map
152 drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) argument
[all...]
/drivers/mtd/chips/
H A Dmap_ram.c2 * 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 Dcfi_probe.c17 #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
391 cfi_probe(struct map_info *map) argument
[all...]
H A Dcfi_util.c23 #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
152 struct map_info *map = mtd->priv; local
169 struct map_info *map = mtd->priv; local
[all...]
H A Dgen_probe.c11 #include <linux/mtd/map.h>
16 static struct cfi_private *genprobe_ident_chips(struct map_info *map,
18 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp,
21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) argument
26 /* First probe the map to see if we have CFI stuff there. */
27 cfi = genprobe_ident_chips(map, cp);
32 map->fldrv_priv = cfi;
35 mtd = check_cmd_set(map, 1); /* First the primary cmdset */
37 mtd = check_cmd_set(map, 0); /* Then the secondary */
40 if (mtd->size > map
59 genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) argument
167 genprobe_new_chip(struct map_info *map, struct chip_probe *cp, struct cfi_private *cfi) argument
201 cfi_cmdset_unknown(struct map_info *map, int primary) argument
232 check_cmd_set(struct map_info *map, int primary) argument
[all...]
/drivers/xen/
H A Dgntdev.c90 static int unmap_grant_pages(struct grant_map *map, int offset, int pages);
98 struct grant_map *map; local
101 list_for_each_entry(map, &priv->maps, next)
103 map->index, map->count,
104 map->index == text_index && text ? text : "");
156 struct grant_map *map; local
158 list_for_each_entry(map, &priv->maps, next) {
159 if (add->index + add->count < map->index) {
160 list_add_tail(&add->next, &map
174 struct grant_map *map; local
186 gntdev_put_map(struct grant_map *map) argument
219 struct grant_map *map = data; local
235 map_grant_pages(struct grant_map *map) argument
296 __unmap_grant_pages(struct grant_map *map, int offset, int pages) argument
333 unmap_grant_pages(struct grant_map *map, int offset, int pages) argument
367 struct grant_map *map = vma->vm_private_data; local
375 struct grant_map *map = vma->vm_private_data; local
395 struct grant_map *map; local
432 struct grant_map *map; local
493 struct grant_map *map; local
513 struct grant_map *map; local
554 struct grant_map *map; local
578 struct grant_map *map; local
603 struct grant_map *map; local
698 struct grant_map *map; local
[all...]
/drivers/pcmcia/
H A Di82365.h48 #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/gpu/drm/gma500/
H A Dgem_glue.c25 /* Remove the list map if one is present */
26 if (obj->map_list.map) {
31 kfree(list->map);
32 list->map = NULL;
49 struct drm_local_map *map; local
53 list->map = kzalloc(sizeof(struct drm_map_list), GFP_KERNEL);
54 if (list->map == NULL)
56 map = list->map;
57 map
[all...]
/drivers/md/persistent-data/
H A DMakefile4 dm-space-map-checker.o \
5 dm-space-map-common.o \
6 dm-space-map-disk.o \
7 dm-space-map-metadata.o \

Completed in 260 milliseconds

1234567891011>>