Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 - 9 of 9) sorted by relevance

/drivers/peripheral/usb/test/unittest/mock/src/
H A Dmock_linux_adapter.cpp394 size_t allocSize = sizeof(UsbHostRequest) + (sizeof(UsbIsoPacketDesc) * static_cast<size_t>(isoPackets)) + in FuncAdapterAllocRequest() local
396 memBuf = RawUsbMemCalloc(allocSize); in FuncAdapterAllocRequest()
404 request->buffer = static_cast<unsigned char *>(memBuf) + allocSize - len; in FuncAdapterAllocRequest()
/drivers/peripheral/usb/ddk/host/src/
H A Dlinux_adapter.c1294 size_t allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoPackets) + in AdapterAllocRequest() local
1298 memBuf = RawUsbMemCalloc(allocSize); in AdapterAllocRequest()
1304 memBuf = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, MAP_SHARED, handle->fd, 0); in AdapterAllocRequest()
1312 request->buffer = (unsigned char *)memBuf + allocSize - len; in AdapterAllocRequest()
1335 size_t allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoPackets); in AdapterAllocRequestByMmap() local
1337 request = RawUsbMemCalloc(allocSize); in AdapterAllocRequestByMmap()
1403 size_t allocSize = sizeof(struct UsbHostRequest) + in AdapterFreeRequest() local
1405 if (munmap((void *)request, allocSize) != 0) { in AdapterFreeRequest()
H A Dliteos_adapter.c1303 size_t allocSize; in AdapterAllocRequest() local
1306 allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoPackets) + in AdapterAllocRequest()
1308 request = RawUsbMemCalloc(allocSize); in AdapterAllocRequest()
1314 request->buffer = (unsigned char *)request + allocSize - length; in AdapterAllocRequest()
/drivers/peripheral/usb/net/src/
H A Dusb_net_host.c363 unsigned int allocSize = expectedSize; in UsbnetHostNotificationBufferProcess() local
364 usbNet->notificationBuffer = (uint8_t *)OsalMemCalloc(allocSize); in UsbnetHostNotificationBufferProcess()
368 usbNet->nbSize = allocSize; in UsbnetHostNotificationBufferProcess()
H A Dcdc_ether.c786 uint32_t allocSize = expectedSize; in EcmCtrlIrq() local
787 ecm->notificationBuffer = OsalMemCalloc(allocSize); in EcmCtrlIrq()
791 ecm->nbSize = allocSize; in EcmCtrlIrq()
/drivers/peripheral/usb/serial/src/
H A Dusb_serial_rawapi.c1045 unsigned int allocSize = expectedSize; in AcmNotificationBufferProcess() local
1046 acm->notificationBuffer = (uint8_t *)OsalMemCalloc(allocSize); in AcmNotificationBufferProcess()
1050 acm->nbSize = allocSize; in AcmNotificationBufferProcess()
H A Dusb_serial.c1287 unsigned int allocSize = expectedSize; in AcmCtrlIrqCheckSize() local
1288 acm->notificationBuffer = OsalMemCalloc(allocSize); in AcmCtrlIrqCheckSize()
1292 acm->nbSize = allocSize; in AcmCtrlIrqCheckSize()
/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_raw_sdk_if_test.cpp242 unsigned int expectedSize, copySize, allocSize; in AcmNotifyReqCallback() local
256 allocSize = expectedSize; in AcmNotifyReqCallback()
257 acm->notificationBuffer = (uint8_t *)OsalMemCalloc(allocSize); in AcmNotifyReqCallback()
261 acm->nbSize = allocSize; in AcmNotifyReqCallback()
H A Dusb_host_sdk_if_test.cpp159 uint32_t allocSize = expectedSize; in AcmCtrlIrq() local
160 acm->notificationBuffer = (uint8_t *)OsalMemCalloc(allocSize); in AcmCtrlIrq()
164 acm->nbSize = allocSize; in AcmCtrlIrq()

Completed in 28 milliseconds