Lines Matching refs:np
52 static struct cbe_regs_map *cbe_find_map(struct device_node *np) in cbe_find_map() argument
57 if (!of_node_is_type(np, "spe")) { in cbe_find_map()
59 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map()
60 cbe_regs_maps[i].be_node == np) in cbe_find_map()
65 if (np->data) in cbe_find_map()
66 return np->data; in cbe_find_map()
69 tmp_np = np; in cbe_find_map()
77 np->data = cbe_find_map(tmp_np); in cbe_find_map()
79 return np->data; in cbe_find_map()
82 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) in cbe_get_pmd_regs() argument
84 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_regs()
100 struct cbe_pmd_shadow_regs *cbe_get_pmd_shadow_regs(struct device_node *np) in cbe_get_pmd_shadow_regs() argument
102 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_shadow_regs()
116 struct cbe_iic_regs __iomem *cbe_get_iic_regs(struct device_node *np) in cbe_get_iic_regs() argument
118 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_iic_regs()
132 struct cbe_mic_tm_regs __iomem *cbe_get_mic_tm_regs(struct device_node *np) in cbe_get_mic_tm_regs() argument
134 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_mic_tm_regs()
170 struct device_node *np; in cbe_get_be_node() local
172 for_each_node_by_type (np, "be") { in cbe_get_be_node()
176 cpu_handle = of_get_property(np, "cpus", &len); in cbe_get_be_node()
183 return np; in cbe_get_be_node()
187 return np; in cbe_get_be_node()
196 struct device_node *be, *np; in cbe_fill_regs_map() local
200 for_each_node_by_type(np, "pervasive") in cbe_fill_regs_map()
201 if (of_get_parent(np) == be) in cbe_fill_regs_map()
202 map->pmd_regs = of_iomap(np, 0); in cbe_fill_regs_map()
204 for_each_node_by_type(np, "CBEA-Internal-Interrupt-Controller") in cbe_fill_regs_map()
205 if (of_get_parent(np) == be) in cbe_fill_regs_map()
206 map->iic_regs = of_iomap(np, 2); in cbe_fill_regs_map()
208 for_each_node_by_type(np, "mic-tm") in cbe_fill_regs_map()
209 if (of_get_parent(np) == be) in cbe_fill_regs_map()
210 map->mic_tm_regs = of_iomap(np, 0); in cbe_fill_regs_map()