• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/mtd/maps/

Lines Matching refs:map

22 #include <linux/mtd/map.h>
37 * @map: MTD map state for this flash
45 struct map_info map;
79 * @map: MTD map state
82 static map_word gf_read(struct map_info *map, unsigned long ofs)
84 struct async_state *state = gf_map_info_to_state(map);
90 word = readw(map->virt + (ofs % state->win_size));
97 * @map: MTD map state
107 static void gf_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
109 struct async_state *state = gf_map_info_to_state(map);
117 memcpy_fromio(to, map->virt + (from % state->win_size), len);
122 * @map: MTD map state
125 static void gf_write(struct map_info *map, map_word d1, unsigned long ofs)
127 struct async_state *state = gf_map_info_to_state(map);
133 writew(d, map->virt + (ofs % state->win_size));
138 * @map: MTD map state
145 static void gf_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
147 struct async_state *state = gf_map_info_to_state(map);
155 memcpy_toio(map->virt + (to % state->win_size), from, len);
217 state->map.name = DRIVER_NAME;
218 state->map.read = gf_read;
219 state->map.copy_from = gf_copy_from;
220 state->map.write = gf_write;
221 state->map.copy_to = gf_copy_to;
222 state->map.bankwidth = pdata->width;
223 state->map.size = state->win_size * (1 << state->gpio_count);
224 state->map.virt = (void __iomem *)memory->start;
225 state->map.phys = NO_XIP;
226 state->map.map_priv_1 = (unsigned long)state;
244 state->map.bankwidth * 8);
245 state->mtd = do_map_probe(memory->name, &state->map);
310 MODULE_DESCRIPTION("MTD map driver for flashes addressed physically and with gpios");