Home
last modified time | relevance | path

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

/drivers/peripheral/usb/net/src/
Dcdc_ether.c207 struct UsbControlRequest dr; in EcmUsbControlMsg() local
208 dr.target = controlParams->requestType & TARGET_MASK; in EcmUsbControlMsg()
209 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK; in EcmUsbControlMsg()
210 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK; in EcmUsbControlMsg()
211 dr.request = controlParams->request; in EcmUsbControlMsg()
212 dr.value = CPU_TO_LE16(controlParams->value); in EcmUsbControlMsg()
213 dr.index = CPU_TO_LE16(controlParams->index); in EcmUsbControlMsg()
214 dr.buffer = controlParams->data; in EcmUsbControlMsg()
215 dr.length = CPU_TO_LE16(controlParams->size); in EcmUsbControlMsg()
216 return dr; in EcmUsbControlMsg()
[all …]
/drivers/peripheral/usb/test/unittest/host_sdk/
Dusb_host_sdk_if_test_io.cpp116 struct UsbControlRequest dr; in UsbControlMsg() local
117 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg()
118dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg()
119 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg()
120 dr.request = msgData.request; in UsbControlMsg()
121 dr.value = CPU_TO_LE16(msgData.value); in UsbControlMsg()
122 dr.index = CPU_TO_LE16(msgData.index); in UsbControlMsg()
123 dr.buffer = msgData.data; in UsbControlMsg()
124 dr.length = CPU_TO_LE16(msgData.size); in UsbControlMsg()
125 return dr; in UsbControlMsg()
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->wLeng… in AcmProcessNotification()
139 struct UsbCdcNotification *dr = static_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()
152 uint32_t expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmCtrlIrq()
175 AcmProcessNotification(acm, dr); in AcmCtrlIrq()
184 struct UsbControlRequest dr; in UsbControlMsg() local
[all …]
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->wLeng… 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->wLength); in AcmNotifyReqCallback()
272 AcmProcessNotification(acm, dr); in AcmNotifyReqCallback()
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()
/drivers/peripheral/usb/serial/src/
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()
[all …]
Dusb_serial_rawapi.c1018 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)buf; in AcmProcessNotification() local
1020 switch (dr->bNotificationType) { in AcmProcessNotification()
1022 HDF_LOGE("%s - network connection: %d\n", __func__, dr->wValue); in AcmProcessNotification()
1028 …HDF_LOGE("%s-%d received: index %d len %d\n", __func__, dr->bNotificationType, dr->wIndex, dr->wLe… in AcmProcessNotification()
1069 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer; in AcmNotifyReqCallback() local
1070 if (dr == NULL) { in AcmNotifyReqCallback()
1084 dr = (struct UsbCdcNotification *)acm->notificationBuffer; in AcmNotifyReqCallback()
1086 if (dr != NULL) { in AcmNotifyReqCallback()
1087 expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmNotifyReqCallback()
1099 AcmProcessNotification(acm, (unsigned char *)dr); in AcmNotifyReqCallback()
/drivers/hdf_core/framework/sample/platform/uart/include/
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/sample/platform/uart/src/
Duart_pl011_sample.c74 regMap->dr = UART_PL011_DEFAULT_DATA_REG_VALUE; in UartPl011ResetRegisters()
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dusb_test.c143 struct UsbControlRequest dr; in UsbControlMsg() local
144 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg()
145dr.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()
Dusb_raw_io.c204 struct UsbCdcNotification *dr = (struct UsbCdcNotification *)req->buffer; in AcmNotifyReqCallback() local
205 if (dr == NULL) { in AcmNotifyReqCallback()