Home | History | Annotate | Download | only in fdt

Lines Matching refs:port

56 	int	port_phandle; /* port's node */
57 struct fdt_endpoint *port_ep; /* this port's endpoints */
58 int port_nep; /* number of endpoints for this port */
59 struct fdt_device_ports *port_dp; /* this port's device */
90 struct fdt_port *port = &ports->dp_port[p];
91 for (e = 0; e < port->port_nep; e++) {
92 struct fdt_endpoint *ep = &port->port_ep[e];
108 struct fdt_port *port = &device_ports->dp_port[p];
109 if (port->port_id != port_index)
111 for (e = 0; e < port->port_nep; e++) {
112 struct fdt_endpoint *ep = &port->port_ep[e];
193 aprint_debug_dev(rdp->dp_dev, "activating port %d endpoint %d\n",
210 aprint_debug_dev(dp->dp_dev, "activating port %d endpoint %d (direct)\n",
279 if (strcmp(buf, "port") != 0)
297 if (strcmp(buf, "port") != 0)
318 fdt_endpoints_register(int phandle, struct fdt_port *port,
328 port->port_nep = 0;
334 port->port_nep++;
336 if (port->port_nep == 0) {
337 port->port_ep = NULL;
341 port->port_ep =
342 kmem_zalloc(sizeof(struct fdt_endpoint) * port->port_nep, KM_SLEEP);
343 KASSERT(port->port_ep != NULL);
351 if (port->port_nep > 1)
352 aprint_debug_dev(port->port_dp->dp_dev,
357 ep = &port->port_ep[i];
361 ep->ep_port = port;
364 port->port_ep[i].ep_rphandle);
382 dp = port->port_dp;
391 KASSERT(i == port->port_nep);
402 a += snprintf(&buf[a], size - a, " port %d",