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

Function of_device_is_available

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

Source from the content-addressed store, hash-verified

342}
343
344bool
345of_device_is_available(const struct device_node *dev_node)
346{
347 const struct dt_dir *d;
348
349 DPAAX_HWWARN(!alive, "Device-tree driver not initialised!");
350 d = node2dir(dev_node);
351 if (!d->status)
352 return true;
353 if (!strcmp((char *)d->status->buf, "okay"))
354 return true;
355 if (!strcmp((char *)d->status->buf, "ok"))
356 return true;
357 return false;
358}
359
360const struct device_node *
361of_find_node_by_phandle(uint64_t ph)

Callers 1

fman_if_initFunction · 0.85

Calls 2

node2dirFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected