/drivers/peripheral/usb/serial/src/ |
H A D | usb_serial_rawapi.c | 289 struct AcmWb *snd = &acm->wb[i]; in UsbAllocWriteRequests() 307 snd = &acm->wb[i]; in UsbFreeWriteRequests() 317 struct AcmWb *wb = NULL; in AcmWbAlloc() local 321 wb = (struct AcmWb *)&acm->wb[i]; in AcmWbAlloc() 322 if (!wb->use) { in AcmWbAlloc() 323 wb->use = 1; in AcmWbAlloc() 324 wb->len = 0; in AcmWbAlloc() 365 n -= acm->wb[i].use; in AcmWbIsAvail() 371 static int32_t AcmStartWb(struct AcmDevice *acm, struct AcmWb *wb) in AcmStartWb() argument 409 struct AcmWb *wb = (struct AcmWb *)&acm->wb[0]; AcmWriteBufAlloc() local 429 struct AcmWb *wb = &acm->wb[0]; AcmWriteBufFree() local 448 struct AcmWb *wb = (struct AcmWb *)req->userData; AcmWriteBulkCallback() local 722 struct AcmWb *wb = NULL; SerialWrite() local 771 AcmStartWbSync(struct AcmDevice *acm, struct AcmWb *wb) AcmStartWbSync() argument 797 struct AcmWb *wb = NULL; SerialWriteSync() local [all...] |
H A D | usb_serial.c | 41 struct AcmWb *wb = NULL; in AcmWbAlloc() local 45 wb = (struct AcmWb *)&acm->wb[i]; in AcmWbAlloc() 46 if (!wb->use) { in AcmWbAlloc() 47 wb->use = 1; in AcmWbAlloc() 48 wb->len = 0; in AcmWbAlloc() 88 n -= acm->wb[i].use; in AcmWbIsAvail() 110 static int32_t AcmStartWb(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe) in AcmStartWb() argument 123 parmas.userData = (void *)wb; in AcmStartWb() 124 parmas.dataReq.length = wb in AcmStartWb() 141 AcmStartWbSync(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe) AcmStartWbSync() argument 173 struct AcmWb *wb; AcmWriteBufAlloc() local 192 struct AcmWb *wb; AcmWriteBufFree() local 209 struct AcmWb *wb = (struct AcmWb *)req->compInfo.userData; AcmWriteBulk() local 821 struct AcmWb *wb = NULL; SerialWriteSync() local 979 struct AcmWb *wb = NULL; SerialWrite() local [all...] |
/drivers/peripheral/usb/net/src/ |
H A D | cdc_ether.c | 52 struct EcmWb *wb = NULL; in EcmWbAlloc() local 57 wb = &ecm->wb[wbn]; in EcmWbAlloc() 58 if (!wb->use) { in EcmWbAlloc() 59 wb->use = 1; in EcmWbAlloc() 60 wb->len = 0; in EcmWbAlloc() 116 n -= ecm->wb[i].use; in EcmWbIsAvail() 122 static int32_t EcmStartWb(struct EcmDevice *ecm, struct EcmWb *wb) in EcmStartWb() argument 134 parmas.userData = (void *)wb; in EcmStartWb() 135 parmas.dataReq.length = (uint32_t)wb in EcmStartWb() 159 struct EcmWb *wb; EcmWriteBufAlloc() local 178 struct EcmWb *wb; EcmWriteBufFree() local 191 struct EcmWb *wb = (struct EcmWb *)req->compInfo.userData; EcmWriteBulk() local 442 struct EcmWb *wb = NULL; EcmWrite() local [all...] |
H A D | usb_net_host.c | 145 struct UsbHostWb *wb = (struct UsbHostWb *)req->userData; in UsbnetHostTXComplete() local 146 if (wb == NULL) { in UsbnetHostTXComplete() 147 HDF_LOGE("%{public}s:%{public}d userData(wb) is null!", __func__, __LINE__); in UsbnetHostTXComplete() 155 wb->use = 0; in UsbnetHostTXComplete() 161 static int32_t UsbnetHostStartWb(struct UsbnetHost *usbNet, struct UsbHostWb *wb) in UsbnetHostStartWb() argument 168 (wb == NULL) || in UsbnetHostStartWb() 171 (wb->request == NULL)) { in UsbnetHostStartWb() 182 reqData.userData = (void *)wb; in UsbnetHostStartWb() 184 reqData.buffer = wb->buf; in UsbnetHostStartWb() 185 reqData.length = wb in UsbnetHostStartWb() 222 struct UsbHostWb *wb = NULL; UsbHostWbAlloc() local 260 struct UsbHostWb *wb = &usbNet->wb[wbn]; UsbnetHostSnedbufToUrb() local 294 struct UsbHostWb *wb = (struct UsbHostWb *)&usbNet->wb[0]; UsbnetHostWriteBufAlloc() local 343 struct UsbHostWb *wb = &usbNet->wb[0]; UsbnetHostWriteBufFree() local [all...] |
/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_host_sdk_if_test_io.cpp | 61 struct AcmWb *wb = static_cast<struct AcmWb *>(req->compInfo.userData); in AcmWriteBulk() local 64 wb->use = 0; in AcmWriteBulk() 79 struct AcmWb *wb; in AcmWriteBufAlloc() local 80 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAlloc() 81 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAlloc() 82 if (!wb->buf) { in AcmWriteBufAlloc() 85 --wb; in AcmWriteBufAlloc() 86 OsalMemFree(wb in AcmWriteBufAlloc() [all...] |
H A D | usb_host_sdk_if_test.cpp | 80 struct AcmWb *wb = static_cast<struct AcmWb *>(req->compInfo.userData); in AcmWriteBulk() local 83 wb->use = 0; in AcmWriteBulk() 99 struct AcmWb *wb; in AcmWriteBufAlloc() local 100 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAlloc() 101 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAlloc() 102 if (!wb->buf) { in AcmWriteBufAlloc() 105 --wb; in AcmWriteBufAlloc() 106 OsalMemFree(wb in AcmWriteBufAlloc() [all...] |
H A D | usb_raw_sdk_if_test_io.cpp | 151 struct AcmWb *wb = static_cast<struct AcmWb *>(req->userData); in AcmWriteBulkCallback() local 152 if (wb == nullptr) { in AcmWriteBulkCallback() 153 printf("%s:%d userData(wb) is nullptr!", __func__, __LINE__); in AcmWriteBulkCallback() 161 wb->use = 0; in AcmWriteBulkCallback() 230 struct AcmWb *wb = &acm->wb[0]; in AcmWriteBufAlloc() local 233 for (i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAlloc() 234 wb->buf = (uint8_t *)OsalMemCalloc(acm->dataOutEp->maxPacketSize); in AcmWriteBufAlloc() 235 if (!wb->buf) { in AcmWriteBufAlloc() 238 --wb; in AcmWriteBufAlloc() [all...] |
H A D | usb_raw_sdk_if_test.cpp | 157 struct AcmWb *wb = static_cast<struct AcmWb *>(req->userData); in AcmWriteBulkCallback() local 158 if (wb == nullptr) { in AcmWriteBulkCallback() 159 printf("%s:%d userData(wb) is nullptr!", __func__, __LINE__); in AcmWriteBulkCallback() 167 wb->use = 0; in AcmWriteBulkCallback() 284 struct AcmWb *wb = &acm->wb[0]; in AcmWriteBufAlloc() local 287 for (i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAlloc() 288 wb->buf = (uint8_t *)OsalMemCalloc(acm->dataOutEp->maxPacketSize); in AcmWriteBufAlloc() 289 if (!wb->buf) { in AcmWriteBufAlloc() 292 --wb; in AcmWriteBufAlloc() [all...] |
H A D | usb_host_sdk_if_test.h | 87 struct AcmWb wb[ACM_NW]; member
|
H A D | usb_raw_sdk_if_test.h | 92 struct AcmWb wb[ACM_NW]; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
H A D | usb_test.c | 63 struct AcmWb *wb = (struct AcmWb *)req->compInfo.userData; in AcmWriteBulk() local 66 wb->use = 0; in AcmWriteBulk() 88 struct AcmWb *wb; in AcmWriteBufAllocHandle() local 89 for (wb = (struct AcmWb *)&acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAllocHandle() 90 wb->buf = (uint8_t *)OsalMemCalloc(acm->writeSize); in AcmWriteBufAllocHandle() 91 if (!wb->buf) { in AcmWriteBufAllocHandle() 94 --wb; in AcmWriteBufAllocHandle() 95 OsalMemFree(wb in AcmWriteBufAllocHandle() 120 struct AcmWb *wb; AcmWriteBufFree() local [all...] |
H A D | usb_raw_io.c | 133 struct RawWb *wb = (struct RawWb *)req->userData; in AcmWriteBulkCallback() local 134 if (wb == NULL) { in AcmWriteBulkCallback() 135 printf("%s:%d userData(wb) is NULL!", __func__, __LINE__); in AcmWriteBulkCallback() 143 wb->use = 0; in AcmWriteBulkCallback() 217 struct RawWb *wb; in AcmWriteBufAllocHandle() local 218 for (wb = (struct RawWb *)&acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in AcmWriteBufAllocHandle() 219 wb->buf = OsalMemCalloc(acm->dataOutEp.maxPacketSize); in AcmWriteBufAllocHandle() 220 if (!wb in AcmWriteBufAllocHandle() 249 struct RawWb *wb; AcmWriteBufFree() local [all...] |
H A D | usb_raw_test.c | 149 rawAcm->wb[i].request = UsbRawAllocRequest(NULL, 0, rawAcm->dataOutEp.maxPacketSize); in CheckRawSdkIfAllocRequest001() 150 rawAcm->wb[i].instance = rawAcm; in CheckRawSdkIfAllocRequest001() 151 if (rawAcm->wb[i].request) { in CheckRawSdkIfAllocRequest001() 173 rawAcm->wb[i].request = UsbRawAllocRequest(rawAcm->devHandle, 0, rawAcm->dataOutEp.maxPacketSize); in CheckRawSdkIfAllocRequest002() 174 rawAcm->wb[i].instance = rawAcm; in CheckRawSdkIfAllocRequest002() 175 if (rawAcm->wb[i].request == NULL) { in CheckRawSdkIfAllocRequest002() 179 ((struct UsbHostRequest *)(rawAcm->wb[i].request))->devHandle = (struct UsbDeviceHandle *)rawAcm->devHandle; in CheckRawSdkIfAllocRequest002() 433 int32_t ret = UsbRawFreeRequest(rawAcm->wb[i].request); in CheckRawSdkIfFreeRequest001() 438 rawAcm->wb[i].request = NULL; in CheckRawSdkIfFreeRequest001() 512 rawAcm->wb[ in CheckRawSdkIfAllocRequest009() [all...] |
/drivers/peripheral/usb/serial/include/ |
H A D | usb_serial_rawapi.h | 116 struct AcmWb wb[ACM_NW]; member
|
H A D | usb_serial.h | 107 struct AcmWb wb[ACM_NW]; member
|
/drivers/peripheral/usb/net/include/ |
H A D | cdc_ether.h | 92 struct EcmWb wb[ECM_NW]; member
|
H A D | usb_net_host.h | 106 struct UsbHostWb wb[USBNET_NW]; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/ |
H A D | usb_test.h | 170 struct AcmWb wb[ACM_NW]; member
|
H A D | usb_raw_test.h | 226 struct RawWb wb[ACM_NW]; member
|