scd 411 dev/usb/uhidev.c struct uhidev *scd; scd 449 dev/usb/uhidev.c scd = sc->sc_subdevs[rep]; scd 451 dev/usb/uhidev.c rep, scd, scd ? scd->sc_state : 0)); scd 452 dev/usb/uhidev.c if (scd == NULL || !(scd->sc_state & UHIDEV_OPEN)) scd 455 dev/usb/uhidev.c if (scd->sc_in_rep_size != cc) scd 457 dev/usb/uhidev.c scd->sc_in_rep_size, cc); scd 459 dev/usb/uhidev.c scd->sc_intr(scd, p, cc); scd 470 dev/usb/uhidev.c uhidev_open(struct uhidev *scd) scd 472 dev/usb/uhidev.c struct uhidev_softc *sc = scd->sc_parent; scd 477 dev/usb/uhidev.c scd->sc_state, sc->sc_refcnt)); scd 479 dev/usb/uhidev.c if (scd->sc_state & UHIDEV_OPEN) scd 481 dev/usb/uhidev.c scd->sc_state |= UHIDEV_OPEN; scd 557 dev/usb/uhidev.c scd->sc_state &= ~UHIDEV_OPEN; scd 573 dev/usb/uhidev.c uhidev_close(struct uhidev *scd) scd 575 dev/usb/uhidev.c struct uhidev_softc *sc = scd->sc_parent; scd 577 dev/usb/uhidev.c if (!(scd->sc_state & UHIDEV_OPEN)) scd 579 dev/usb/uhidev.c scd->sc_state &= ~UHIDEV_OPEN; scd 610 dev/usb/uhidev.c uhidev_set_report(struct uhidev *scd, int type, void *data, int len) scd 615 dev/usb/uhidev.c if (scd->sc_report_id == 0) scd 616 dev/usb/uhidev.c return usbd_set_report(scd->sc_parent->sc_iface, type, scd 617 dev/usb/uhidev.c scd->sc_report_id, data, len); scd 620 dev/usb/uhidev.c buf[0] = scd->sc_report_id; scd 623 dev/usb/uhidev.c retstat = usbd_set_report(scd->sc_parent->sc_iface, type, scd 624 dev/usb/uhidev.c scd->sc_report_id, data, len + 1); scd 632 dev/usb/uhidev.c uhidev_set_report_async(struct uhidev *scd, int type, void *data, int len) scd 636 dev/usb/uhidev.c if (scd->sc_report_id) { scd 637 dev/usb/uhidev.c buf[0] = scd->sc_report_id; scd 643 dev/usb/uhidev.c usbd_set_report_async(scd->sc_parent->sc_iface, type, scd 644 dev/usb/uhidev.c scd->sc_report_id, data, len); scd 648 dev/usb/uhidev.c uhidev_get_report(struct uhidev *scd, int type, void *data, int len) scd 650 dev/usb/uhidev.c return usbd_get_report(scd->sc_parent->sc_iface, type, scd 651 dev/usb/uhidev.c scd->sc_report_id, data, len); scd 94 dev/usb/uhidev.h usbd_status uhidev_set_report(struct uhidev *scd, int type, void *data,int len); scd 95 dev/usb/uhidev.h void uhidev_set_report_async(struct uhidev *scd, int type, void *data, int len); scd 96 dev/usb/uhidev.h usbd_status uhidev_get_report(struct uhidev *scd, int type, void *data,int len);