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

Function rt_ofw_parse_phandle

components/drivers/ofw/base.c:1460–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460struct rt_ofw_node *rt_ofw_parse_phandle(const struct rt_ofw_node *np, const char *phandle_name, int index)
1461{
1462 struct rt_ofw_cell_args args;
1463 struct rt_ofw_node *ref_np = RT_NULL;
1464
1465 if (!rt_ofw_parse_phandle_cells(np, phandle_name, RT_NULL, index, &args))
1466 {
1467 ref_np = args.data;
1468 }
1469
1470 return ref_np;
1471}
1472
1473static rt_err_t ofw_parse_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char *cells_name,
1474 int index, struct rt_ofw_cell_args *out_args)

Callers 5

ofw_msi_pic_initFunction · 0.85
rt_ofw_create_phyFunction · 0.85
thermal_ofw_setupFunction · 0.85

Calls 1

Tested by

no test coverage detected