Home
last modified time | relevance | path

Searched refs:dr (Results 1 - 12 of 12) sorted by relevance

/drivers/peripheral/usb/net/src/
H A Dcdc_ether.c214 struct UsbControlRequest dr; in EcmUsbControlMsg() local
215 dr.target = controlParams->requestType & TARGET_MASK; in EcmUsbControlMsg()
216 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK; in EcmUsbControlMsg()
217 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK; in EcmUsbControlMsg()
218 dr.request = controlParams->request; in EcmUsbControlMsg()
219 dr.value = CPU_TO_LE16(controlParams->value); in EcmUsbControlMsg()
220 dr.index = CPU_TO_LE16(controlParams->index); in EcmUsbControlMsg()
221 dr.buffer = controlParams->data; in EcmUsbControlMsg()
222 dr.length = CPU_TO_LE16(controlParams->size); in EcmUsbControlMsg()
223 return dr; in EcmUsbControlMsg()
732 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf; EcmProcessNotification() local
747 EcmNotificationAndRequest(struct UsbRequest *req, struct EcmDevice *ecm, struct UsbCdcNotification *dr, unsigned int currentSize, uint32_t expectedSize) EcmNotificationAndRequest() argument
764 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->compInfo.buffer; EcmCtrlIrq() local
[all...]
H A Dusb_net_host.c384 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf; in UsbnetHostProcessNotification() local
386 switch (dr->bNotificationType) { in UsbnetHostProcessNotification()
388 HARCH_INFO_PRINT("%{public}s - network connection: %{public}d\n", __func__, dr->wValue); in UsbnetHostProcessNotification()
395 __func__, dr->bNotificationType, dr->wIndex, dr->wLength); in UsbnetHostProcessNotification()
412 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer; in UsbnetHostReqCallback() local
413 if (dr == NULL) { in UsbnetHostReqCallback()
414 HDF_LOGE("%{public}s:%{public}d req->buffer(dr) is NULL!", __func__, __LINE__); in UsbnetHostReqCallback()
425 dr in UsbnetHostReqCallback()
[all...]
/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_host_sdk_if_test_io.cpp112 struct UsbControlRequest dr; in UsbControlMsg() local
113 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg()
114 dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg()
115 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg()
116 dr.request = msgData.request; in UsbControlMsg()
117 dr.value = CPU_TO_LE16(msgData.value); in UsbControlMsg()
118 dr.index = CPU_TO_LE16(msgData.index); in UsbControlMsg()
119 dr.buffer = msgData.data; in UsbControlMsg()
120 dr.length = CPU_TO_LE16(msgData.size); in UsbControlMsg()
121 return dr; in UsbControlMsg()
[all...]
H A Dusb_host_sdk_if_test.cpp115 static void AcmProcessNotification(struct AcmDevice *acm, struct UsbCdcNotification *dr) in AcmProcessNotification() argument
118 switch (dr->bNotificationType) { in AcmProcessNotification()
120 printf("%s - network connection: %d\n", __func__, dr->wValue); in AcmProcessNotification()
126 printf("%s-%d received: index %d len %d\n", __func__, dr->bNotificationType, dr->wIndex, dr->wLength); in AcmProcessNotification()
139 struct UsbCdcNotification *dr = reinterpret_cast<struct UsbCdcNotification *>(req->compInfo.buffer); in AcmCtrlIrq() local
146 dr = reinterpret_cast<struct UsbCdcNotification *>(acm->notificationBuffer); in AcmCtrlIrq()
148 if (dr == nullptr) { in AcmCtrlIrq()
149 printf("%s:%d dr i in AcmCtrlIrq()
184 struct UsbControlRequest dr; UsbControlMsg() local
[all...]
H A Dusb_raw_sdk_if_test.cpp213 static void AcmProcessNotification(struct AcmDevice *acm, struct UsbCdcNotification *dr) in AcmProcessNotification() argument
218 switch (dr->bNotificationType) { in AcmProcessNotification()
220 printf("%s - network connection: %d\n", __func__, dr->wValue); in AcmProcessNotification()
226 printf("%s-%d received: index %d len %d\n", __func__, dr->bNotificationType, dr->wIndex, dr->wLength); in AcmProcessNotification()
237 struct UsbCdcNotification *dr = reinterpret_cast<struct UsbCdcNotification *>(req->buffer); in AcmNotifyReqCallback() local
238 if (acm == nullptr || dr == nullptr) { in AcmNotifyReqCallback()
247 dr = reinterpret_cast<struct UsbCdcNotification *>(acm->notificationBuffer); in AcmNotifyReqCallback()
249 expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr in AcmNotifyReqCallback()
[all...]
H A Dusb_raw_sdk_if_test_io.cpp219 struct UsbCdcNotification *dr = reinterpret_cast<struct UsbCdcNotification *>(req->buffer); in AcmNotifyReqCallback() local
220 if (dr == nullptr) { in AcmNotifyReqCallback()
221 printf("%s:%d req->buffer(dr) is nullptr!", __func__, __LINE__); in AcmNotifyReqCallback()
/drivers/peripheral/usb/serial/src/
H A Dusb_serial.c229 struct UsbControlRequest dr; in UsbControlSetUp() local
230 dr.target = controlParams->target; in UsbControlSetUp()
231 dr.reqType = controlParams->reqType; in UsbControlSetUp()
232 dr.directon = controlParams->directon; in UsbControlSetUp()
233 dr.request = controlParams->request; in UsbControlSetUp()
234 dr.value = CPU_TO_LE16(controlParams->value); in UsbControlSetUp()
235 dr.index = CPU_TO_LE16(controlParams->index); in UsbControlSetUp()
236 dr.buffer = controlParams->data; in UsbControlSetUp()
237 dr.length = CPU_TO_LE16(controlParams->size); in UsbControlSetUp()
238 return dr; in UsbControlSetUp()
1255 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf; AcmProcessNotification() local
1270 AcmCtrlIrqCheckSize(struct UsbRequest * const req, struct AcmDevice *acm, struct UsbCdcNotification *dr) AcmCtrlIrqCheckSize() argument
1323 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->compInfo.buffer; AcmCtrlIrq() local
[all...]
H A Dusb_serial_rawapi.c1022 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf; in AcmProcessNotification() local
1024 switch (dr->bNotificationType) { in AcmProcessNotification()
1026 HDF_LOGE("%{public}s - network connection: %{public}d", __func__, dr->wValue); in AcmProcessNotification()
1033 __func__, dr->bNotificationType, dr->wIndex, dr->wLength); in AcmProcessNotification()
1074 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer; in AcmNotifyReqCallback() local
1075 if (dr == NULL) { in AcmNotifyReqCallback()
1076 HDF_LOGE("%{public}s:%{public}d req->buffer(dr) is NULL!", __func__, __LINE__); in AcmNotifyReqCallback()
1089 dr in AcmNotifyReqCallback()
[all...]
/drivers/hdf_core/framework/sample/platform/uart/src/
H A Duart_pl011_sample.c74 regMap->dr = UART_PL011_DEFAULT_DATA_REG_VALUE; in UartPl011ResetRegisters()
/drivers/hdf_core/framework/sample/platform/uart/include/
H A Duart_pl011_sample.h22 volatile uint32_t dr; /* Offset: 0x000 TYPE: (RW) Data register */ member
213 regMap->dr = byte; in UartPl011Write()
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
H A Dusb_test.c143 struct UsbControlRequest dr; in UsbControlMsg() local
144 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg()
145 dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg()
146 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg()
147 dr.request = msgData.request; in UsbControlMsg()
148 dr.value = CPU_TO_LE16(msgData.value); in UsbControlMsg()
149 dr.index = CPU_TO_LE16(msgData.index); in UsbControlMsg()
150 dr.buffer = msgData.data; in UsbControlMsg()
151 dr.length = CPU_TO_LE16(msgData.size); in UsbControlMsg()
152 return dr; in UsbControlMsg()
[all...]
H A Dusb_raw_io.c204 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer; in AcmNotifyReqCallback() local
205 if (dr == NULL) { in AcmNotifyReqCallback()
206 printf("%s:%d req->buffer(dr) is NULL!", __func__, __LINE__); in AcmNotifyReqCallback()

Completed in 14 milliseconds