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()
222 if ((!dev) || (!dev->of_node)) in of_device_get_modalias()
227 csize = snprintf(str, len, "of:N%pOFn%c%s", dev->of_node, 'T', in of_device_get_modalias()
228 of_node_get_device_type(dev->of_node)); in of_device_get_modalias()
234 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_get_modalias()
303 if ((!dev) || (!dev->of_node)) in of_device_uevent()
306 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
307 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
308 type = of_node_get_device_type(dev->of_node); in of_device_uevent()
315 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_uevent()
324 if (dev->of_node == app->np) { in of_device_uevent()
337 if ((!dev) || (!dev->of_node)) in of_device_uevent_modalias()