Lines Matching refs:of_node
30 if ((!matches) || (!dev->of_node)) in of_match_device()
32 return of_match_node(matches, dev->of_node); in of_match_device()
59 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add()
71 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
226 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
231 csize = snprintf(str, len, "of:N%pOFn%c%s", dev->of_node, 'T', in of_device_get_modalias()
232 of_node_get_device_type(dev->of_node)); in of_device_get_modalias()
238 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_get_modalias()
307 if ((!dev) || (!dev->of_node)) in of_device_uevent()
310 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
311 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
312 type = of_node_get_device_type(dev->of_node); in of_device_uevent()
319 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_uevent()
328 if (dev->of_node == app->np) { in of_device_uevent()
341 if ((!dev) || (!dev->of_node)) in of_device_uevent_modalias()