Lines Matching refs:fwnode

45     struct fwnode_handle *fwnode;  member
52 struct fwnode_handle *(*get)(struct fwnode_handle *fwnode);
53 void (*put)(struct fwnode_handle *fwnode);
54 bool (*device_is_available)(const struct fwnode_handle *fwnode);
55 const void *(*device_get_match_data)(const struct fwnode_handle *fwnode,
57 bool (*property_present)(const struct fwnode_handle *fwnode,
59 int (*property_read_int_array)(const struct fwnode_handle *fwnode,
66 const char *(*get_name)(const struct fwnode_handle *fwnode);
67 const char *(*get_name_prefix)(const struct fwnode_handle *fwnode);
68 struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode);
69 struct fwnode_handle *(*get_next_child_node)(const struct fwnode_handle *fwnode,
71 struct fwnode_handle *(*get_named_child_node)(const struct fwnode_handle *fwnode,
73 int (*get_reference_args)(const struct fwnode_handle *fwnode,
77 struct fwnode_handle *(*graph_get_next_endpoint)(const struct fwnode_handle *fwnode,
79 struct fwnode_handle *(*graph_get_remote_endpoint)(const struct fwnode_handle *fwnode);
80 struct fwnode_handle *(*graph_get_port_parent)(struct fwnode_handle *fwnode);
81 int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode,
83 int (*add_links)(struct fwnode_handle *fwnode);
86 #define fwnode_has_op(fwnode, op) \ argument
87 ((fwnode) && (fwnode)->ops && (fwnode)->ops->op)
88 #define fwnode_call_int_op(fwnode, op, ...) \ argument
89 …(fwnode ? (fwnode_has_op(fwnode, op) ? (fwnode)->ops->op(fwnode, ##__VA_ARGS__) : -ENXIO) : -EINVA…
91 #define fwnode_call_bool_op(fwnode, op, ...) \ argument
92 (fwnode_has_op(fwnode, op) ? (fwnode)->ops->op(fwnode, ##__VA_ARGS__) : false)
94 #define fwnode_call_ptr_op(fwnode, op, ...) \ argument
95 (fwnode_has_op(fwnode, op) ? (fwnode)->ops->op(fwnode, ##__VA_ARGS__) : NULL)
96 #define fwnode_call_void_op(fwnode, op, ...) \ argument
99 if (fwnode_has_op(fwnode, op)) \
100 (fwnode)->ops->op(fwnode, ##__VA_ARGS__); \
103 #define get_dev_from_fwnode(fwnode) ((fwnode)->dev) argument
105 static inline void fwnode_init(struct fwnode_handle *fwnode, in fwnode_init() argument
108 fwnode->ops = ops; in fwnode_init()
109 rt_list_init(&fwnode->consumers); in fwnode_init()
110 rt_list_init(&fwnode->suppliers); in fwnode_init()
113 static inline void fwnode_dev_initialized(struct fwnode_handle *fwnode, in fwnode_dev_initialized() argument
116 if (!fwnode) in fwnode_dev_initialized()
120 fwnode->flags |= FWNODE_FLAG_INITIALIZED; in fwnode_dev_initialized()
122 fwnode->flags &= ~FWNODE_FLAG_INITIALIZED; in fwnode_dev_initialized()