Lines Matching refs:map
88 static map_word ixp4xx_read16(struct map_info *map, unsigned long ofs) in ixp4xx_read16() argument
91 val.x[0] = flash_read16(map->virt + ofs); in ixp4xx_read16()
100 static void ixp4xx_copy_from(struct map_info *map, void *to, in ixp4xx_copy_from() argument
104 void __iomem *src = map->virt + from; in ixp4xx_copy_from()
131 static void ixp4xx_probe_write16(struct map_info *map, map_word d, unsigned long adr) in ixp4xx_probe_write16() argument
134 flash_write16(d.x[0], map->virt + adr); in ixp4xx_probe_write16()
140 static void ixp4xx_write16(struct map_info *map, map_word d, unsigned long adr) in ixp4xx_write16() argument
142 flash_write16(d.x[0], map->virt + adr); in ixp4xx_write16()
147 struct map_info map; member
203 info->map.phys = NO_XIP; in ixp4xx_flash_probe()
204 info->map.size = resource_size(dev->resource); in ixp4xx_flash_probe()
211 info->map.bankwidth = 2; in ixp4xx_flash_probe()
212 info->map.name = dev_name(&dev->dev); in ixp4xx_flash_probe()
213 info->map.read = ixp4xx_read16; in ixp4xx_flash_probe()
214 info->map.write = ixp4xx_probe_write16; in ixp4xx_flash_probe()
215 info->map.copy_from = ixp4xx_copy_from; in ixp4xx_flash_probe()
217 info->map.virt = devm_ioremap_resource(&dev->dev, dev->resource); in ixp4xx_flash_probe()
218 if (IS_ERR(info->map.virt)) { in ixp4xx_flash_probe()
219 err = PTR_ERR(info->map.virt); in ixp4xx_flash_probe()
223 info->mtd = do_map_probe(plat->map_name, &info->map); in ixp4xx_flash_probe()
232 info->map.write = ixp4xx_write16; in ixp4xx_flash_probe()