• Home
  • Raw
  • Download

Lines Matching refs:np

46 void __of_detach_node_sysfs(struct device_node *np)  in __of_detach_node_sysfs()  argument
53 BUG_ON(!of_node_is_initialized(np)); in __of_detach_node_sysfs()
58 if (of_node_is_attached(np)) { in __of_detach_node_sysfs()
59 for_each_property_of_node(np, pp) in __of_detach_node_sysfs()
60 __of_sysfs_remove_bin_file(np, pp); in __of_detach_node_sysfs()
61 kobject_del(&np->kobj); in __of_detach_node_sysfs()
65 of_node_put(np); in __of_detach_node_sysfs()
204 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument
210 if (!of_node_is_attached(np)) in of_property_notify()
213 pr.dn = np; in of_property_notify()
219 void __of_attach_node(struct device_node *np) in __of_attach_node() argument
224 np->name = __of_get_property(np, "name", NULL) ? : "<NULL>"; in __of_attach_node()
225 np->type = __of_get_property(np, "device_type", NULL) ? : "<NULL>"; in __of_attach_node()
227 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node()
229 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node()
231 phandle = __of_get_property(np, "ibm,phandle", &sz); in __of_attach_node()
232 np->phandle = (phandle && (sz >= 4)) ? be32_to_cpup(phandle) : 0; in __of_attach_node()
234 np->child = NULL; in __of_attach_node()
235 np->sibling = np->parent->child; in __of_attach_node()
236 np->parent->child = np; in __of_attach_node()
237 of_node_clear_flag(np, OF_DETACHED); in __of_attach_node()
243 int of_attach_node(struct device_node *np) in of_attach_node() argument
249 rd.dn = np; in of_attach_node()
253 __of_attach_node(np); in of_attach_node()
256 __of_attach_node_sysfs(np); in of_attach_node()
264 void __of_detach_node(struct device_node *np) in __of_detach_node() argument
268 if (WARN_ON(of_node_check_flag(np, OF_DETACHED))) in __of_detach_node()
271 parent = np->parent; in __of_detach_node()
275 if (parent->child == np) in __of_detach_node()
276 parent->child = np->sibling; in __of_detach_node()
279 for (prevsib = np->parent->child; in __of_detach_node()
280 prevsib->sibling != np; in __of_detach_node()
283 prevsib->sibling = np->sibling; in __of_detach_node()
286 of_node_set_flag(np, OF_DETACHED); in __of_detach_node()
295 int of_detach_node(struct device_node *np) in of_detach_node() argument
302 rd.dn = np; in of_detach_node()
306 __of_detach_node(np); in of_detach_node()
309 __of_detach_node_sysfs(np); in of_detach_node()
409 struct device_node *__of_node_dup(const struct device_node *np, const char *fmt, ...) in __of_node_dup() argument
430 if (np) { in __of_node_dup()
432 for_each_property_of_node(np, pp) { in __of_node_dup()
453 of_node_put(ce->np); in __of_changeset_entry_destroy()
466 ce->np->full_name, ce->prop->name); in __of_changeset_entry_dump()
471 ce->np->full_name); in __of_changeset_entry_dump()
527 rd.dn = ce->np; in __of_changeset_entry_notify()
533 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_notify()
542 pr_err("changeset notifier error @%s\n", ce->np->full_name); in __of_changeset_entry_notify()
556 __of_attach_node(ce->np); in __of_changeset_entry_apply()
559 __of_detach_node(ce->np); in __of_changeset_entry_apply()
563 for (propp = &ce->np->deadprops; *propp; propp = &(*propp)->next) { in __of_changeset_entry_apply()
571 ret = __of_add_property(ce->np, ce->prop); in __of_changeset_entry_apply()
574 ce->np->full_name, in __of_changeset_entry_apply()
580 ret = __of_remove_property(ce->np, ce->prop); in __of_changeset_entry_apply()
583 ce->np->full_name, in __of_changeset_entry_apply()
591 for (propp = &ce->np->deadprops; *propp; propp = &(*propp)->next) { in __of_changeset_entry_apply()
599 ret = __of_update_property(ce->np, ce->prop, &old_prop); in __of_changeset_entry_apply()
602 ce->np->full_name, in __of_changeset_entry_apply()
617 __of_attach_node_sysfs(ce->np); in __of_changeset_entry_apply()
620 __of_detach_node_sysfs(ce->np); in __of_changeset_entry_apply()
624 __of_add_property_sysfs(ce->np, ce->prop); in __of_changeset_entry_apply()
627 __of_remove_property_sysfs(ce->np, ce->prop); in __of_changeset_entry_apply()
630 __of_update_property_sysfs(ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_apply()
795 struct device_node *np, struct property *prop) in of_changeset_action() argument
805 ce->np = of_node_get(np); in of_changeset_action()
809 ce->old_prop = of_find_property(np, prop->name, NULL); in of_changeset_action()