Lines Matching refs:req

540 	struct usb_device_request req;
543 req.bmRequestType = UT_WRITE_VENDOR_INTERFACE;
544 req.bRequest = UMCPC_SET_LINK;
545 USETW(req.wValue, UMCPC_CM_MOBILE_ACM);
546 USETW(req.wIndex, sc->sc_ctrl_iface_no);
547 USETW(req.wLength, sc->sc_modetable[0]);
550 &req, sc->sc_modetable, 0, 1000);
562 struct usb_device_request req;
565 req.bmRequestType = UT_WRITE_VENDOR_INTERFACE;
566 req.bRequest = UMCPC_ACTIVATE_MODE;
567 USETW(req.wValue, state);
568 USETW(req.wIndex, sc->sc_ctrl_iface_no);
569 USETW(req.wLength, 0);
572 &req, NULL, 0, 1000);
585 struct usb_device_request req;
606 req.bmRequestType = UT_READ_CLASS_INTERFACE;
607 req.bRequest = UCDC_GET_ENCAPSULATED_RESPONSE;
608 USETW(req.wIndex, sc->sc_ctrl_iface_no);
609 USETW(req.wValue, 0);
610 USETW(req.wLength, UFOMA_CMD_BUF_SIZE);
613 usbd_copy_in(pc0, 0, &req, sizeof(req));
615 usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
637 struct usb_device_request req;
648 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
649 req.bRequest = UCDC_SEND_ENCAPSULATED_COMMAND;
650 USETW(req.wIndex, sc->sc_ctrl_iface_no);
651 USETW(req.wValue, 0);
652 USETW(req.wLength, 1);
655 usbd_copy_in(pc, 0, &req, sizeof(req));
657 usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
875 struct usb_device_request req;
887 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
888 req.bRequest = UCDC_SEND_BREAK;
889 USETW(req.wValue, wValue);
890 req.wIndex[0] = sc->sc_ctrl_iface_no;
891 req.wIndex[1] = 0;
892 USETW(req.wLength, 0);
895 &req, NULL, 0, 1000);
911 struct usb_device_request req;
917 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
918 req.bRequest = UCDC_SET_CONTROL_LINE_STATE;
919 USETW(req.wValue, sc->sc_line);
920 req.wIndex[0] = sc->sc_ctrl_iface_no;
921 req.wIndex[1] = 0;
922 USETW(req.wLength, 0);
925 &req, NULL, 0, 1000);
970 struct usb_device_request req;
1014 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
1015 req.bRequest = UCDC_SET_LINE_CODING;
1016 USETW(req.wValue, 0);
1017 req.wIndex[0] = sc->sc_ctrl_iface_no;
1018 req.wIndex[1] = 0;
1019 USETW(req.wLength, UCDC_LINE_STATE_LENGTH);
1022 &req, &ls, 0, 1000);
1208 sysctl_handle_string(oidp, sbuf_data(&sb), sbuf_len(&sb), req);
1223 sysctl_handle_string(oidp, mode, strlen(mode), req);
1243 error = sysctl_handle_string(oidp, subbuf, sizeof(subbuf), req);
1244 if(error != 0 || req->newptr == NULL){