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

1234567891011>>

/drivers/base/regmap/
H A Dregcache.c27 static int regcache_hw_init(struct regmap *map) argument
35 if (!map->num_reg_defaults_raw)
38 if (!map->reg_defaults_raw) {
39 u32 cache_bypass = map->cache_bypass;
40 dev_warn(map->dev, "No cache defaults, reading back from HW\n");
43 map->cache_bypass = 1;
44 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL);
47 ret = regmap_bulk_read(map, 0, tmp_buf,
48 map->num_reg_defaults_raw);
49 map
95 regcache_init(struct regmap *map, const struct regmap_config *config) argument
172 regcache_exit(struct regmap *map) argument
199 regcache_read(struct regmap *map, unsigned int reg, unsigned int *value) argument
230 regcache_write(struct regmap *map, unsigned int reg, unsigned int value) argument
258 regcache_sync(struct regmap *map) argument
317 regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max) argument
363 regcache_cache_only(struct regmap *map, bool enable) argument
382 regcache_mark_dirty(struct regmap *map) argument
401 regcache_cache_bypass(struct regmap *map, bool enable) argument
476 regcache_lookup_reg(struct regmap *map, unsigned int reg) argument
[all...]
H A Dregmap.c2 * Register map access API
24 bool regmap_writeable(struct regmap *map, unsigned int reg) argument
26 if (map->max_register && reg > map->max_register)
29 if (map->writeable_reg)
30 return map->writeable_reg(map->dev, reg);
35 bool regmap_readable(struct regmap *map, unsigned int reg) argument
37 if (map->max_register && reg > map
49 regmap_volatile(struct regmap *map, unsigned int reg) argument
60 regmap_precious(struct regmap *map, unsigned int reg) argument
71 regmap_volatile_range(struct regmap *map, unsigned int reg, unsigned int num) argument
83 regmap_format_2_6_write(struct regmap *map, unsigned int reg, unsigned int val) argument
91 regmap_format_4_12_write(struct regmap *map, unsigned int reg, unsigned int val) argument
98 regmap_format_7_9_write(struct regmap *map, unsigned int reg, unsigned int val) argument
105 regmap_format_10_14_write(struct regmap *map, unsigned int reg, unsigned int val) argument
176 struct regmap *map; local
359 regmap_reinit_cache(struct regmap *map, const struct regmap_config *config) argument
390 regmap_exit(struct regmap *map) argument
399 _regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument
478 _regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument
528 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument
558 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument
587 regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, size_t val_count) argument
623 _regmap_raw_read(struct regmap *map, unsigned int reg, void *val, unsigned int val_len) argument
652 _regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument
688 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument
713 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument
759 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument
790 _regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument
829 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument
849 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument
871 regmap_register_patch(struct regmap *map, const struct reg_default *regs, int num_regs) argument
921 regmap_get_val_bytes(struct regmap *map) argument
[all...]
H A Dinternal.h2 * Register map access API internal header
27 void (*format_write)(struct regmap *map,
87 int (*init)(struct regmap *map);
88 int (*exit)(struct regmap *map);
89 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
90 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
91 int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
94 bool regmap_writeable(struct regmap *map, unsigned int reg);
95 bool regmap_readable(struct regmap *map, unsigned int reg);
96 bool regmap_volatile(struct regmap *map, unsigne
108 regmap_debugfs_init(struct regmap *map) argument
109 regmap_debugfs_exit(struct regmap *map) argument
[all...]
H A Dregcache-lzo.c19 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->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
119 return reg % (DIV_ROUND_UP(map
124 regcache_lzo_get_blksize(struct regmap *map) argument
130 regcache_lzo_init(struct regmap *map) argument
203 regcache_lzo_exit(struct regmap *map) argument
233 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
335 regcache_lzo_sync(struct regmap *map, unsigned int min, unsigned int max) argument
[all...]
H A Dregmap-debugfs.c2 * Register map access API - debugfs
34 struct regmap *map = file->private_data; local
42 ret = snprintf(buf, PAGE_SIZE, "%s\n", map->dev->driver->name);
67 struct regmap *map = file->private_data; local
79 reg_len = regmap_calc_reg_len(map->max_register, buf, count);
80 val_len = 2 * map->format.val_bytes;
83 for (i = 0; i < map->max_register + 1; i++) {
84 if (!regmap_readable(map, i))
87 if (regmap_precious(map, i))
102 ret = regmap_read(map,
145 struct regmap *map = file->private_data; local
186 struct regmap *map = file->private_data; local
245 regmap_debugfs_init(struct regmap *map) argument
274 regmap_debugfs_exit(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
51 ltq_read16(struct map_info *map, unsigned long adr) argument
56 if (map->map_priv_1 == LTQ_NOR_PROBING)
59 temp.x[0] = *(u16 *)(map->virt + adr);
65 ltq_write16(struct map_info *map, map_word d, unsigned long adr) argument
69 if (map->map_priv_1 == LTQ_NOR_PROBING)
72 *(u16 *)(map->virt + adr) = d.x[0];
84 ltq_copy_from(struct map_info *map, voi argument
98 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/staging/iio/
H A Ddriver.h2 * Industrial I/O in kernel access map interface.
19 * @map: array of mappings specifying association of channel with client
22 struct iio_map *map);
27 * @map: array of mappings to remove. Note these must have same memory
32 struct iio_map *map);
/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.c113 void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) argument
116 dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
117 map->handle = agp_remap(map->offset, map->size, dev);
119 map->handle = ioremap(map->offset, map->size);
123 void drm_core_ioremap_wc(struct drm_local_map *map, struct drm_device *dev) argument
126 dev->agp && dev->agp->cant_use_aperture && map
133 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.c26 /* Remove the list map if one is present */
27 if (obj->map_list.map) {
32 kfree(list->map);
33 list->map = NULL;
50 struct drm_local_map *map; local
54 list->map = kzalloc(sizeof(struct drm_map_list), GFP_KERNEL);
55 if (list->map == NULL)
57 map = list->map;
58 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 530 milliseconds

1234567891011>>