Lines Matching full:proxy
57 device_t proxy; member
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; member
97 * Call the callback routines for both the proxy and the target. If either
105 error = e->proxy.callback(RENDEZVOUS_ATTACH, e); in rendezvous_attach()
109 e->proxy.callback(RENDEZVOUS_DETACH, e); in rendezvous_attach()
118 * Create an entry for the proxy in the rendezvous list. The name parameter
135 e->proxy.name = device_get_nameunit(dev); in rendezvous_register_proxy()
136 e->proxy.device = dev; in rendezvous_register_proxy()
137 e->proxy.callback = callback; in rendezvous_register_proxy()
138 return (rendezvous_attach(e, &e->proxy)); in rendezvous_register_proxy()
142 e->proxy.name = device_get_nameunit(dev); in rendezvous_register_proxy()
143 e->proxy.device = dev; in rendezvous_register_proxy()
144 e->proxy.callback = callback; in rendezvous_register_proxy()
152 * Returns ENXIO if the proxy has not yet registered.
178 * Remove the registration for the proxy.
187 if (e->proxy.device == dev) { in rendezvous_unregister_proxy()
193 e->proxy.callback(RENDEZVOUS_DETACH, e); in rendezvous_unregister_proxy()
196 e->proxy.device = NULL; in rendezvous_unregister_proxy()
197 e->proxy.callback = NULL; in rendezvous_unregister_proxy()
215 if (e->proxy.device == NULL) { in rendezvous_unregister_target()
220 e->proxy.callback(RENDEZVOUS_DETACH, e); in rendezvous_unregister_target()
232 * Functions of the proxy that is interposed between the ethernet interface
239 struct miiproxy_softc *sc = device_get_softc(rendezvous->proxy.device); in miiproxy_rendezvous_callback()
255 device_set_desc(dev, "MII/MDIO proxy, MII side"); in miiproxy_probe()
342 device_set_desc(dev, "MII/MDIO proxy, MDIO side"); in mdioproxy_probe()
366 * Attach this proxy in place of miibus. The target MDIO must be attached
388 sc->proxy = miiproxy; in mii_attach_proxy()
390 device_printf(dev, "can't attach proxy\n"); in mii_attach_proxy()