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

Function of_find_compatible_node

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

Source from the content-addressed store, hash-verified

298}
299
300const struct device_node *
301of_find_compatible_node(const struct device_node *from,
302 const char *type __rte_unused,
303 const char *compatible)
304{
305 const struct dt_dir *d;
306
307 DPAAX_HWWARN(!alive, "Device-tree driver not initialised!");
308
309 if (list_empty(&linear))
310 return NULL;
311 if (!from)
312 d = list_entry(linear.next, struct dt_dir, linear);
313 else
314 d = node2dir(from);
315 for (d = next_linear(d); d && (!d->compatible ||
316 !check_compatible(d->compatible,
317 compatible));
318 d = next_linear(d))
319 ;
320 if (d)
321 return &d->node.node;
322 return NULL;
323}
324
325const void *
326of_get_property(const struct device_node *from, const char *name,

Callers 5

pmd_pfe_probeFunction · 0.85
fman_if_initFunction · 0.85
fman_initFunction · 0.85
bman_global_initFunction · 0.85
qman_global_initFunction · 0.85

Calls 4

list_emptyFunction · 0.85
node2dirFunction · 0.85
next_linearFunction · 0.85
check_compatibleFunction · 0.85

Tested by

no test coverage detected