Lines Matching refs:slave
329 struct device_node *slave = NULL;
348 slave = of_find_node_by_name(NULL, "pci106b,7");
349 if (slave) {
359 slave = of_find_node_by_name(master, "mac-io");
361 /* Check ordering of master & slave */
364 BUG_ON(slave == NULL);
366 master = slave;
367 slave = tmp;
370 /* We found a slave */
371 if (slave) {
405 if (slave && !of_address_to_resource(slave, 0, &r)) {
413 pmac_irq_cascade = irq_of_parse_and_map(slave, 0);
415 printk(KERN_INFO "irq: Found slave Apple PIC %s for %d irqs"
416 " cascade: %d\n", slave->full_name,
419 of_node_put(slave);
426 if (slave && pmac_irq_cascade != NO_IRQ)
537 struct device_node *np, *master = NULL, *slave = NULL;
546 else if (slave == NULL)
547 slave = of_node_get(np);
548 if (master && slave)
553 if (master == NULL && slave != NULL) {
554 master = slave;
555 slave = NULL;
574 /* No slave, let's go out */
575 if (slave == NULL)
578 /* Get/Map slave interrupt */
579 cascade = irq_of_parse_and_map(slave, 0);
585 mpic2 = pmac_setup_one_mpic(slave, 0);
587 printk(KERN_ERR "Failed to setup slave MPIC\n");
588 of_node_put(slave);
594 of_node_put(slave);