Lines Matching refs:master
300 struct device_node *master = NULL; in pmac_pic_probe_oldstyle() local
312 if ((master = of_find_node_by_name(NULL, "gc")) != NULL) { in pmac_pic_probe_oldstyle()
314 } else if ((master = of_find_node_by_name(NULL, "ohare")) != NULL) { in pmac_pic_probe_oldstyle()
320 } else if ((master = of_find_node_by_name(NULL, "mac-io")) != NULL) { in pmac_pic_probe_oldstyle()
326 of_node_get(master); in pmac_pic_probe_oldstyle()
327 slave = of_find_node_by_name(master, "mac-io"); in pmac_pic_probe_oldstyle()
330 if (of_device_is_compatible(master, "gatwick")) { in pmac_pic_probe_oldstyle()
333 tmp = master; in pmac_pic_probe_oldstyle()
334 master = slave; in pmac_pic_probe_oldstyle()
342 BUG_ON(master == NULL); in pmac_pic_probe_oldstyle()
347 pmac_pic_host = irq_domain_add_linear(master, max_irqs, in pmac_pic_probe_oldstyle()
353 BUG_ON(of_address_to_resource(master, 0, &r)); in pmac_pic_probe_oldstyle()
363 of_node_put(master); in pmac_pic_probe_oldstyle()
366 master->full_name, max_real_irqs); in pmac_pic_probe_oldstyle()
455 int master) in pmac_setup_one_mpic() argument
457 const char *name = master ? " MPIC 1 " : " MPIC 2 "; in pmac_setup_one_mpic()
459 unsigned int flags = master ? 0 : MPIC_SECONDARY; in pmac_setup_one_mpic()
469 if (master && (flags & MPIC_BIG_ENDIAN)) in pmac_setup_one_mpic()
484 struct device_node *np, *master = NULL, *slave = NULL; in pmac_pic_probe_mpic() local
489 if (master == NULL && in pmac_pic_probe_mpic()
491 master = of_node_get(np); in pmac_pic_probe_mpic()
494 if (master && slave) in pmac_pic_probe_mpic()
499 if (master == NULL && slave != NULL) { in pmac_pic_probe_mpic()
500 master = slave; in pmac_pic_probe_mpic()
505 if (master == NULL) in pmac_pic_probe_mpic()
512 mpic1 = pmac_setup_one_mpic(master, 1); in pmac_pic_probe_mpic()
518 of_node_put(master); in pmac_pic_probe_mpic()