Lines Matching refs:cnode
479 phy_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, phy_t *phy) in phy_get_by_ofw_idx() argument
487 if (cnode <= 0) in phy_get_by_ofw_idx()
488 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_idx()
489 if (cnode <= 0) { in phy_get_by_ofw_idx()
494 rv = ofw_bus_parse_xref_list_alloc(cnode, "phys", "#phy-cells", idx, in phy_get_by_ofw_idx()
515 phy_get_by_ofw_name(device_t consumer_dev, phandle_t cnode, char *name, in phy_get_by_ofw_name() argument
520 if (cnode <= 0) in phy_get_by_ofw_name()
521 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_name()
522 if (cnode <= 0) { in phy_get_by_ofw_name()
527 rv = ofw_bus_find_string_index(cnode, "phy-names", name, &idx); in phy_get_by_ofw_name()
530 return (phy_get_by_ofw_idx(consumer_dev, cnode, idx, phy)); in phy_get_by_ofw_name()
534 phy_get_by_ofw_property(device_t consumer_dev, phandle_t cnode, char *name, in phy_get_by_ofw_property() argument
542 if (cnode <= 0) in phy_get_by_ofw_property()
543 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_property()
544 if (cnode <= 0) { in phy_get_by_ofw_property()
549 ncells = OF_getencprop_alloc_multi(cnode, name, sizeof(pcell_t), in phy_get_by_ofw_property()