Lines Matching refs:map
35 #include <linux/mtd/map.h>
94 static void physmap_set_vpp(struct map_info *map, int state)
101 pdev = (struct platform_device *)map->map_priv_1;
142 static map_word physmap_addr_gpios_read(struct map_info *map,
150 pdev = (struct platform_device *)map->map_priv_1;
154 word = readw(map->virt + (ofs & win_mask(info->win_order)));
159 static void physmap_addr_gpios_copy_from(struct map_info *map, void *buf,
165 pdev = (struct platform_device *)map->map_priv_1;
174 memcpy_fromio(buf, map->virt + winofs, chunklen);
181 static void physmap_addr_gpios_write(struct map_info *map, map_word mw,
188 pdev = (struct platform_device *)map->map_priv_1;
193 writew(word, map->virt + (ofs & win_mask(info->win_order)));
196 static void physmap_addr_gpios_copy_to(struct map_info *map, unsigned long ofs,
202 pdev = (struct platform_device *)map->map_priv_1;
211 memcpy_toio(map->virt + winofs, buf, chunklen);
218 static int physmap_addr_gpios_map_init(struct map_info *map)
220 map->phys = NO_XIP;
221 map->read = physmap_addr_gpios_read;
222 map->copy_from = physmap_addr_gpios_copy_from;
223 map->write = physmap_addr_gpios_write;
224 map->copy_to = physmap_addr_gpios_copy_to;
229 static int physmap_addr_gpios_map_init(struct map_info *map)
536 * Only use the simple_map implementation if map hooks are not
537 * implemented. Since map->read() is mandatory checking for its
685 MODULE_DESCRIPTION("Generic configurable MTD map driver");