Home
last modified time | relevance | path

Searched refs:mtpStatus (Results 1 – 1 of 1) sorted by relevance

/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp507 struct UsbMtpDeviceStatus mtpStatus; in UsbMtpDeviceClassRequest() local
508 mtpStatus.wLength = CPU_TO_LE16(sizeof(mtpStatus)); in UsbMtpDeviceClassRequest()
510 mtpStatus.wCode = CPU_TO_LE16(MTP_RESPONSE_DEVICE_BUSY); in UsbMtpDeviceClassRequest()
512 mtpStatus.wCode = CPU_TO_LE16(MTP_RESPONSE_OK); in UsbMtpDeviceClassRequest()
514 responseBytes = static_cast<int32_t>(sizeof(mtpStatus)); in UsbMtpDeviceClassRequest()
515 if (memcpy_s(req->buf, responseBytes, &mtpStatus, responseBytes) != EOK) { in UsbMtpDeviceClassRequest()