Lines Matching +full:endpoint +full:- +full:config
15 /*-
16 * SPDX-License-Identifier: BSD-2-Clause
105 * are available to be transferred to the host for the specified endpoint.
212 .endpoint = UE_ADDR_ANY,
222 .endpoint = UE_ADDR_ANY,
296 if (uaa->usb_mode != USB_MODE_HOST) { in uvisor_probe()
299 if (uaa->info.bConfigIndex != UVISOR_CONFIG_INDEX) { in uvisor_probe()
302 if (uaa->info.bIfaceIndex != UVISOR_IFACE_INDEX) { in uvisor_probe()
322 mtx_init(&sc->sc_mtx, "uvisor", NULL, MTX_DEF); in uvisor_attach()
323 ucom_ref(&sc->sc_super_ucom); in uvisor_attach()
325 sc->sc_udev = uaa->device; in uvisor_attach()
329 sc->sc_flag = USB_GET_DRIVER_INFO(uaa); in uvisor_attach()
330 sc->sc_iface_no = uaa->info.bIfaceNum; in uvisor_attach()
331 sc->sc_iface_index = UVISOR_IFACE_INDEX; in uvisor_attach()
333 error = uvisor_init(sc, uaa->device, uvisor_config_copy); in uvisor_attach()
340 error = usbd_transfer_setup(uaa->device, &sc->sc_iface_index, in uvisor_attach()
341 sc->sc_xfer, uvisor_config_copy, UVISOR_N_TRANSFER, in uvisor_attach()
342 sc, &sc->sc_mtx); in uvisor_attach()
348 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, in uvisor_attach()
349 &uvisor_callback, &sc->sc_mtx); in uvisor_attach()
354 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); in uvisor_attach()
370 ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom); in uvisor_detach()
371 usbd_transfer_unsetup(sc->sc_xfer, UVISOR_N_TRANSFER); in uvisor_detach()
385 if (ucom_unref(&sc->sc_super_ucom)) { in uvisor_free_softc()
386 mtx_destroy(&sc->sc_mtx); in uvisor_free_softc()
394 uvisor_free_softc(ucom->sc_parent); in uvisor_free()
398 uvisor_init(struct uvisor_softc *sc, struct usb_device *udev, struct usb_config *config) in uvisor_init() argument
407 if (sc->sc_flag & UVISOR_FLAG_VISOR) { in uvisor_init()
423 if (sc->sc_flag & UVISOR_FLAG_VISOR) { in uvisor_init()
457 if (sc->sc_flag & UVISOR_FLAG_PALM4) { in uvisor_init()
481 config[0].endpoint = (port & 0xF); /* output */ in uvisor_init()
482 config[1].endpoint = (port >> 4); /* input */ in uvisor_init()
485 config[0].endpoint = (port & 0xF); /* output */ in uvisor_init()
486 config[1].endpoint = (port & 0xF); /* input */ in uvisor_init()
500 if (sc->sc_flag & UVISOR_FLAG_PALM35) { in uvisor_init()
501 /* get the config number */ in uvisor_init()
502 DPRINTF("getting config info\n"); in uvisor_init()
555 struct uvisor_softc *sc = ucom->sc_parent; in uvisor_cfg_close()
566 err = ucom_cfg_do_request(sc->sc_udev, &sc->sc_ucom, in uvisor_cfg_close()
577 struct uvisor_softc *sc = ucom->sc_parent; in uvisor_start_read()
579 usbd_transfer_start(sc->sc_xfer[UVISOR_BULK_DT_RD]); in uvisor_start_read()
585 struct uvisor_softc *sc = ucom->sc_parent; in uvisor_stop_read()
587 usbd_transfer_stop(sc->sc_xfer[UVISOR_BULK_DT_RD]); in uvisor_stop_read()
593 struct uvisor_softc *sc = ucom->sc_parent; in uvisor_start_write()
595 usbd_transfer_start(sc->sc_xfer[UVISOR_BULK_DT_WR]); in uvisor_start_write()
601 struct uvisor_softc *sc = ucom->sc_parent; in uvisor_stop_write()
603 usbd_transfer_stop(sc->sc_xfer[UVISOR_BULK_DT_WR]); in uvisor_stop_write()
623 if (ucom_get_data(&sc->sc_ucom, pc, 0, in uvisor_write_callback()
659 ucom_put_data(&sc->sc_ucom, pc, 0, actlen); in uvisor_read_callback()