Lines Matching refs:dr
214 struct UsbControlRequest dr;
215 dr.target = controlParams->requestType & TARGET_MASK;
216 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK;
217 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK;
218 dr.request = controlParams->request;
219 dr.value = CPU_TO_LE16(controlParams->value);
220 dr.index = CPU_TO_LE16(controlParams->index);
221 dr.buffer = controlParams->data;
222 dr.length = CPU_TO_LE16(controlParams->size);
223 return dr;
732 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf;
733 switch (dr->bNotificationType) {
735 HDF_LOGE("%{public}s - network connection: %{public}s", __func__, (dr->wValue ? "on" : "off"));
738 HDF_LOGE("%{public}s - speed change wLength: %{public}d", __func__, dr->wLength);
742 __func__, dr->bNotificationType, dr->wIndex, dr->wLength);
747 static void EcmNotificationAndRequest(struct UsbRequest *req, struct EcmDevice *ecm, struct UsbCdcNotification *dr,
751 EcmProcessNotification(ecm, (unsigned char *)dr);
764 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->compInfo.buffer;
777 dr = (struct UsbCdcNotification *)ecm->notificationBuffer;
779 uint32_t expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength);
805 EcmNotificationAndRequest(req, ecm, dr, currentSize, expectedSize);