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()
68 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add()
185 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
189 csize = snprintf(str, len, "of:N%sT%s", dev->of_node->name, in of_device_get_modalias()
190 dev->of_node->type); in of_device_get_modalias()
193 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_get_modalias()
238 if ((!dev) || (!dev->of_node)) in of_device_uevent()
241 add_uevent_var(env, "OF_NAME=%s", dev->of_node->name); in of_device_uevent()
242 add_uevent_var(env, "OF_FULLNAME=%s", dev->of_node->full_name); in of_device_uevent()
243 if (dev->of_node->type && strcmp("<NULL>", dev->of_node->type) != 0) in of_device_uevent()
244 add_uevent_var(env, "OF_TYPE=%s", dev->of_node->type); in of_device_uevent()
249 compat = of_get_property(dev->of_node, "compatible", &cplen); in of_device_uevent()
262 if (dev->of_node == app->np) { in of_device_uevent()
275 if ((!dev) || (!dev->of_node)) in of_device_uevent_modalias()