Lines Matching refs:dp
529 static int __init ebus_fdthree_p(struct device_node *dp) in ebus_fdthree_p() argument
531 if (!strcmp(dp->name, "fdthree")) in ebus_fdthree_p()
533 if (!strcmp(dp->name, "floppy")) { in ebus_fdthree_p()
536 compat = of_get_property(dp, "compatible", NULL); in ebus_fdthree_p()
546 struct device_node *dp; in sun_floppy_init() local
557 for_each_node_by_name(dp, "SUNW,fdtwo") { in sun_floppy_init()
558 if (strcmp(dp->parent->name, "sbus")) in sun_floppy_init()
560 op = of_find_device_by_node(dp); in sun_floppy_init()
573 dp = NULL; in sun_floppy_init()
575 for (dp = ebus_dp->child; dp; dp = dp->sibling) { in sun_floppy_init()
576 if (ebus_fdthree_p(dp)) in sun_floppy_init()
581 if (!dp) in sun_floppy_init()
584 op = of_find_device_by_node(dp); in sun_floppy_init()
658 for (dp = ebus_dp->child; dp; dp = dp->sibling) { in sun_floppy_init()
659 if (!strcmp(dp->name, "ecpp")) { in sun_floppy_init()
662 ecpp_op = of_find_device_by_node(dp); in sun_floppy_init()