MCPcopy Create free account
hub / github.com/F-Stack/f-stack / node2dir

Function node2dir

dpdk/drivers/common/dpaax/dpaa_of.c:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static const struct dt_dir *
86node2dir(const struct device_node *n)
87{
88 struct dt_node *dn = container_of((struct device_node *)n,
89 struct dt_node, node);
90 const struct dt_dir *d = container_of(dn, struct dt_dir, node);
91
92 assert(!dn->is_file);
93 return d;
94}
95
96/* process_dir() calls iterate_dir(), but the latter will also call the former
97 * when recursing into sub-directories, so a predeclaration is needed.

Callers 10

of_find_compatible_nodeFunction · 0.85
of_get_propertyFunction · 0.85
of_device_is_availableFunction · 0.85
of_get_parentFunction · 0.85
of_get_next_childFunction · 0.85
of_n_addr_cellsFunction · 0.85
of_n_size_cellsFunction · 0.85
of_get_addressFunction · 0.85
of_translate_addressFunction · 0.85
of_device_is_compatibleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected