Lines Matching full:np

51 static struct cbe_regs_map *cbe_find_map(struct device_node *np)  in cbe_find_map()  argument
56 if (!of_node_is_type(np, "spe")) { in cbe_find_map()
58 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map()
59 cbe_regs_maps[i].be_node == np) in cbe_find_map()
64 if (np->data) in cbe_find_map()
65 return np->data; in cbe_find_map()
68 tmp_np = np; in cbe_find_map()
76 np->data = cbe_find_map(tmp_np); in cbe_find_map()
78 return np->data; in cbe_find_map()
81 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) in cbe_get_pmd_regs() argument
83 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_regs()
99 struct cbe_pmd_shadow_regs *cbe_get_pmd_shadow_regs(struct device_node *np) in cbe_get_pmd_shadow_regs() argument
101 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_shadow_regs()
115 struct cbe_iic_regs __iomem *cbe_get_iic_regs(struct device_node *np) in cbe_get_iic_regs() argument
117 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_iic_regs()
131 struct cbe_mic_tm_regs __iomem *cbe_get_mic_tm_regs(struct device_node *np) in cbe_get_mic_tm_regs() argument
133 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_mic_tm_regs()
169 struct device_node *np; in cbe_get_be_node() local
171 for_each_node_by_type (np, "be") { in cbe_get_be_node()
175 cpu_handle = of_get_property(np, "cpus", &len); in cbe_get_be_node()
182 return np; in cbe_get_be_node()
192 return np; in cbe_get_be_node()
202 struct device_node *be, *np, *parent_np; in cbe_fill_regs_map() local
206 for_each_node_by_type(np, "pervasive") { in cbe_fill_regs_map()
207 parent_np = of_get_parent(np); in cbe_fill_regs_map()
209 map->pmd_regs = of_iomap(np, 0); in cbe_fill_regs_map()
213 for_each_node_by_type(np, "CBEA-Internal-Interrupt-Controller") { in cbe_fill_regs_map()
214 parent_np = of_get_parent(np); in cbe_fill_regs_map()
216 map->iic_regs = of_iomap(np, 2); in cbe_fill_regs_map()
220 for_each_node_by_type(np, "mic-tm") { in cbe_fill_regs_map()
221 parent_np = of_get_parent(np); in cbe_fill_regs_map()
223 map->mic_tm_regs = of_iomap(np, 0); in cbe_fill_regs_map()