Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 8 of 8) sorted by relevance

/drivers/peripheral/usb/ddk/host/src/
Dlinux_adapter.c1213 …size_t allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoP… in AdapterAllocRequest() local
1217 memBuf = RawUsbMemCalloc(allocSize); in AdapterAllocRequest()
1223 memBuf = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, MAP_SHARED, handle->fd, 0); in AdapterAllocRequest()
1231 request->buffer = (unsigned char *)memBuf + allocSize - len; in AdapterAllocRequest()
1251 …size_t allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoP… in AdapterAllocRequestByMmap() local
1253 request = RawUsbMemCalloc(allocSize); in AdapterAllocRequestByMmap()
1314 size_t allocSize = sizeof(struct UsbHostRequest) + in AdapterFreeRequest() local
1316 if (munmap((void *)request, allocSize) != 0) { in AdapterFreeRequest()
Dliteos_adapter.c1297 size_t allocSize; in AdapterAllocRequest() local
1300allocSize = sizeof(struct UsbHostRequest) + (sizeof(struct UsbIsoPacketDesc) * (size_t)isoPackets)… in AdapterAllocRequest()
1302 request = RawUsbMemCalloc(allocSize); in AdapterAllocRequest()
1308 request->buffer = (unsigned char *)request + allocSize - length; in AdapterAllocRequest()
/drivers/peripheral/usb/test/unittest/mock/src/
Dmock_linux_adapter.cpp394 …size_t allocSize = sizeof(UsbHostRequest) + (sizeof(UsbIsoPacketDesc) * static_cast<size_t>(isoPac… in FuncAdapterAllocRequest() local
396 memBuf = RawUsbMemCalloc(allocSize); in FuncAdapterAllocRequest()
404 request->buffer = static_cast<unsigned char *>(memBuf) + allocSize - len; in FuncAdapterAllocRequest()
/drivers/peripheral/usb/net/src/
Dcdc_ether.c763 uint32_t allocSize = expectedSize; in EcmCtrlIrq() local
764 ecm->notificationBuffer = OsalMemCalloc(allocSize); in EcmCtrlIrq()
768 ecm->nbSize = allocSize; in EcmCtrlIrq()
/drivers/peripheral/usb/test/unittest/host_sdk/
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()
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()
/drivers/peripheral/usb/serial/src/
Dusb_serial_rawapi.c1040 unsigned int allocSize = expectedSize; in AcmNotificationBufferProcess() local
1041 acm->notificationBuffer = (uint8_t *)OsalMemCalloc(allocSize); in AcmNotificationBufferProcess()
1045 acm->nbSize = allocSize; in AcmNotificationBufferProcess()
Dusb_serial.c1270 unsigned int allocSize = expectedSize; in AcmCtrlIrqCheckSize() local
1271 acm->notificationBuffer = OsalMemCalloc(allocSize); in AcmCtrlIrqCheckSize()
1275 acm->nbSize = allocSize; in AcmCtrlIrqCheckSize()