Lines Matching refs:sc_base

150           struct wsevsrc      sc_base;  member
264 sc->sc_base.me_dv = self; in wsmouse_attach()
279 sc->sc_base.me_ops = &wsmouse_srcops; in wsmouse_attach()
282 error = wsmux_attach_sc(wsmux_getmux(mux), &sc->sc_base); in wsmouse_attach()
328 if (sc->sc_base.me_parent != NULL) { in wsmouse_detach()
330 wsmux_detach_sc(&sc->sc_base); in wsmouse_detach()
335 evar = sc->sc_base.me_evp; in wsmouse_detach()
380 evar = sc->sc_base.me_evp; in wsmouse_input()
386 device_xname(sc->sc_base.me_dv), in wsmouse_input()
387 sc->sc_base.me_parent, evar)); in wsmouse_input()
487 aprint_error_dev(sc->sc_base.me_dv, in wsmouse_input()
523 device_xname(sc->sc_base.me_dv), evar)); in wsmouse_input()
538 evar = sc->sc_base.me_evp; in wsmouse_precision_scroll()
594 if (wsevent_inject(sc->sc_base.me_evp, events, 2) == 0) { in wsmouse_repeat()
709 DPRINTF(("wsmouseopen: %s mux=%p p=%p\n", device_xname(sc->sc_base.me_dv), in wsmouseopen()
710 sc->sc_base.me_parent, l)); in wsmouseopen()
720 if (sc->sc_base.me_evp != NULL) in wsmouseopen()
723 evar = &sc->sc_base.me_evar; in wsmouseopen()
725 sc->sc_base.me_evp = evar; in wsmouseopen()
730 device_xname(sc->sc_base.me_dv))); in wsmouseopen()
731 sc->sc_base.me_evp = NULL; in wsmouseopen()
743 struct wseventvar *evar = sc->sc_base.me_evp; in wsmouseclose()
746 DPRINTF(("wsmouseclose: %s mux=%p p=%p\n", device_xname(sc->sc_base.me_dv), in wsmouseclose()
747 sc->sc_base.me_parent, l)); in wsmouseclose()
754 sc->sc_base.me_evp = NULL; in wsmouseclose()
764 sc->sc_base.me_evp = evp; in wsmousedoopen()
791 KASSERTMSG(sc->sc_base.me_evp != NULL, "wsmouseread: evp == NULL\n"); in wsmouseread()
794 error = wsevent_read(sc->sc_base.me_evp, uio, flags); in wsmouseread()
842 if (sc->sc_base.me_evp == NULL) in wsmouse_do_ioctl()
844 sc->sc_base.me_evp->async = *(int *)data != 0; in wsmouse_do_ioctl()
848 if (sc->sc_base.me_evp == NULL) in wsmouse_do_ioctl()
850 if (-*(int *)data != sc->sc_base.me_evp->io->p_pgid in wsmouse_do_ioctl()
851 && *(int *)data != sc->sc_base.me_evp->io->p_pid) in wsmouse_do_ioctl()
856 if (sc->sc_base.me_evp == NULL) in wsmouse_do_ioctl()
858 if (*(int *)data != sc->sc_base.me_evp->io->p_pgid) in wsmouse_do_ioctl()
893 return wsevent_setversion(sc->sc_base.me_evp, *(int *)data); in wsmouse_do_ioctl()
921 if (sc->sc_base.me_evp == NULL) in wsmousepoll()
923 return (wsevent_poll(sc->sc_base.me_evp, events, l)); in wsmousepoll()
932 if (sc->sc_base.me_evp == NULL) in wsmousekqfilter()
934 return (wsevent_kqfilter(sc->sc_base.me_evp, kn)); in wsmousekqfilter()
943 if (sc->sc_base.me_evp != NULL) in wsmouse_mux_open()
954 sc->sc_base.me_evp = NULL; in wsmouse_mux_close()
969 if (sc->sc_base.me_parent != NULL || sc->sc_base.me_evp != NULL) in wsmouse_add_mux()
972 return (wsmux_attach_sc(muxsc, &sc->sc_base)); in wsmouse_add_mux()