Searched refs:memBuf (Results 1 – 2 of 2) sorted by relevance
387 void *memBuf = nullptr; in FuncAdapterAllocRequest() local396 memBuf = RawUsbMemCalloc(allocSize); in FuncAdapterAllocRequest()397 if (memBuf == nullptr) { in FuncAdapterAllocRequest()401 request = static_cast<UsbHostRequest *>(memBuf); in FuncAdapterAllocRequest()404 request->buffer = static_cast<unsigned char *>(memBuf) + allocSize - len; in FuncAdapterAllocRequest()409 RawUsbMemFree(memBuf); in FuncAdapterAllocRequest()
1275 void *memBuf = NULL; in AdapterAllocRequest() local1285 memBuf = RawUsbMemCalloc(allocSize); in AdapterAllocRequest()1286 if (memBuf == NULL) { in AdapterAllocRequest()1292 if (memBuf == MAP_FAILED) { in AdapterAllocRequest()1297 request = (struct UsbHostRequest *)memBuf; in AdapterAllocRequest()1299 request->buffer = (unsigned char *)memBuf + allocSize - len; in AdapterAllocRequest()1305 RawUsbMemFree(memBuf); in AdapterAllocRequest()1316 void *memBuf = NULL; in AdapterAllocRequestByMmap() local1333 memBuf = mmap( in AdapterAllocRequestByMmap()1335 if (memBuf == MAP_FAILED) { in AdapterAllocRequestByMmap()[all …]