Lines Matching refs:req
300 struct usb_device_request req;
317 req.bmRequestType = UT_READ_CLASS_INTERFACE;
318 req.bRequest = UCDC_NCM_GET_NTB_PARAMETERS;
319 USETW(req.wValue, 0);
320 req.wIndex[0] = sc->sc_ifaces_index[1];
321 req.wIndex[1] = 0;
322 USETW(req.wLength, sizeof(temp));
324 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
419 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
420 req.bRequest = UCDC_NCM_SET_NTB_INPUT_SIZE;
421 USETW(req.wValue, 0);
422 req.wIndex[0] = sc->sc_ifaces_index[1];
423 req.wIndex[1] = 0;
427 USETW(req.wLength, 8);
432 USETW(req.wLength, 4);
436 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
443 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
444 req.bRequest = UCDC_NCM_SET_CRC_MODE;
445 USETW(req.wValue, 0); /* no CRC */
446 req.wIndex[0] = sc->sc_ifaces_index[1];
447 req.wIndex[1] = 0;
448 USETW(req.wLength, 0);
450 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
456 req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
457 req.bRequest = UCDC_NCM_SET_NTB_FORMAT;
458 USETW(req.wValue, 0); /* NTB-16 */
459 req.wIndex[0] = sc->sc_ifaces_index[1];
460 req.wIndex[1] = 0;
461 USETW(req.wLength, 0);
463 err = usbd_do_request_flags(sc->sc_ue.ue_udev, NULL, &req,
1034 const void *req, void **pptr, uint16_t *plen,