Searched refs:xctrl (Results 1 – 1 of 1) sorted by relevance
515 struct xctrl_softc *xctrl; in xctrl_attach() local517 xctrl = device_get_softc(dev); in xctrl_attach()520 xctrl->xctrl_watch.node = "control/shutdown"; in xctrl_attach()521 xctrl->xctrl_watch.callback = xctrl_on_watch_event; in xctrl_attach()522 xctrl->xctrl_watch.callback_data = (uintptr_t)xctrl; in xctrl_attach()523 xs_register_watch(&xctrl->xctrl_watch); in xctrl_attach()544 struct xctrl_softc *xctrl; in xctrl_detach() local546 xctrl = device_get_softc(dev); in xctrl_detach()549 xs_unregister_watch(&xctrl->xctrl_watch); in xctrl_detach()565 DEFINE_CLASS_0(xctrl, xctrl_driver, xctrl_methods, sizeof(struct xctrl_softc));[all …]