Lines Matching refs:master
328 struct device_node *master = NULL;
340 if ((master = of_find_node_by_name(NULL, "gc")) != NULL) {
343 } else if ((master = of_find_node_by_name(NULL, "ohare")) != NULL) {
353 } else if ((master = of_find_node_by_name(NULL, "mac-io")) != NULL) {
359 slave = of_find_node_by_name(master, "mac-io");
361 /* Check ordering of master & slave */
362 if (of_device_is_compatible(master, "gatwick")) {
365 tmp = master;
366 master = slave;
377 BUG_ON(master == NULL);
382 pmac_pic_host = irq_alloc_host(master, IRQ_HOST_MAP_LINEAR, max_irqs,
389 BUG_ON(of_address_to_resource(master, 0, &r));
399 of_node_put(master);
402 master->full_name, max_real_irqs);
501 int master)
503 const char *name = master ? " MPIC 1 " : " MPIC 2 ";
506 unsigned int flags = master ? MPIC_PRIMARY : 0;
522 if (master && (flags & MPIC_BIG_ENDIAN))
537 struct device_node *np, *master = NULL, *slave = NULL;
543 if (master == NULL &&
545 master = of_node_get(np);
548 if (master && slave)
553 if (master == NULL && slave != NULL) {
554 master = slave;
559 if (master == NULL)
562 /* Set master handler */
565 /* Setup master */
566 mpic1 = pmac_setup_one_mpic(master, 1);
572 of_node_put(master);