swnode 24 drivers/base/swnode.c struct swnode *parent; swnode 32 drivers/base/swnode.c #define kobj_to_swnode(_kobj_) container_of(_kobj_, struct swnode, kobj) swnode 48 drivers/base/swnode.c struct swnode, fwnode) : NULL; \ swnode 51 drivers/base/swnode.c static struct swnode * swnode 54 drivers/base/swnode.c struct swnode *swnode = NULL; swnode 63 drivers/base/swnode.c swnode = kobj_to_swnode(k); swnode 64 drivers/base/swnode.c if (swnode->node == node) swnode 66 drivers/base/swnode.c swnode = NULL; swnode 71 drivers/base/swnode.c return swnode; swnode 76 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 78 drivers/base/swnode.c return swnode ? swnode->node : NULL; swnode 84 drivers/base/swnode.c struct swnode *swnode = software_node_to_swnode(node); swnode 86 drivers/base/swnode.c return swnode ? &swnode->fwnode : NULL; swnode 475 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 477 drivers/base/swnode.c kobject_get(&swnode->kobj); swnode 479 drivers/base/swnode.c return &swnode->fwnode; swnode 484 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 486 drivers/base/swnode.c kobject_put(&swnode->kobj); swnode 492 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 494 drivers/base/swnode.c return !!property_entry_get(swnode->node->properties, propname); swnode 502 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 504 drivers/base/swnode.c return property_entry_read_int_array(swnode->node->properties, propname, swnode 512 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 514 drivers/base/swnode.c return property_entry_read_string_array(swnode->node->properties, swnode 521 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 523 drivers/base/swnode.c if (!swnode || !swnode->parent) swnode 526 drivers/base/swnode.c return fwnode_handle_get(&swnode->parent->fwnode); swnode 533 drivers/base/swnode.c struct swnode *p = to_swnode(fwnode); swnode 534 drivers/base/swnode.c struct swnode *c = to_swnode(child); swnode 543 drivers/base/swnode.c c = list_first_entry(&p->children, struct swnode, entry); swnode 551 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 552 drivers/base/swnode.c struct swnode *child; swnode 554 drivers/base/swnode.c if (!swnode || list_empty(&swnode->children)) swnode 557 drivers/base/swnode.c list_for_each_entry(child, &swnode->children, entry) { swnode 572 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 578 drivers/base/swnode.c if (!swnode || !swnode->node->references) swnode 581 drivers/base/swnode.c for (ref = swnode->node->references; ref->name; ref++) swnode 593 drivers/base/swnode.c prop = property_entry_get(swnode->node->properties, nargs_prop); swnode 639 drivers/base/swnode.c struct swnode *swnode = NULL; swnode 648 drivers/base/swnode.c swnode = kobj_to_swnode(k); swnode 649 drivers/base/swnode.c if (parent == swnode->node->parent && swnode->node->name && swnode 650 drivers/base/swnode.c !strcmp(name, swnode->node->name)) { swnode 651 drivers/base/swnode.c kobject_get(&swnode->kobj); swnode 654 drivers/base/swnode.c swnode = NULL; swnode 659 drivers/base/swnode.c return swnode ? swnode->node : NULL; swnode 680 drivers/base/swnode.c struct swnode *swnode = kobj_to_swnode(kobj); swnode 682 drivers/base/swnode.c if (swnode->parent) { swnode 683 drivers/base/swnode.c ida_simple_remove(&swnode->parent->child_ids, swnode->id); swnode 684 drivers/base/swnode.c list_del(&swnode->entry); swnode 686 drivers/base/swnode.c ida_simple_remove(&swnode_root_ids, swnode->id); swnode 689 drivers/base/swnode.c if (swnode->allocated) { swnode 690 drivers/base/swnode.c property_entries_free(swnode->node->properties); swnode 691 drivers/base/swnode.c kfree(swnode->node); swnode 693 drivers/base/swnode.c ida_destroy(&swnode->child_ids); swnode 694 drivers/base/swnode.c kfree(swnode); swnode 703 drivers/base/swnode.c swnode_register(const struct software_node *node, struct swnode *parent, swnode 706 drivers/base/swnode.c struct swnode *swnode; swnode 709 drivers/base/swnode.c swnode = kzalloc(sizeof(*swnode), GFP_KERNEL); swnode 710 drivers/base/swnode.c if (!swnode) { swnode 718 drivers/base/swnode.c kfree(swnode); swnode 722 drivers/base/swnode.c swnode->id = ret; swnode 723 drivers/base/swnode.c swnode->node = node; swnode 724 drivers/base/swnode.c swnode->parent = parent; swnode 725 drivers/base/swnode.c swnode->allocated = allocated; swnode 726 drivers/base/swnode.c swnode->kobj.kset = swnode_kset; swnode 727 drivers/base/swnode.c swnode->fwnode.ops = &software_node_ops; swnode 729 drivers/base/swnode.c ida_init(&swnode->child_ids); swnode 730 drivers/base/swnode.c INIT_LIST_HEAD(&swnode->entry); swnode 731 drivers/base/swnode.c INIT_LIST_HEAD(&swnode->children); swnode 734 drivers/base/swnode.c ret = kobject_init_and_add(&swnode->kobj, &software_node_type, swnode 738 drivers/base/swnode.c ret = kobject_init_and_add(&swnode->kobj, &software_node_type, swnode 740 drivers/base/swnode.c "node%d", swnode->id); swnode 742 drivers/base/swnode.c kobject_put(&swnode->kobj); swnode 747 drivers/base/swnode.c list_add_tail(&swnode->entry, &parent->children); swnode 749 drivers/base/swnode.c kobject_uevent(&swnode->kobj, KOBJ_ADD); swnode 750 drivers/base/swnode.c return &swnode->fwnode; swnode 789 drivers/base/swnode.c struct swnode *swnode; swnode 793 drivers/base/swnode.c swnode = software_node_to_swnode(&nodes[i]); swnode 794 drivers/base/swnode.c if (swnode) swnode 795 drivers/base/swnode.c fwnode_remove_software_node(&swnode->fwnode); swnode 806 drivers/base/swnode.c struct swnode *parent = software_node_to_swnode(node->parent); swnode 820 drivers/base/swnode.c struct swnode *p = NULL; swnode 849 drivers/base/swnode.c struct swnode *swnode = to_swnode(fwnode); swnode 851 drivers/base/swnode.c if (!swnode) swnode 854 drivers/base/swnode.c kobject_put(&swnode->kobj); swnode 861 drivers/base/swnode.c struct swnode *swnode; swnode 872 drivers/base/swnode.c swnode = to_swnode(fwnode); swnode 876 drivers/base/swnode.c ret = sysfs_create_link(&dev->kobj, &swnode->kobj, swnode 881 drivers/base/swnode.c ret = sysfs_create_link(&swnode->kobj, &dev->kobj, swnode 887 drivers/base/swnode.c kobject_get(&swnode->kobj); swnode 890 drivers/base/swnode.c sysfs_remove_link(&swnode->kobj, dev_name(dev)); swnode 892 drivers/base/swnode.c kobject_put(&swnode->kobj);