Lines Matching refs:cnode
447 phy_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, phy_t *phy) in phy_get_by_ofw_idx() argument
455 if (cnode <= 0) in phy_get_by_ofw_idx()
456 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_idx()
457 if (cnode <= 0) { in phy_get_by_ofw_idx()
462 rv = ofw_bus_parse_xref_list_alloc(cnode, "phys", "#phy-cells", idx, in phy_get_by_ofw_idx()
483 phy_get_by_ofw_name(device_t consumer_dev, phandle_t cnode, char *name, in phy_get_by_ofw_name() argument
488 if (cnode <= 0) in phy_get_by_ofw_name()
489 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_name()
490 if (cnode <= 0) { in phy_get_by_ofw_name()
495 rv = ofw_bus_find_string_index(cnode, "phy-names", name, &idx); in phy_get_by_ofw_name()
498 return (phy_get_by_ofw_idx(consumer_dev, cnode, idx, phy)); in phy_get_by_ofw_name()
502 phy_get_by_ofw_property(device_t consumer_dev, phandle_t cnode, char *name, in phy_get_by_ofw_property() argument
510 if (cnode <= 0) in phy_get_by_ofw_property()
511 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_property()
512 if (cnode <= 0) { in phy_get_by_ofw_property()
517 ncells = OF_getencprop_alloc_multi(cnode, name, sizeof(pcell_t), in phy_get_by_ofw_property()