MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_ofw_node_match

Function rt_ofw_node_match

components/drivers/ofw/base.c:466–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466struct rt_ofw_node_id *rt_ofw_node_match(struct rt_ofw_node *np, const struct rt_ofw_node_id *ids)
467{
468 struct rt_ofw_prop *prop;
469 struct rt_ofw_node_id *id = RT_NULL;
470
471 if (np && ids && (prop = rt_ofw_get_prop(np, "compatible", RT_NULL)))
472 {
473 id = ofw_prop_match(prop, ids);
474 }
475
476 return id;
477}
478
479struct rt_ofw_node *rt_ofw_find_node_by_tag(struct rt_ofw_node *from, const char *tag)
480{

Callers 6

spi_matchFunction · 0.85
platform_matchFunction · 0.85
gicv2m_ofw_probeFunction · 0.85
gicv3_its_ofw_probeFunction · 0.85
i2c_matchFunction · 0.85

Calls 2

rt_ofw_get_propFunction · 0.85
ofw_prop_matchFunction · 0.85

Tested by

no test coverage detected