Lines Matching refs:master

301         struct device_node *master = NULL;  in pmac_pic_probe_oldstyle()  local
313 if ((master = of_find_node_by_name(NULL, "gc")) != NULL) { in pmac_pic_probe_oldstyle()
315 } else if ((master = of_find_node_by_name(NULL, "ohare")) != NULL) { in pmac_pic_probe_oldstyle()
321 } else if ((master = of_find_node_by_name(NULL, "mac-io")) != NULL) { in pmac_pic_probe_oldstyle()
327 of_node_get(master); in pmac_pic_probe_oldstyle()
328 slave = of_find_node_by_name(master, "mac-io"); in pmac_pic_probe_oldstyle()
331 if (of_device_is_compatible(master, "gatwick")) { in pmac_pic_probe_oldstyle()
334 tmp = master; in pmac_pic_probe_oldstyle()
335 master = slave; in pmac_pic_probe_oldstyle()
343 BUG_ON(master == NULL); in pmac_pic_probe_oldstyle()
348 pmac_pic_host = irq_domain_add_linear(master, max_irqs, in pmac_pic_probe_oldstyle()
354 BUG_ON(of_address_to_resource(master, 0, &r)); in pmac_pic_probe_oldstyle()
364 of_node_put(master); in pmac_pic_probe_oldstyle()
367 master->full_name, max_real_irqs); in pmac_pic_probe_oldstyle()
456 int master) in pmac_setup_one_mpic() argument
458 const char *name = master ? " MPIC 1 " : " MPIC 2 "; in pmac_setup_one_mpic()
460 unsigned int flags = master ? 0 : MPIC_SECONDARY; in pmac_setup_one_mpic()
470 if (master && (flags & MPIC_BIG_ENDIAN)) in pmac_setup_one_mpic()
485 struct device_node *np, *master = NULL, *slave = NULL; in pmac_pic_probe_mpic() local
490 if (master == NULL && in pmac_pic_probe_mpic()
492 master = of_node_get(np); in pmac_pic_probe_mpic()
495 if (master && slave) in pmac_pic_probe_mpic()
500 if (master == NULL && slave != NULL) { in pmac_pic_probe_mpic()
501 master = slave; in pmac_pic_probe_mpic()
506 if (master == NULL) in pmac_pic_probe_mpic()
513 mpic1 = pmac_setup_one_mpic(master, 1); in pmac_pic_probe_mpic()
519 of_node_put(master); in pmac_pic_probe_mpic()