Lines Matching refs:map
25 static map_word flash_read16(struct map_info *map, unsigned long offset) in flash_read16() argument
29 r.x[0] = cobalt_bus_read32(map->virt, ADRS(offset)); in flash_read16()
38 static void flash_write16(struct map_info *map, const map_word datum, in flash_write16() argument
43 cobalt_bus_write16(map->virt, ADRS(offset), data); in flash_write16()
46 static void flash_copy_from(struct map_info *map, void *to, in flash_copy_from() argument
54 data = cobalt_bus_read32(map->virt, ADRS(src)); in flash_copy_from()
64 static void flash_copy_to(struct map_info *map, unsigned long to, in flash_copy_to() argument
81 cobalt_bus_write16(map->virt, ADRS(dest - 2), data); in flash_copy_to()
87 struct map_info *map = &cobalt_flash_map; in cobalt_flash_probe() local
90 BUG_ON(!map_bankwidth_supported(map->bankwidth)); in cobalt_flash_probe()
91 map->virt = cobalt->bar1; in cobalt_flash_probe()
92 map->read = flash_read16; in cobalt_flash_probe()
93 map->write = flash_write16; in cobalt_flash_probe()
94 map->copy_from = flash_copy_from; in cobalt_flash_probe()
95 map->copy_to = flash_copy_to; in cobalt_flash_probe()
97 mtd = do_map_probe("cfi_probe", map); in cobalt_flash_probe()