Lines Matching defs:proxy
60 device_t proxy;
69 * match up, so that the proxy endpoint can be associated with a target
70 * endpoint. The proxy has to know the device name of the target that it
95 struct rendevous_endpoint proxy;
100 * Call the callback routines for both the proxy and the target. If either
108 error = e->proxy.callback(RENDEVOUS_ATTACH, e);
112 e->proxy.callback(RENDEVOUS_DETACH, e);
121 * Create an entry for the proxy in the rendevous list. The name parameter
138 e->proxy.name = device_get_nameunit(dev);
139 e->proxy.device = dev;
140 e->proxy.callback = callback;
141 return (rendevous_attach(e, &e->proxy));
145 e->proxy.name = device_get_nameunit(dev);
146 e->proxy.device = dev;
147 e->proxy.callback = callback;
155 * Returns ENXIO if the proxy has not yet registered.
181 * Remove the registration for the proxy.
190 if (e->proxy.device == dev) {
196 e->proxy.callback(RENDEVOUS_DETACH, e);
199 e->proxy.device = NULL;
200 e->proxy.callback = NULL;
218 if (e->proxy.device == NULL) {
223 e->proxy.callback(RENDEVOUS_DETACH, e);
235 * Functions of the proxy that is interposed between the ethernet interface
242 struct miiproxy_softc *sc = device_get_softc(rendevous->proxy.device);
258 device_set_desc(dev, "MII/MDIO proxy, MII side");
346 device_set_desc(dev, "MII/MDIO proxy, MDIO side");
369 * Attach this proxy in place of miibus. The target MDIO must be attached
396 sc->proxy = miiproxy;
398 device_printf(dev, "can't attach proxy\n");