Lines Matching refs:dr
229 struct UsbControlRequest dr;
230 dr.target = controlParams->target;
231 dr.reqType = controlParams->reqType;
232 dr.directon = controlParams->directon;
233 dr.request = controlParams->request;
234 dr.value = CPU_TO_LE16(controlParams->value);
235 dr.index = CPU_TO_LE16(controlParams->index);
236 dr.buffer = controlParams->data;
237 dr.length = CPU_TO_LE16(controlParams->size);
238 return dr;
1255 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf;
1256 switch (dr->bNotificationType) {
1258 HDF_LOGE("%{public}s - network connection: %{public}d", __func__, dr->wValue);
1265 __func__, dr->bNotificationType, dr->wIndex, dr->wLength);
1270 static int32_t AcmCtrlIrqCheckSize(struct UsbRequest * const req, struct AcmDevice *acm, struct UsbCdcNotification *dr)
1272 if ((req == NULL) || (acm == NULL) || (dr == NULL)) {
1280 unsigned int expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength);
1306 AcmProcessNotification(acm, (unsigned char *)dr);
1323 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->compInfo.buffer;
1329 dr = (struct UsbCdcNotification *)acm->notificationBuffer;
1331 if ((dr == NULL) || (acm == NULL)) {
1332 HDF_LOGE("%{public}s:%{public}d dr or acm is null!", __func__, __LINE__);
1336 ret = AcmCtrlIrqCheckSize(req, acm, dr);