Lines Matching refs:map

45 	struct map_info map;  member
82 static map_word gf_read(struct map_info *map, unsigned long ofs) in gf_read() argument
84 struct async_state *state = gf_map_info_to_state(map); in gf_read()
90 word = readw(map->virt + (ofs % state->win_size)); in gf_read()
105 static void gf_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) in gf_copy_from() argument
107 struct async_state *state = gf_map_info_to_state(map); in gf_copy_from()
118 memcpy_fromio(to, map->virt + (from % state->win_size), in gf_copy_from()
131 static void gf_write(struct map_info *map, map_word d1, unsigned long ofs) in gf_write() argument
133 struct async_state *state = gf_map_info_to_state(map); in gf_write()
139 writew(d, map->virt + (ofs % state->win_size)); in gf_write()
151 static void gf_copy_to(struct map_info *map, unsigned long to, in gf_copy_to() argument
154 struct async_state *state = gf_map_info_to_state(map); in gf_copy_to()
165 memcpy_toio(map->virt + (to % state->win_size), from, len); in gf_copy_to()
234 state->map.name = DRIVER_NAME; in gpio_flash_probe()
235 state->map.read = gf_read; in gpio_flash_probe()
236 state->map.copy_from = gf_copy_from; in gpio_flash_probe()
237 state->map.write = gf_write; in gpio_flash_probe()
238 state->map.copy_to = gf_copy_to; in gpio_flash_probe()
239 state->map.bankwidth = pdata->width; in gpio_flash_probe()
240 state->map.size = state->win_size * (1 << state->gpio_count); in gpio_flash_probe()
241 state->map.virt = ioremap_nocache(memory->start, state->map.size); in gpio_flash_probe()
242 state->map.phys = NO_XIP; in gpio_flash_probe()
243 state->map.map_priv_1 = (unsigned long)state; in gpio_flash_probe()
261 state->map.bankwidth * 8); in gpio_flash_probe()
262 state->mtd = do_map_probe(memory->name, &state->map); in gpio_flash_probe()