Lines Matching refs:np
180 struct device_node *np = pic->irqhost->of_node; in parse_priority_map() local
185 map = of_get_property(np, "ti,c64x+megamod-pic-mux", &maplen); in parse_priority_map()
200 static struct megamod_pic * __init init_megamod_pic(struct device_node *np) in init_megamod_pic() argument
210 pr_err("%s: Could not alloc PIC structure.\n", np->full_name); in init_megamod_pic()
214 pic->irqhost = irq_domain_add_linear(np, NR_COMBINERS * 32, in init_megamod_pic()
217 pr_err("%s: Could not alloc host.\n", np->full_name); in init_megamod_pic()
225 pic->regs = of_iomap(np, 0); in init_megamod_pic()
227 pr_err("%s: Could not map registers.\n", np->full_name); in init_megamod_pic()
249 irq = irq_of_parse_and_map(np, i); in init_megamod_pic()
256 np->full_name, i, irq); in init_megamod_pic()
268 np->full_name, i, hwirq); in init_megamod_pic()
276 np->full_name, i, hwirq); in init_megamod_pic()
293 np->full_name, mapping[i], i + 4); in init_megamod_pic()
333 struct device_node *np; in megamod_pic_init() local
335 np = of_find_compatible_node(NULL, NULL, "ti,c64x+megamod-pic"); in megamod_pic_init()
336 if (!np) in megamod_pic_init()
339 mm_pic = init_megamod_pic(np); in megamod_pic_init()
340 of_node_put(np); in megamod_pic_init()