Lines Matching defs:req
258 struct usb_device_request req;
277 req.bmRequestType = UT_READ_CLASS_INTERFACE;
278 req.bRequest = UCDC_NCM_GET_NTB_PARAMETERS;
279 USETW(req.wValue, 0);
280 req.wIndex[0] = sc->sc_ifaces_index[1];
281 req.wIndex[1] = 0;
282 USETW(req.wLength, sizeof(temp));
284 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
381 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
382 req.bRequest = UCDC_NCM_SET_NTB_INPUT_SIZE;
383 USETW(req.wValue, 0);
384 req.wIndex[0] = sc->sc_ifaces_index[1];
385 req.wIndex[1] = 0;
389 USETW(req.wLength, 8);
394 USETW(req.wLength, 4);
398 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
405 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
406 req.bRequest = UCDC_NCM_SET_CRC_MODE;
407 USETW(req.wValue, 0); /* no CRC */
408 req.wIndex[0] = sc->sc_ifaces_index[1];
409 req.wIndex[1] = 0;
410 USETW(req.wLength, 0);
412 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
418 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
419 req.bRequest = UCDC_NCM_SET_NTB_FORMAT;
420 USETW(req.wValue, 0); /* NTB-16 */
421 req.wIndex[0] = sc->sc_ifaces_index[1];
422 req.wIndex[1] = 0;
423 USETW(req.wLength, 0);
425 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
967 struct usb_cdc_notification req;
1000 req.bmRequestType = UCDC_NOTIFICATION;
1001 req.bNotification = UCDC_N_NETWORK_CONNECTION;
1002 req.wIndex[0] = sc->sc_ifaces_index[1];
1003 req.wIndex[1] = 0;
1004 USETW(req.wValue, 1); /* Connected */
1005 USETW(req.wLength, 0);
1008 usbd_copy_in(pc, 0, &req, sizeof(req));
1009 usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
1013 req.bmRequestType = UCDC_NOTIFICATION;
1014 req.bNotification = UCDC_N_CONNECTION_SPEED_CHANGE;
1015 req.wIndex[0] = sc->sc_ifaces_index[1];
1016 req.wIndex[1] = 0;
1017 USETW(req.wValue, 0);
1018 USETW(req.wLength, 8);
1026 USETDW(req.data + 0, speed); /* Upstream bit rate */
1027 USETDW(req.data + 4, speed); /* Downstream bit rate */
1030 usbd_copy_in(pc, 0, &req, sizeof(req));
1031 usbd_xfer_set_frame_len(xfer, 0, sizeof(req));
1053 const struct usb_device_request *req = preq;
1060 if (req->bmRequestType == UT_WRITE_CLASS_INTERFACE && \
1061 req->bRequest == UCDC_NCM_SET_ETHERNET_PACKET_FILTER) {