Lines Matching refs:map
37 static map_word flash_read16(struct map_info *map, unsigned long offset) in flash_read16() argument
41 r.x[0] = cobalt_bus_read32(map->virt, ADRS(offset)); in flash_read16()
50 static void flash_write16(struct map_info *map, const map_word datum, in flash_write16() argument
55 cobalt_bus_write16(map->virt, ADRS(offset), data); in flash_write16()
58 static void flash_copy_from(struct map_info *map, void *to, in flash_copy_from() argument
66 data = cobalt_bus_read32(map->virt, ADRS(src)); in flash_copy_from()
76 static void flash_copy_to(struct map_info *map, unsigned long to, in flash_copy_to() argument
93 cobalt_bus_write16(map->virt, ADRS(dest - 2), data); in flash_copy_to()
99 struct map_info *map = &cobalt_flash_map; in cobalt_flash_probe() local
102 BUG_ON(!map_bankwidth_supported(map->bankwidth)); in cobalt_flash_probe()
103 map->virt = cobalt->bar1; in cobalt_flash_probe()
104 map->read = flash_read16; in cobalt_flash_probe()
105 map->write = flash_write16; in cobalt_flash_probe()
106 map->copy_from = flash_copy_from; in cobalt_flash_probe()
107 map->copy_to = flash_copy_to; in cobalt_flash_probe()
109 mtd = do_map_probe("cfi_probe", map); in cobalt_flash_probe()