• Home
  • Raw
  • Download

Lines Matching refs:fwnode

73 	struct fwnode_handle *fwnode;  member
104 struct fwnode_handle *(*get)(struct fwnode_handle *fwnode);
105 void (*put)(struct fwnode_handle *fwnode);
106 bool (*device_is_available)(const struct fwnode_handle *fwnode);
107 const void *(*device_get_match_data)(const struct fwnode_handle *fwnode,
109 bool (*property_present)(const struct fwnode_handle *fwnode,
111 int (*property_read_int_array)(const struct fwnode_handle *fwnode,
119 const char *(*get_name)(const struct fwnode_handle *fwnode);
120 const char *(*get_name_prefix)(const struct fwnode_handle *fwnode);
121 struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode);
123 (*get_next_child_node)(const struct fwnode_handle *fwnode,
126 (*get_named_child_node)(const struct fwnode_handle *fwnode,
128 int (*get_reference_args)(const struct fwnode_handle *fwnode,
133 (*graph_get_next_endpoint)(const struct fwnode_handle *fwnode,
136 (*graph_get_remote_endpoint)(const struct fwnode_handle *fwnode);
138 (*graph_get_port_parent)(struct fwnode_handle *fwnode);
139 int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode,
141 int (*add_links)(struct fwnode_handle *fwnode);
144 #define fwnode_has_op(fwnode, op) \ argument
145 ((fwnode) && (fwnode)->ops && (fwnode)->ops->op)
146 #define fwnode_call_int_op(fwnode, op, ...) \ argument
147 (fwnode ? (fwnode_has_op(fwnode, op) ? \
148 (fwnode)->ops->op(fwnode, ## __VA_ARGS__) : -ENXIO) : \
151 #define fwnode_call_bool_op(fwnode, op, ...) \ argument
152 (fwnode_has_op(fwnode, op) ? \
153 (fwnode)->ops->op(fwnode, ## __VA_ARGS__) : false)
155 #define fwnode_call_ptr_op(fwnode, op, ...) \ argument
156 (fwnode_has_op(fwnode, op) ? \
157 (fwnode)->ops->op(fwnode, ## __VA_ARGS__) : NULL)
158 #define fwnode_call_void_op(fwnode, op, ...) \ argument
160 if (fwnode_has_op(fwnode, op)) \
161 (fwnode)->ops->op(fwnode, ## __VA_ARGS__); \
163 #define get_dev_from_fwnode(fwnode) get_device((fwnode)->dev) argument
165 static inline void fwnode_init(struct fwnode_handle *fwnode, in fwnode_init() argument
168 fwnode->ops = ops; in fwnode_init()
169 INIT_LIST_HEAD(&fwnode->consumers); in fwnode_init()
170 INIT_LIST_HEAD(&fwnode->suppliers); in fwnode_init()
173 static inline void fwnode_dev_initialized(struct fwnode_handle *fwnode, in fwnode_dev_initialized() argument
176 if (IS_ERR_OR_NULL(fwnode)) in fwnode_dev_initialized()
180 fwnode->flags |= FWNODE_FLAG_INITIALIZED; in fwnode_dev_initialized()
182 fwnode->flags &= ~FWNODE_FLAG_INITIALIZED; in fwnode_dev_initialized()
188 void fwnode_links_purge(struct fwnode_handle *fwnode);