Lines Matching refs:of_node
27 if ((!matches) || (!dev->of_node)) in of_match_device()
29 return of_match_node(matches, dev->of_node); in of_match_device()
56 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add()
67 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
172 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
176 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias()
177 dev->of_node->type); in of_device_get_modalias()
180 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_get_modalias()
225 if ((!dev) || (!dev->of_node)) in of_device_uevent()
228 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent()
229 add_uevent_var(env, "OF_FULLNAME=%s", dev->of_node->full_name); in of_device_uevent()
230 if (dev->of_node->type && strcmp("<NULL>", dev->of_node->type) != 0) in of_device_uevent()
231 add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type); in of_device_uevent()
236 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_uevent()
249 if (dev->of_node == app->np) { in of_device_uevent()
262 if ((!dev) || (!dev->of_node)) in of_device_uevent_modalias()