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

Function of_find_node_by_phandle

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

Source from the content-addressed store, hash-verified

358}
359
360const struct device_node *
361of_find_node_by_phandle(uint64_t ph)
362{
363 const struct dt_dir *d;
364
365 DPAAX_HWWARN(!alive, "Device-tree driver not initialised!");
366 list_for_each_entry(d, &linear, linear)
367 if (d->lphandle && (d->lphandle->len == 4) &&
368 !memcmp(d->lphandle->buf, &ph, 4))
369 return &d->node.node;
370 return NULL;
371}
372
373const struct device_node *
374of_get_parent(const struct device_node *dev_node)

Callers 1

fman_if_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected