Lines Matching refs:req
443 struct UsbRawRequest *req = (struct UsbRawRequest *)requestArg;
444 if (req == NULL) {
445 HDF_LOGE("%{public}s:%{public}d req is null!", __func__, __LINE__);
448 struct AcmWb *wb = (struct AcmWb *)req->userData;
454 if (req->status != USB_REQUEST_COMPLETED) {
455 HDF_LOGE("%{public}s: write req failed, status = %{public}d", __func__, req->status);
1038 const struct UsbRawRequest *req, struct AcmDevice *acm, unsigned int currentSize, unsigned int expectedSize)
1053 int32_t ret = memcpy_s(&acm->notificationBuffer[acm->nbIndex], acm->nbSize - acm->nbIndex, req->buffer, copySize);
1064 struct UsbRawRequest *req = (struct UsbRawRequest *)requestArg;
1065 if (req == NULL) {
1066 HDF_LOGE("%{public}s:%{public}d req is NULL!", __func__, __LINE__);
1069 struct AcmDevice *acm = (struct AcmDevice *)req->userData;
1074 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer;
1076 HDF_LOGE("%{public}s:%{public}d req->buffer(dr) is NULL!", __func__, __LINE__);
1079 unsigned int currentSize = (unsigned int)req->actualLength;
1082 HDF_LOGD("Irqstatus:%{public}d,actualLength:%{public}u", req->status, currentSize);
1084 if (req->status != USB_REQUEST_COMPLETED) {
1098 if (AcmNotificationBufferProcess(req, acm, currentSize, expectedSize) != HDF_SUCCESS) {
1108 if (UsbRawSubmitRequest(req) != HDF_SUCCESS) {
1118 struct UsbRawRequest *req = (struct UsbRawRequest *)requestArg;
1119 if (req == NULL) {
1120 HDF_LOGE("%{public}s:%{public}d req is NULL!", __func__, __LINE__);
1123 struct AcmDevice *acm = (struct AcmDevice *)req->userData;
1128 size_t size = (size_t)req->actualLength;
1130 if (req->status != USB_REQUEST_COMPLETED) {
1131 HDF_LOGW("%{public}s: the request is failed, status=%{public}d", __func__, req->status);
1134 HDF_LOGD("Bulk status: %{public}d+size:%{public}zu", req->status, size);
1136 uint8_t *data = req->buffer;
1148 if (UsbRawSubmitRequest(req) != HDF_SUCCESS) {