Lines Matching refs:of_node
29 if ((!matches) || (!dev->of_node)) in of_match_device()
31 return of_match_node(matches, dev->of_node); in of_match_device()
58 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add()
70 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
218 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
222 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias()
223 dev->of_node->type); in of_device_get_modalias()
229 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_get_modalias()
298 if ((!dev) || (!dev->of_node)) in of_device_uevent()
301 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent()
302 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
303 if (dev->of_node->type && strcmp("<NULL>", dev->of_node->type) != 0) in of_device_uevent()
304 add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type); in of_device_uevent()
309 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_uevent()
318 if (dev->of_node == app->np) { in of_device_uevent()
331 if ((!dev) || (!dev->of_node)) in of_device_uevent_modalias()