Lines Matching refs:np
181 struct device_node *np = irq_domain_get_of_node(pic->irqhost); in parse_priority_map() local
186 map = of_get_property(np, "ti,c64x+megamod-pic-mux", &maplen); in parse_priority_map()
201 static struct megamod_pic * __init init_megamod_pic(struct device_node *np) in init_megamod_pic() argument
211 pr_err("%s: Could not alloc PIC structure.\n", np->full_name); in init_megamod_pic()
215 pic->irqhost = irq_domain_add_linear(np, NR_COMBINERS * 32, in init_megamod_pic()
218 pr_err("%s: Could not alloc host.\n", np->full_name); in init_megamod_pic()
226 pic->regs = of_iomap(np, 0); in init_megamod_pic()
228 pr_err("%s: Could not map registers.\n", np->full_name); in init_megamod_pic()
250 irq = irq_of_parse_and_map(np, i); in init_megamod_pic()
257 np->full_name, i, irq); in init_megamod_pic()
269 np->full_name, i, hwirq); in init_megamod_pic()
277 np->full_name, i, hwirq); in init_megamod_pic()
294 np->full_name, mapping[i], i + 4); in init_megamod_pic()
334 struct device_node *np; in megamod_pic_init() local
336 np = of_find_compatible_node(NULL, NULL, "ti,c64x+megamod-pic"); in megamod_pic_init()
337 if (!np) in megamod_pic_init()
340 mm_pic = init_megamod_pic(np); in megamod_pic_init()
341 of_node_put(np); in megamod_pic_init()