Lines Matching refs:map

83 	struct cbe_regs_map *map = cbe_find_map(np);  in cbe_get_pmd_regs()  local
84 if (map == NULL) in cbe_get_pmd_regs()
86 return map->pmd_regs; in cbe_get_pmd_regs()
92 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_pmd_regs() local
93 if (map == NULL) in cbe_get_cpu_pmd_regs()
95 return map->pmd_regs; in cbe_get_cpu_pmd_regs()
101 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_shadow_regs() local
102 if (map == NULL) in cbe_get_pmd_shadow_regs()
104 return &map->pmd_shadow_regs; in cbe_get_pmd_shadow_regs()
109 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_pmd_shadow_regs() local
110 if (map == NULL) in cbe_get_cpu_pmd_shadow_regs()
112 return &map->pmd_shadow_regs; in cbe_get_cpu_pmd_shadow_regs()
117 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_iic_regs() local
118 if (map == NULL) in cbe_get_iic_regs()
120 return map->iic_regs; in cbe_get_iic_regs()
125 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_iic_regs() local
126 if (map == NULL) in cbe_get_cpu_iic_regs()
128 return map->iic_regs; in cbe_get_cpu_iic_regs()
133 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_mic_tm_regs() local
134 if (map == NULL) in cbe_get_mic_tm_regs()
136 return map->mic_tm_regs; in cbe_get_mic_tm_regs()
141 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_mic_tm_regs() local
142 if (map == NULL) in cbe_get_cpu_mic_tm_regs()
144 return map->mic_tm_regs; in cbe_get_cpu_mic_tm_regs()
192 void __init cbe_fill_regs_map(struct cbe_regs_map *map) in cbe_fill_regs_map() argument
194 if(map->be_node) { in cbe_fill_regs_map()
197 be = map->be_node; in cbe_fill_regs_map()
201 map->pmd_regs = of_iomap(np, 0); in cbe_fill_regs_map()
205 map->iic_regs = of_iomap(np, 2); in cbe_fill_regs_map()
209 map->mic_tm_regs = of_iomap(np, 0); in cbe_fill_regs_map()
218 cpu = map->cpu_node; in cbe_fill_regs_map()
222 map->pmd_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
226 map->iic_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
230 map->mic_tm_regs = ioremap(prop->address, prop->len); in cbe_fill_regs_map()
250 struct cbe_regs_map *map; in cbe_regs_init() local
254 map = &cbe_regs_maps[cbe_id]; in cbe_regs_init()
263 map->cpu_node = cpu; in cbe_regs_init()
269 thread->regs = map; in cbe_regs_init()
271 map->be_node = thread->be_node; in cbe_regs_init()
278 cbe_fill_regs_map(map); in cbe_regs_init()