• Home
  • Raw
  • Download

Lines Matching refs:fwnode

17 	struct fwnode_handle fwnode;  member
36 bool is_software_node(const struct fwnode_handle *fwnode) in is_software_node() argument
38 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &software_node_ops; in is_software_node()
48 struct swnode, fwnode) : NULL; \
53 struct fwnode_handle *fwnode = dev_fwnode(dev); in dev_to_swnode() local
55 if (!fwnode) in dev_to_swnode()
58 if (!is_software_node(fwnode)) in dev_to_swnode()
59 fwnode = fwnode->secondary; in dev_to_swnode()
61 return to_swnode(fwnode); in dev_to_swnode()
87 const struct software_node *to_software_node(const struct fwnode_handle *fwnode) in to_software_node() argument
89 const struct swnode *swnode = to_swnode(fwnode); in to_software_node()
99 return swnode ? &swnode->fwnode : NULL; in software_node_fwnode()
363 static struct fwnode_handle *software_node_get(struct fwnode_handle *fwnode) in software_node_get() argument
365 struct swnode *swnode = to_swnode(fwnode); in software_node_get()
369 return &swnode->fwnode; in software_node_get()
372 static void software_node_put(struct fwnode_handle *fwnode) in software_node_put() argument
374 struct swnode *swnode = to_swnode(fwnode); in software_node_put()
379 static bool software_node_property_present(const struct fwnode_handle *fwnode, in software_node_property_present() argument
382 struct swnode *swnode = to_swnode(fwnode); in software_node_property_present()
387 static int software_node_read_int_array(const struct fwnode_handle *fwnode, in software_node_read_int_array() argument
392 struct swnode *swnode = to_swnode(fwnode); in software_node_read_int_array()
398 static int software_node_read_string_array(const struct fwnode_handle *fwnode, in software_node_read_string_array() argument
402 struct swnode *swnode = to_swnode(fwnode); in software_node_read_string_array()
409 software_node_get_name(const struct fwnode_handle *fwnode) in software_node_get_name() argument
411 const struct swnode *swnode = to_swnode(fwnode); in software_node_get_name()
420 software_node_get_name_prefix(const struct fwnode_handle *fwnode) in software_node_get_name_prefix() argument
425 parent = fwnode_get_parent(fwnode); in software_node_get_name_prefix()
441 software_node_get_parent(const struct fwnode_handle *fwnode) in software_node_get_parent() argument
443 struct swnode *swnode = to_swnode(fwnode); in software_node_get_parent()
448 return fwnode_handle_get(&swnode->parent->fwnode); in software_node_get_parent()
452 software_node_get_next_child(const struct fwnode_handle *fwnode, in software_node_get_next_child() argument
455 struct swnode *p = to_swnode(fwnode); in software_node_get_next_child()
470 return fwnode_handle_get(&c->fwnode); in software_node_get_next_child()
474 software_node_get_named_child_node(const struct fwnode_handle *fwnode, in software_node_get_named_child_node() argument
477 struct swnode *swnode = to_swnode(fwnode); in software_node_get_named_child_node()
486 return &child->fwnode; in software_node_get_named_child_node()
493 software_node_get_reference_args(const struct fwnode_handle *fwnode, in software_node_get_reference_args() argument
498 struct swnode *swnode = to_swnode(fwnode); in software_node_get_reference_args()
550 args->fwnode = software_node_get(refnode); in software_node_get_reference_args()
676 fwnode_init(&swnode->fwnode, &software_node_ops); in swnode_register()
699 return &swnode->fwnode; in swnode_register()
822 fwnode_remove_software_node(&swnode->fwnode); in software_node_unregister()
858 void fwnode_remove_software_node(struct fwnode_handle *fwnode) in fwnode_remove_software_node() argument
860 struct swnode *swnode = to_swnode(fwnode); in fwnode_remove_software_node()
898 set_secondary_fwnode(dev, &swnode->fwnode); in device_add_software_node()