Lines Matching refs:dp
276 struct device_node *dp = op->dev.of_node; in build_device_resources() local
300 dp = pp; in build_device_resources()
301 pp = dp->parent; in build_device_resources()
308 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
310 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources()
338 static struct platform_device * __init scan_one_device(struct device_node *dp, in scan_one_device() argument
352 op->dev.of_node = dp; in scan_one_device()
354 intr = of_get_property(dp, "intr", &len); in scan_one_device()
362 of_get_property(dp, "interrupts", &len); in scan_one_device()
381 dev_set_name(&op->dev, "%08x", dp->phandle); in scan_one_device()
385 dp->full_name); in scan_one_device()
393 static void __init scan_tree(struct device_node *dp, struct device *parent) in scan_tree() argument
395 while (dp) { in scan_tree()
396 struct platform_device *op = scan_one_device(dp, parent); in scan_tree()
399 scan_tree(dp->child, &op->dev); in scan_tree()
401 dp = dp->sibling; in scan_tree()