Lines Matching defs:port
57 /* First try to find a port@<idx> node */
58 snprintf(portnode, sizeof(portnode), "port@%d", idx);
80 ofw_graph_port_get_num_endpoints(phandle_t port)
87 for (num = 0, child = OF_child(port); child != 0;
103 ofw_graph_get_endpoint_by_idx(phandle_t port, uint32_t idx)
109 endpoint = ofw_bus_find_child(port, "endpoint");
114 for (child = OF_child(port); child != 0; child = OF_peer(child)) {
147 /* go to the port@X node */
170 phandle_t outport, port, endpoint, remote;
172 port = ofw_graph_get_port_by_idx(node, port_id);
173 if (port == 0)
175 endpoint = ofw_graph_get_endpoint_by_idx(port, ep_id);