Lines Matching refs:map_priv_1
32 return __raw_readb(map->map_priv_1 + ofs); in ocelot_read8()
38 __raw_writeb(d, map->map_priv_1 + adr); in ocelot_write8()
48 memcpy_fromio(to, map->map_priv_1 + from, len); in ocelot_copy_from_cache()
53 memcpy_fromio(to, map->map_priv_1 + from, len); in ocelot_copy_from()
63 __raw_writeb(*(unsigned char *) from, map->map_priv_1 + to); in ocelot_copy_to()
110 ocelot_nvram_map.map_priv_1 = (unsigned long)ioremap_nocache(NVRAM_WINDOW_ADDR, NVRAM_WINDOW_SIZE); in init_ocelot_maps()
111 if (!ocelot_nvram_map.map_priv_1) { in init_ocelot_maps()
127 ocelot_flash_map.map_priv_1 = (unsigned long)ioremap_nocache(FLASH_WINDOW_ADDR, FLASH_WINDOW_SIZE); in init_ocelot_maps()
128 if (!ocelot_flash_map.map_priv_1) { in init_ocelot_maps()
137 ocelot_flash_map.map_priv_2 = ocelot_flash_map.map_priv_1; in init_ocelot_maps()
169 iounmap((void *)ocelot_flash_map.map_priv_1); in init_ocelot_maps()
171 ocelot_flash_map.map_priv_2 != ocelot_flash_map.map_priv_1) in init_ocelot_maps()
176 iounmap((void *)ocelot_nvram_map.map_priv_1); in init_ocelot_maps()
185 iounmap((void *)ocelot_nvram_map.map_priv_1); in cleanup_ocelot_maps()
192 iounmap((void *)ocelot_flash_map.map_priv_1); in cleanup_ocelot_maps()
193 if (ocelot_flash_map.map_priv_2 != ocelot_flash_map.map_priv_1) in cleanup_ocelot_maps()