Lines Matching defs:proxy
57 device_t proxy;
66 * match up, so that the proxy endpoint can be associated with a target
67 * endpoint. The proxy has to know the device name of the target that it
92 struct rendezvous_endpoint proxy;
97 * Call the callback routines for both the proxy and the target. If either
105 error = e->proxy.callback(RENDEZVOUS_ATTACH, e);
109 e->proxy.callback(RENDEZVOUS_DETACH, e);
118 * Create an entry for the proxy in the rendezvous list. The name parameter
135 e->proxy.name = device_get_nameunit(dev);
136 e->proxy.device = dev;
137 e->proxy.callback = callback;
138 return (rendezvous_attach(e, &e->proxy));
142 e->proxy.name = device_get_nameunit(dev);
143 e->proxy.device = dev;
144 e->proxy.callback = callback;
152 * Returns ENXIO if the proxy has not yet registered.
178 * Remove the registration for the proxy.
187 if (e->proxy.device == dev) {
193 e->proxy.callback(RENDEZVOUS_DETACH, e);
196 e->proxy.device = NULL;
197 e->proxy.callback = NULL;
215 if (e->proxy.device == NULL) {
220 e->proxy.callback(RENDEZVOUS_DETACH, e);
232 * Functions of the proxy that is interposed between the ethernet interface
239 struct miiproxy_softc *sc = device_get_softc(rendezvous->proxy.device);
255 device_set_desc(dev, "MII/MDIO proxy, MII side");
342 device_set_desc(dev, "MII/MDIO proxy, MDIO side");
366 * Attach this proxy in place of miibus. The target MDIO must be attached
388 sc->proxy = miiproxy;
390 device_printf(dev, "can't attach proxy\n");