Lines Matching refs:dp
278 struct device_node *dp = op->dev.of_node; in build_device_resources() local
302 dp = pp; in build_device_resources()
303 pp = dp->parent; in build_device_resources()
310 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
312 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources()
340 static struct platform_device * __init scan_one_device(struct device_node *dp, in scan_one_device() argument
354 op->dev.of_node = dp; in scan_one_device()
356 intr = of_get_property(dp, "intr", &len); in scan_one_device()
364 of_get_property(dp, "interrupts", &len); in scan_one_device()
383 dev_set_name(&op->dev, "%08x", dp->phandle); in scan_one_device()
389 printk("%pOF: Could not register of device.\n", dp); in scan_one_device()
397 static void __init scan_tree(struct device_node *dp, struct device *parent) in scan_tree() argument
399 while (dp) { in scan_tree()
400 struct platform_device *op = scan_one_device(dp, parent); in scan_tree()
403 scan_tree(dp->child, &op->dev); in scan_tree()
405 dp = dp->sibling; in scan_tree()