Lines Matching refs:req
222 usb_device_request_t req; in uplcom_attach() local
268 req.bmRequestType = UT_READ_VENDOR_DEVICE; in uplcom_attach()
269 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_attach()
270 USETW(req.wValue, UPLCOM_HX_STATUS_REG); in uplcom_attach()
271 USETW(req.wIndex, sc->sc_iface_number); in uplcom_attach()
272 USETW(req.wLength, 1); in uplcom_attach()
273 err = usbd_do_request(sc->sc_udev, &req, &val); in uplcom_attach()
442 usb_device_request_t req; in uplcom_reset() local
445 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_reset()
446 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_reset()
447 USETW(req.wValue, 0); in uplcom_reset()
448 USETW(req.wIndex, sc->sc_iface_number); in uplcom_reset()
449 USETW(req.wLength, 0); in uplcom_reset()
451 err = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_reset()
461 usb_device_request_t req; in uplcom_set_line_state() local
473 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in uplcom_set_line_state()
474 req.bRequest = UCDC_SET_CONTROL_LINE_STATE; in uplcom_set_line_state()
475 USETW(req.wValue, ls); in uplcom_set_line_state()
476 USETW(req.wIndex, sc->sc_iface_number); in uplcom_set_line_state()
477 USETW(req.wLength, 0); in uplcom_set_line_state()
479 (void)usbd_do_request(sc->sc_udev, &req, 0); in uplcom_set_line_state()
533 usb_device_request_t req; in uplcom_break() local
537 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in uplcom_break()
538 req.bRequest = UCDC_SEND_BREAK; in uplcom_break()
539 USETW(req.wValue, onoff ? UCDC_BREAK_ON : UCDC_BREAK_OFF); in uplcom_break()
540 USETW(req.wIndex, sc->sc_iface_number); in uplcom_break()
541 USETW(req.wLength, 0); in uplcom_break()
543 (void)usbd_do_request(sc->sc_udev, &req, 0); in uplcom_break()
549 usb_device_request_t req; in uplcom_set_crtscts() local
554 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_set_crtscts()
556 req.bRequest = UPLCOM_HXN_SET_REQUEST; in uplcom_set_crtscts()
557 USETW(req.wValue, UPLCOM_HXN_SET_CRTSCTS_REG); in uplcom_set_crtscts()
558 USETW(req.wIndex, UPLCOM_HXN_SET_CRTSCTS); in uplcom_set_crtscts()
560 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_set_crtscts()
561 USETW(req.wValue, 0); in uplcom_set_crtscts()
562 USETW(req.wIndex, (sc->sc_type == UPLCOM_TYPE_HX ? in uplcom_set_crtscts()
565 USETW(req.wLength, 0); in uplcom_set_crtscts()
567 err = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_set_crtscts()
581 usb_device_request_t req; in uplcom_set_line_coding() local
593 req.bmRequestType = UT_WRITE_CLASS_INTERFACE; in uplcom_set_line_coding()
594 req.bRequest = UCDC_SET_LINE_CODING; in uplcom_set_line_coding()
595 USETW(req.wValue, 0); in uplcom_set_line_coding()
596 USETW(req.wIndex, sc->sc_iface_number); in uplcom_set_line_coding()
597 USETW(req.wLength, UCDC_LINE_STATE_LENGTH); in uplcom_set_line_coding()
599 err = usbd_do_request(sc->sc_udev, &req, state); in uplcom_set_line_coding()
666 usb_device_request_t req; in uplcom_open() local
693 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_open()
694 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_open()
695 USETW(req.wValue, 2); in uplcom_open()
696 USETW(req.wIndex, 0x44); in uplcom_open()
697 USETW(req.wLength, 0); in uplcom_open()
699 uerr = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_open()
704 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_open()
705 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_open()
706 USETW(req.wValue, 8); in uplcom_open()
707 USETW(req.wIndex, 0); in uplcom_open()
708 USETW(req.wLength, 0); in uplcom_open()
710 uerr = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_open()
714 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_open()
715 req.bRequest = UPLCOM_SET_REQUEST; in uplcom_open()
716 USETW(req.wValue, 9); in uplcom_open()
717 USETW(req.wIndex, 0); in uplcom_open()
718 USETW(req.wLength, 0); in uplcom_open()
720 uerr = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_open()
727 req.bmRequestType = UT_WRITE_VENDOR_DEVICE; in uplcom_open()
728 req.bRequest = UPLCOM_HXN_SET_REQUEST; in uplcom_open()
729 USETW(req.wValue, 0x07); in uplcom_open()
730 USETW(req.wIndex, 0x03); in uplcom_open()
731 USETW(req.wLength, 0); in uplcom_open()
733 uerr = usbd_do_request(sc->sc_udev, &req, 0); in uplcom_open()